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
sculpin: | |
raw: | |
- "bower_components/*" | |
sculpin_posts: | |
permalink: "blog/:filename/" |
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 CalDay | |
{ | |
protected $date; | |
protected $week; | |
protected $id; | |
public function setId($id) | |
{ |
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 CalDay | |
{ | |
protected $date; | |
protected $week; | |
protected $id; | |
public function setId($id) | |
{ |
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
Host github.com | |
hostname github.com | |
IdentityFile ~/.ssh/key |
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
load_ssh_agent() { | |
local keys="$@" | |
local tmp=~/.ssh-agent | |
if [ -e $tmp ] ; then | |
. $tmp | |
fi | |
ssh-add -l > /dev/null | |
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 | |
git diff --cached --name-status --diff-filter=ACMR | while read STATUS FILE; do | |
if [[ "$FILE" =~ ^.+(php|inc)$ ]]; then | |
php -l "$FILE" 1> /dev/null | |
if [ $? -ne 0 ]; then | |
echo "Aborting commit due to files with syntax errors" >&2 | |
exit 1 | |
fi | |
fi |
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
class php | |
{ | |
$packages = [ | |
"php5", | |
"php5-cli", | |
"php5-mysql", | |
"php5-dev", | |
"php5-mcrypt", | |
"php5-gd", | |
"php5-curl", |
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
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... /bin/mkdir -p | |
checking for gawk... gawk | |
checking whether make sets $(MAKE)... yes | |
checking whether to enable maintainer-specific portions of Makefiles... no | |
checking whether make sets $(MAKE)... (cached) yes | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out |
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
# I have a command "opm" which takes, for example argument like: | |
# opm lfs-base/gcc-4.2 configure | |
# | |
# The first argument represents a build script in the format of <category>/<package>-<version> | |
# | |
# These build scripts are stored within /var/opm/opms/ in a structure similar to: | |
# . | |
# |-- lfs-base | |
# | |-- autoconf | |
# | | |-- 2.69.opm |
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 | |
// Some logger interface | |
interface LoggerInterface | |
{ | |
public function log($message); | |
} | |
// Some class that relies upon the LoggerInterface interface |