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
#cloud-config | |
# https://cloudinit.readthedocs.io/en/latest/topics/modules.html#users-and-groups | |
users: | |
- name: ansible | |
uid: 999 | |
shell: /bin/bash | |
sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
ssh_authorized_keys: | |
- '[REDACTED]' |
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
[extensions] | |
git = | |
[alias] | |
npull = !$HG git; $HG nukebookmarks; $HG pull | |
nukebookmarks = !$HG bookmarks -q | xargs -r $HG bookmark -d |
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
locals { | |
ami_ubuntu_1804 = "ami-06397100adf427136" | |
ssh_public_key = "ssh-rsa ABCD...asdfasdf" | |
} | |
provider "aws" { | |
profile = "default" | |
region = "us-west-1" | |
} |
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 | |
SOURCED=0 | |
CD=0 | |
if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then | |
SOURCED=1 | |
fi | |
if [[ $1 =~ ^(cd|apps|notes|trunk|repos|docker)?$ ]]; then |
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/sh | |
if test $# -lt 1 ; then | |
echo "Usage: download_apk.sh <target-dir>" | |
exit 1 | |
fi | |
for LINE in $(adb shell pm list packages -f -3|sed 's/package://g'); do | |
APK_PATH=$(echo "$LINE" | cut -d'=' -f1) | |
FILE=$1/$(echo "${LINE}" | cut -d'=' -f2 | sed 's/\r$//').apk |
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
<!-- /etc/firewalld/zones/docker.xml --> | |
<zone> | |
<short>Docker</short> | |
<description>Permits docker containers to access eachother.</description> | |
<interface name="docker0" /> | |
<rule family="ipv4"> | |
<source address="172.17.0.0/16" /> | |
<accept/> | |
</rule> | |
</zone> |
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
{ | |
"minimum-stability": "stable", | |
"require": { | |
"cakephp/cakephp": "2.6.8" | |
}, | |
"config": { | |
"vendor-dir": "Vendor" | |
}, | |
"require-dev": { | |
"cakephp/debug_kit": "2.2.x-dev" |
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
#!/usr/bin/env php | |
<?php | |
class Person | |
{ | |
public $first_name; | |
public $last_name; | |
public function getFullName() | |
{ |
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
The opcache for PHP (previously Zend Optimizer+) depends on the filemtime to identify when to reinterpret the opcode for a file. If a file is changed, the system's clock is changed back (through NTP or other means), any changes to the file up until the previously set date/time will not be caught by the opcache. |