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
{% include "_components/breadcrumbNavigation" with { | |
content: { | |
list: [ | |
{ | |
hyperlink: { | |
url: url('blog'), | |
text: 'blog'|t('site/navigation') | |
} | |
}, | |
{ |
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 | |
# Adapted from http://blog.jessitron.com/2013/08/finding-and-removing-large-files-in-git.html | |
BRANCH_LIST=$@ | |
filesAndSizes() { | |
# Get all files recursively in this revision |
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
*.bak | |
*.diff | |
*.patch | |
*.md | |
*.err | |
*.orig | |
*.log | |
*.rej | |
*.swo | |
*.swp |
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
# ------------------------------------------------------------------------------ | |
# | Suppressing / Forcing the "/" at the end of URLs | | |
# ------------------------------------------------------------------------------ | |
# Place this underneath the 'Suppressing / Forcing the "www."' | |
# section of the h5bp file, or just ensure it occurs before the | |
# index.php rewrite. | |
<IfModule mod_rewrite.c> | |
RewriteCond %{REQUEST_FILENAME} !-f |
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
UPDATE `table` SET `zip` = LPAD(`zip`, 5, '0'); |
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 | |
cat "$1" | while read line; do | |
./pngtake.sh $line | |
done | |
echo "Done." | |
exit 0 |
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
For video only: | |
ffmpeg -f x11grab -r 25 -s 1440x900 -i :0.0 -vcodec libx264 -preset ultrafast -crf 0 output.mkv | |
For video and audio: | |
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
// Regex for finding all exp:channel:entries tags that have no disable attribute set. | |
\{exp:channel:entries(?!.*disable).*?\} |
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
## Unicorn | |
Make sure brew is up to date and install apache-ivy. | |
brew update | |
brew install ivy | |
Create a working directory for compiling and clone from mercurial. | |
mkdir -p ~/Projects/local |
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
Install php-build: | |
sudo apt-get build-dep php5-cli git | |
git clone git://github.com/CHH/php-build | |
sudo php-build/install.sh | |
Install php-version: | |
git clone https://github.com/wilmoore/php-version.git | |
sudo ln -s php-version/php-version.sh /usr/local/bin/php-version |