working on it ...

Filters

Explore Public Snippets

Sort by

Found 66 snippets

    public by AndreaBuffa  2326  1  5  0

    sh: recursive find and replace

    sh
    # find "X_ABC_IPv4Address" into every *.xml file located under /tmp/test, and replace it with X_ABC_ACLRule. 
    # 2>/dev/null avoid error prints when for istance, a symbolink link is found under a subdir 
    
    grep -lr X_ABC_IPv4Address /tmp/test --include *.xml 2>/dev/null | xargs sed -i "s|X_ABC_IPv4Address|X_ABC_ACLRule|g"
    
    
    

    public by maholtz  1857  0  6  0

    Status der Batterie und Termperatur anzeigen (Linux)

    acpi -V

    public by maholtz  1755  0  6  0

    Festplatten Geschwindigkeit unter Linux lesen

    sudo hdparm -T /dev/sda
    
    # Ergebnis bei meiner SSD Platte im normalen Betrieb
    
    /dev/sda:
     Timing cached reads:   1594 MB in  2.00 seconds = 796.73 MB/sec
    

    public by AndreaBuffa  2251  0  5  2

    sh: avoid runtime error when a variable is supposed to contain a number but it is actually empty

    sh
    myNum='';
    [ ${myNum:-0} -eq 0 ] && echo ok
    # ok
    
    [ ${myNum:-1} -eq 1 ] && echo ok
    # ok
    
    [ ${myNum:-1} -gt 0 ] && echo ok
    # ok
    
    [ ${myNum:-0} -gt 1 ] || echo "0 is not greater than 1"
    # 0 is not greater than 1
    
    # This behaviour comes from the common way to extract a substring from a 
    # variable
    tmp='mississippi'; echo ${tmp:0:2}
    # mi
    
    echo ${tmp:1:1}
    # i
    
    # 
    echo ${tmp:2}
    # ssissippi

    public by maholtz  2502  1  6  0

    ftp in einem bash skript verwenden

    #!/bin/bash
    
    HOST=server
    USER=benutzer
    PASS=passwort
    
    # -i deaktiviert Interaktivität
    # -n Deaktiviert auto-login, andernfalls kann in ~/.netrc das Login hinterlegt werden
    # Alle weiteren Zeilen zwischen << EOF und EOF werden innerhalb der FTP-Verbindung übergeben
    ftp -in $HOST << EOF
    
    # Einloggen
    user $USER $PASS
    
    # Hier folgen die Befehle
    cd /files
    
    # die Datei "datei.txt" die an der Stelle liegt, wo das FTP
    # Programm ausgeführt wurde, wird auf den Server in 
    # das Verzeichnis /files kopiert.
    put datei.txt
    
    # Oder andersrum: /files/datei.txt wird herunterkopiert
    get datei.txt
    # mit bye wird die Verbindung beendet.
    # EOF (end of file) schließt die Eingabe an das FTP
    # Programm wiederab
    bye
    EOF  

    external by Denis  2  0  1  0

    linux сделать sh исполняемым

    linux сделать sh исполняемым: -linux-сделать-sh-исполняемым
    http://www.linuxrussia.com/2013/07/sh-ubuntu.html
    
    chmod +x hello.sh
    
    

    external by 0shape  36  0  1  0

    error in executing ./bin/run-ldc93s1.sh

    error in executing ./bin/run-ldc93s1.sh: error.log
    speech_1  | + [ ! -f DeepSpeech.py ]
    speech_1  | + [ ! -f data/ldc93s1/ldc93s1.csv ]
    speech_1  | + [ -d  ]
    speech_1  | + python -c from xdg import BaseDirectory as xdg; print(xdg.save_data_path("deepspeech/ldc93s1"))
    speech_1  | + checkpoint_dir=/root/.local/share/deepspeech/ldc93s1
    speech_1  | + python -u DeepSpeech.py --train_files data/ldc93s1/ldc93s1.csv --dev_files data/ldc93s1/ldc93s1.csv --test_files data/ldc93s1/ldc93s1.csv --train_batch_size 1 --dev_batch_size 1 --test_batch_size 1 --n_hidden 494 --epoch 50 --checkpoint_dir /root/.local/share/deepspeech/ldc93s1
    speech_1  | Traceback (most recent call last):
    speech_1  |   File "DeepSpeech.py", line 15, in <module>
    speech_1  |     import tensorflow as tf
    speech_1  |   File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 24, in <module>
    speech_1  |     from tensorflow.python import *
    speech_1  |   File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 49, in <module>
    speech_1  |     from tensorflow.python import pywrap_tensorflow
    speech_1  |   File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 72, in <module>
    speech_1  |     raise ImportError(msg)
    speech_1  | ImportError: Traceback (most recent call last):
    speech_1  |   File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    speech_1  |     from tensorflow.python.pywrap_tensorflow_internal import *
    speech_1  |   File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    speech_1  |     _pywrap_tensorflow_internal = swig_import_helper()
    speech_1  |   File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    speech_1  |     _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
    speech_1  | ImportError: /usr/local/lib/python2.7/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZN10tensorflow10FileSystem16GetMatchingPathsERKSsPSt6vectorISsSaISsEE
    speech_1  | 
    speech_1  | 
    speech_1  | Failed to load the native TensorFlow runtime.
    speech_1  | 
    speech_1  | See https://www.tensorflow.org/install/install_sources#common_installation_problems
    speech_1  | 
    speech_1  | for some common reasons and solutions.  Include the entire stack trace
    speech_1  | above this error message when asking for help.
    
    
    

    external by Github  1  0  1  0

    MEGA~SH@RE!! WATCH. THE BOSS BABY ONLINE. (HD). FULL. MOVIE. FREE. DOWNLOAD.

    MEGA~SH@RE!! WATCH. THE BOSS BABY ONLINE. (HD). FULL. MOVIE. FREE. DOWNLOAD.: MEGA~SH@RE!! WATCH. THE BOSS BABY ONLINE. (HD). FULL. MOVIE. FREE. DOWNLOAD.
    https://www.sanmarcosrecord.com/content/megashre-watch-boss-baby-online-hd-full-movie-free-download
    https://www.sanmarcosrecord.com/content/megashre-watch-boss-baby-online-hd-full-movie-free-download
    
    

    external by ceheted  153  0  2  0

    Google Code for Remarketing Tag - SH4

    Google Code for Remarketing Tag - SH4 :
    <!-- Google Code for Remarketing Tag -->
    <!--------------------------------------------------
    Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
    --------------------------------------------------->
    <script type="text/javascript">
    /* <![CDATA[ /
    var google_conversion_id = 998106440;
    var google_custom_params = window.google_tag_params;
    var google_remarketing_only = true;
    / ]]> */
    </script>
    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/998106440/?value=0&amp;guid=ON&amp;script=0"/>
    </div>
    </noscript>
    
    

    external by ceheted  16  0  1  0

    Google Code for Remarketing Tag - SH

    Google Code for Remarketing Tag - SH : Google Code for Remarketing Tag
    <!-- Google Code for Remarketing Tag -->
    <!--------------------------------------------------
    Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
    --------------------------------------------------->
    <script type="text/javascript">
    /* <![CDATA[ /
    var google_conversion_id = 998106440;
    var google_custom_params = window.google_tag_params;
    var google_remarketing_only = true;
    / ]]> */
    </script>
    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/998106440/?value=0&amp;guid=ON&amp;script=0"/>
    </div>
    </noscript>
    
    
    • Public Snippets
    • Channels Snippets