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
☹☺☻☃☠ | |
⚠⚡✆♿ | |
✈☎☏☂☔✉☄☽☾☕✇❤ | |
☯✝✞✟☨☦☭☮☪☫☬☩✠☧✡ | |
♈♉♊♋♌♍♎♏♐♑♒♓ | |
♀♂☿♁⚢⚣⚤⚥⚦⚧⚨⚩ | |
❁❀✿✽✾❃⚘☘ | |
♚♔♛♕♜♖♝♗♞♘♟♙ | |
♥♡♠♤♦♢♣♧ | |
✩★☆✪✫✬✭✮✯✰☼☸☉❂ |
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"; | |
} | |
} |
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 |
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 - |
NewerOlder