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
| FROM ubuntu:14.04 | |
| # install nginx | |
| RUN apt-get update && \ | |
| apt-get install software-properties-common -y && \ | |
| add-apt-repository ppa:nginx/stable -y && \ | |
| apt-get update && \ | |
| apt-get install -y nginx=1.12.2-0+trusty0 | |
| RUN rm -rf /etc/nginx/sites-enabled/default |
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
| #!/bin/bash | |
| set -ex | |
| DIR=$(dirname $0) | |
| echo "starting installer.." | |
| DEVICE=${DEVICE:-/dev/sda} | |
| DEVICE_CRYPT_PASS=${DEVICE_CRYPT_PASS:-1234} | |
| TIMEZONE=${TIMEZONE:-Europe/Berlin} | |
| HOSTNAME=${HOSTNAME:-archbox} |
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
| #!/bin/bash | |
| set -x | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| MNT=/mnt/archiso | |
| ISO=${ISO:-/path/to/my/archlinux-2017.10.01-x86_64.iso} | |
| TMP_DIR=/mnt/customiso | |
| rm -rf $TMP_DIR |
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 | |
| for($i = PHP_INT_MIN; $i <= PHP_INT_MAX; $i++){ | |
| echo "$i".PHP_EOL; | |
| srand($i); | |
| if( magic() ){ | |
| echo "lucky number is #$i"; | |
| exit; | |
| } | |
| } | |
| echo "no luck. yer' dead"; |
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
| // displays a small box which shows the pressed key | |
| // copy the content of this gist into your browser console and see it in action | |
| // | |
| // requires global jquery | |
| // the keycode table is copied from http://keycode.info/ | |
| $('body').append($('<div id="kp"></div>')) | |
| $('#kp').css('width', '100px') | |
| $('#kp').css('height', '50px') | |
| $('#kp').css('position', 'fixed') |
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 | |
| // this file requires a export.json in the same directory | |
| // also define the database parameters below | |
| // the `TARGET` has to be a flexible-content field | |
| define('HOST', 'localhost'); | |
| define('USER', 'root'); | |
| define('PASS', '1234'); | |
| define('DATABASE', 'my_database'); | |
| define('TABLE', 'wp_postmeta'); |
NewerOlder