This file contains 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 | |
if ($a = 1) | |
{ | |
$code = 'here'; | |
function('call','there'); | |
alignment('true'); | |
} | |
else if ($b = 2) | |
{ |
This file contains 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
version: "3" | |
services: | |
db: | |
container_name: db | |
image: db:latest | |
environment: | |
- MYSQL_ROOT_PASSWORD=REDACTED | |
- APP=db | |
ports: | |
- "3306:3306" |
This file contains 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 Shortcuts | |
# Maintainer geoffrey.hoffman@gmail.com | |
###################################################### | |
# Load these into your bash profile, e.g. add | |
# source ~/.docker_shortcuts.sh | |
# to ~/.bash_profile | |
echo "docker shortcuts loaded" |
This file contains 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
root@saltmaster:/srv/salt# salt-call state.show_highstate | |
local: | |
---------- | |
psmisc: | |
---------- | |
pkg: | |
- installed | |
|_ | |
---------- | |
order: |
This file contains 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
root@saltmaster:/srv# salt 'api*' state.apply test=True | |
dev-server.on-my.network: | |
---------- | |
ID: /etc/hosts | |
Function: file.comment | |
Result: None | |
Comment: File /etc/hosts is set to be updated | |
Started: 16:09:10.954681 | |
Duration: 8.716 ms | |
Changes: |
This file contains 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 script will search in your iTunes Music folder for duplicate | |
* mp3 and aac files, and print them out for inspection. | |
* | |
* HOW TO USE: | |
* Do a dry run, inspect the output, and if desired, do a delete run. | |
* | |
* To do a dry run: | |
* |
This file contains 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 | |
# | |
# Update a specific puppet environment, typically a git branch `featurename` | |
# or one of your deployment environments, typically `development` or `production` | |
# | |
# Save the script as r10ku somewhere in your $PATH and chmod +x it | |
# | |
# example usage: | |
# | |
# > sudo su - |
This file contains 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 | |
class Environment { | |
/** | |
* Current environment | |
* | |
* @var string | |
*/ | |
static protected $env; |
This file contains 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 | |
/** | |
* TODO: Add support for namespaces... If we ever move to PHP 5.3+ | |
*/ | |
class Autoload { | |
/** | |
* Class directories | |
* |
This file contains 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 | |
class Input { | |
/** | |
* Protocol (http or https) | |
* | |
* @return string | |
*/ | |
static public function protocol() { |
NewerOlder