This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // http://codereaper.com/blog/2014/asymmetric-encryption-in-php/ | |
| // create the private key private.key | |
| // $ openssl genrsa -out private.key 2048 | |
| // create the public key public.pem | |
| // $openssl rsa -in private.key -outform PEM -pubout -out public.pem | |
| /* | |
| $private_key = openssl_get_privatekey("--- BEGIN RSA --- | |
| xxxxxxx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| New-NetFirewallRule -DisplayName "Allow ICMPv4-In" -Protocol ICMPv4 -IcmpType 8 -Direction Inbound -Action Allow | |
| Remove-NetFirewallRule -DisplayName "Allow ICMPv4-In" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ -z "$1" ]; then | |
| echo "Uso: $0 <url_segmento_ts>" | |
| exit 1 | |
| fi | |
| URL="$1" | |
| # Directory temporanea | |
| TMP_DIR="segments" | |
| LIST_FILE="list.txt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo -u www-data php /var/www/html/cloud.mysite.it/updater/updater.phar --no-interaction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <QCoreApplication> | |
| #include <QVariant> | |
| #include <QSerialPort> | |
| #include <QSerialPortInfo> | |
| #include <QModbusRtuSerialClient> | |
| #include <QModbusDevice> | |
| #include <QModbusClient> | |
| #include <QVariant> | |
| #include <QSerialPort> | |
| #include <thread> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for folder in $(ls -d */); do | |
| cd $folder | |
| echo | |
| echo =========================== | |
| echo $folder | |
| echo =========================== | |
| for branch in $(git branch -r | grep -v HEAD | cut -d / -f 2,3,4,5); do | |
| echo | |
| echo "=>" $branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE mysql.user SET Super_Priv='Y' WHERE user='<myuser>' AND host='localhost'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: Prerequisite: git | |
| :: Usage: Download the wizard | |
| :: Create a file named "repos.txt" in the same folder of the wizard | |
| :: Insert in the file the absolute path of the repositories to track, one per line | |
| :: Double click on the wizard and follow the instructions | |
| :: Contribution: Feel free to contribute to this script! | |
| :: Credits: Edoardo Vignati <edoardo.vignati@akkodis.com> | |
| :: Emanuele De Filippis <emanuele.defilippis@akkodis.com> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| map.on("singleclick", function(e) { | |
| feature = map.forEachFeatureAtPixel(e.pixel, function(feature) { | |
| return feature; | |
| }); | |
| var coord = feature.getGeometry().getCoordinates(); | |
| coord = ol.proj.transform(coord,"EPSG:3857","EPSG:4326"); | |
| console.log(coord); | |
| }); | |
| map.on("pointermove", function (evt) { |
NewerOlder