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
Show hidden characters
{ | |
"presets": [ "es2015" ] | |
} |
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
# based on https://www.openbsd.org/faq/pf/example1.html | |
# | |
int_if="{ msk0 }" | |
ext_if="{ axe0 }" | |
table <martians> { 0.0.0.0/8 127.0.0.0/8 169.254.0.0/16 \ | |
172.16.0.0/12 192.0.0.0/24 192.0.2.0/24 224.0.0.0/3 \ | |
192.168.0.0/16 198.18.0.0/15 198.51.100.0/24 \ | |
203.0.113.0/24 } | |
set block-policy drop |
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
0. create users then hide dnsrun and dnslog users from the login window | |
$ sh create-user-group.sh | |
$ sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add dnsrun dnslog | |
1. Install daemontools -> http://cr.yp.to/daemontools.html | |
$ mkdir /package | |
$ cd /package | |
$ curl http://cr.yp.to/daemontools/daemontools-0.76.tar.gz -o daemontools-0.76.tar.gz | |
$ tar -xvzf daemontools-0.76.tar.gz |
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 | |
# | |
# This script will mount /Users in the boot2docker VM using NFS (instead of the | |
# default vboxsf). It's probably not a good idea to run it while there are | |
# Docker containers running in boot2docker. | |
# | |
# Usage: sudo ./boot2docker-use-nfs.sh | |
# |
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
$ docker stop $(docker ps -a -q) | |
$ docker rm $(docker ps -a -q) | |
# if it is sluggish and has issues fetching stuff via network | |
# | |
$ docker-machine restart default # Restart the environment | |
$ eval $(docker-machine env default) # Refresh your environment settings | |
# get the container ID of by container Name |
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
# convert some.pdf[15-19] some.png | |
# convert some.pdf[15-19] some.jpg | |
# convert some.pdf[15-19] some.gif | |
# convert -density 200 some.pdf some.png | |
# convert some.pdf -resize 50% some.png | |
$imagick = new Imagick(); |
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 | |
/* | |
* router.php | |
* from https://docs.docker.com/compose/wordpress/ | |
* | |
*/ | |
$root = $_SERVER['DOCUMENT_ROOT']; | |
chdir($root); | |
$path = '/'.ltrim(parse_url($_SERVER['REQUEST_URI'])['path'],'/'); |
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
Verifying I am +tonykwon on my passcard. https://onename.com/tonykwon |
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
pacman -S virtualbox-guest-utils | |
pacman -S virtualbox-guest-modules | |
pacman -S virtualbox-guest-modules-lts | |
pacman -S virtualbox-guest-dkms | |
/etc/modules-load.d/virtualbox.conf | |
vboxguest | |
vboxsf | |
vboxvideo |
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
bootstrap.php | |
MvcConfiguration::append(array( | |
'AdminPages' => array( | |
'flakes' => array( | |
'add', | |
'other1', | |
), | |
) | |
)); |
NewerOlder