Git cancel last commit
git reset HEAD~
Git cancel last pull
git reset --hard ORIG_HEAD
Git cancel last commit
git reset HEAD~
Git cancel last pull
git reset --hard ORIG_HEAD
| #Global test | |
| dig mydomain.com | |
| #List authoritative name servers | |
| dig @8.8.8.8 +short NS mydomain.com | |
| # Check MX configuration | |
| dig mydomain.com MX | |
| # list all records |
| { | |
| "size": 0, | |
| "aggs": { | |
| "agg_name": { | |
| "filter" : { | |
| "bool": { | |
| "must": [ | |
| { | |
| "term": { | |
| "field1": "VALUE1" |
| docker rm $(docker ps -f status=exited -q) |
| # download img on https://github.com/RasPlex/RasPlex/releases | |
| # here RasPlex-RPi.RP-0.7.1.img.gz | |
| wget https://github.com/RasPlex/RasPlex/releases/download/0.7.1/RasPlex-RPi.RP-0.7.1.img.gz | |
| # decompress archive | |
| gunzip RasPlex-RPi.RP-0.7.1.img.gz | |
| # find out what device you want to flash to, /dev/diskX (before & after mount sd card) | |
| diskutil list |
| #install gearman server and libs | |
| brew update | |
| brew install gearman | |
| # fixe perms if brew linking failed (http://stackoverflow.com/questions/26647412/homebrew-could-not-symlink-usr-local-bin-is-not-writable) | |
| sudo chown damien:admin /usr/local/sbin | |
| brew link gearman | |
| # install php gearman extension | |
| pecl install gearman |
| <?php | |
| include 'vendor/autoload.php'; | |
| $pheanstalk = new Pheanstalk_Pheanstalk('127.0.0.1'); | |
| $pheanstalk->useTube('default'); | |
| $n = 1000000; | |
| $start = microtime(true); |
| api: | |
| build: fig/php | |
| ports: | |
| - '8000:8000' | |
| working_dir: /src | |
| volumes: | |
| - backend:/src | |
| entrypoint: [php, '-dextension=gearman.so', '-ddate.timezone=UTC'] | |
| command: '-S 0.0.0.0:8000 -t web' | |
| links: |
| # brefore you will need to install Xcode and the Command-Line Tools and valid licence | |
| brew update | |
| brew doctor | |
| brew install rbenv | |
| brew install ruby-build | |
| # see https://github.com/sstephenson/ruby-build/issues/377 | |
| brew uninstall openssl |
| dscacheutil -flushcache | |
| sudo killall -HUP mDNSResponder |