View docker-compose.yml
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" |
View docker_shortcuts.sh
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" |
View salt-call-output.log
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: |
View state-apply-terminal-output.log
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: |
View duplicate_music_fixer.php
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: | |
* |
View gist:4670029
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
☹☺☻☃☠ | |
⚠⚡✆♿ | |
✈☎☏☂☔✉☄☽☾☕✇❤ | |
☯✝✞✟☨☦☭☮☪☫☬☩✠☧✡ | |
♈♉♊♋♌♍♎♏♐♑♒♓ | |
♀♂☿♁⚢⚣⚤⚥⚦⚧⚨⚩ | |
❁❀✿✽✾❃⚘☘ | |
♚♔♛♕♜♖♝♗♞♘♟♙ | |
♥♡♠♤♦♢♣♧ | |
✩★☆✪✫✬✭✮✯✰☼☸☉❂ |
View static-non-static-mixing.php
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 Foo { | |
public static function bar() { | |
echo "calling public static bar() in an ".(isset($this)?"object (".get_class($this).")":"static")." context. \n"; | |
} | |
public function baum() { | |
echo "calling public baum in an ".(isset($this)?"object (".get_class($this).")":"static")." context. \n"; | |
} | |
} |
View id_rsa.pub
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCnSi0RUxRrhmB66fPkoHCPpK3pz953MsEIc/FNmmJhKpvK2IwgjwjXDsMWellY8jTVDmpbEio5PZWCtIFuFOlleAFM/wiocUsSNYMgR2QEeWKqSQ4q76hrkBoIKxThCnI0PRnSFmiXsK74dvEmsBfgEVbJSXd7Kwg1tHBl3FB4vHslCMm5g8e8abRD9wi4iRKxtdxO+jKtQ8JcZ256hrHsaLMz1fXTWlKXd0NoreOcQzO4umqfBxBBY5QIv/GVrbADQlpw3Ilwez/fiw52/dW7F2ndUqJx0O4KGy/bRtLp+f35YsdQzdwgnqMeOA4NnU/iAOixk/zehhcEZ/aYWqB9 geoffrey.hoffman@gmail.com |
View r10ku.sh
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 - |
View Date.php
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 | |
/** | |
* Date class | |
*/ | |
class Date { | |
/** | |
* Fuzzy date strings | |
* | |
* @var array |
NewerOlder