This file contains hidden or 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
| if [ "$#" -ne 4 ]; then | |
| echo "Illegal number of parameters" | |
| exit | |
| fi | |
| DB=$1 | |
| DESTINATION=$2 | |
| NAME=$3 | |
| DATE=$(date +"%Y-%m-%d") | |
| RETENTION=$4 |
This file contains hidden or 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
| deploy: | |
| steps: | |
| - add-to-known_hosts: | |
| hostname: $HOSTNAME | |
| - add-ssh-key: | |
| keyname: KEY | |
| - script: | |
| name: Push to dokku | |
| code: | | |
| git remote add dokku dokku@$HOSTNAME:$APP |
This file contains hidden or 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
| [core] | |
| editor = vi | |
| [color] | |
| ui = true | |
| [alias] | |
| co = checkout | |
| st = status | |
| br = branch | |
| tree = log --oneline --graph --decorate --all |
This file contains hidden or 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
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| NO_COLOUR="\[\033[0m\]" | |
| function parse_git_branch () { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| export PS1="\[\e]0;\u:\w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\]:\w\[\033[00m\]$YELLOW\$(parse_git_branch)$NO_COLOUR\$" |
This file contains hidden or 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
| function getParameterByName(name) { | |
| var name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"), | |
| regexS = "[\\?&]" + name + "=([^&#]*)", | |
| regex = new RegExp(regexS), | |
| results = regex.exec(window.location.search); | |
| return results ? decodeURIComponent(results[1].replace(/\+/g, " ")) : ''; | |
| } | |
| if(getParameterByName('no_border') == 1) { | |
| $('html').css('background-image', 'none'); |
This file contains hidden or 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
| /* Library Code */ | |
| (function(global, $) { | |
| function Wordpress(url) { | |
| this.init(url); | |
| } | |
| Wordpress.prototype = { |
This file contains hidden or 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
| function FacebookPhotoSelect(options) { | |
| var defaultSettings = { | |
| button: null, | |
| onSelect: function(url) {} | |
| } | |
| this.options = $.extend(defaultSettings, options); | |
| this.init(); | |
| } | |
| FacebookPhotoSelect.prototype.init = function() { |