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 | |
try { | |
// Decode JSON data from Github | |
$payload = json_decode($_REQUEST['payload']); | |
} | |
catch(Exception $e) { | |
exit(0); | |
} | |
// Deploy live if push was on master branch |
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 | |
try { | |
// Decode JSON data from Bitbucket | |
$payload = json_decode($_REQUEST['payload']); | |
} | |
catch(Exception $e) { | |
exit(0); | |
} | |
file_put_contents('payload.log', print_r($payload, TRUE), FILE_APPEND); |
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
#!/usr/local/bin/fontforge | |
i=1 | |
while ( i<$argc ) | |
Open($argv[i]) | |
Generate($argv[i]:r + ".svg") | |
i = i+1 | |
endloop |
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
.PWN-Module-Panel-Panel .panel-filter .filters .filter-content .filter-or .active a, .PWN-Module-Panel-Panel .panel-filter .filters .filter-content .filter-or .panel-menu .level1-mobile li .featured-links-mobile li a:hover a, .PWN-Module-Panel-Panel .panel-menu .level1-mobile li .featured-links-mobile li .panel-filter .filters .filter-content .filter-or a:hover a, .PWN-Module-Panel-Panel .panel-filter .filters .filter-content .filter-or .panel-menu .level1-mobile li .featured-links-mobile li a:focus a, .PWN-Module-Panel-Panel .panel-menu .level1-mobile li .featured-links-mobile li .panel-filter .filters .filter-content .filter-or a:focus a, | |
.PWN-Module-Panel-Panel .panel-filter-search-rooms .filters .filter-content .filter-or .active a, | |
.PWN-Module-Panel-Panel .panel-filter-search-rooms .filters .filter-content .filter-or .panel-menu .level1-mobile li .featured-links-mobile li a:hover a, | |
.PWN-Module-Panel-Panel .panel-menu .level1-mobile li .featured-links-mobile li .panel-filter |
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
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "double", |
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
#!/usr/bin/env bash | |
# ~/.osx — https://mths.be/osx | |
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/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
sshagent () { | |
SSHAGENT=$(ps ax|grep "[s]sh-agent"| grep -cv Z) | |
if (( $SSHAGENT == 0 )) | |
then | |
sshupdate | |
else | |
SSHPID="$(ps -eo pid,command | awk '/ ssh-[a]gent/ {print $1}');" | |
SSHPID_ENV=$(awk '/Agent/ {print $NF}' $HOME/.ssh-env) | |
if [[ $SSHPID == $SSHPID_ENV ]] | |
then |
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
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$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
#!/bin/sh | |
mkdir -p ${XDG_CONFIG_HOME:=$HOME/.config} | |
ln -s ~/.vim $XDG_CONFIG_HOME/nvim | |
ln -s ~/.vimrc $XDG_CONFIG_HOME/nvim/init.vim |
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
autoload colors && colors | |
PROMPT=' | |
$(_user_host)${_current_dir} $(git_prompt_info) $(_ruby_version) | |
▶ ' | |
PROMPT2='%{$fg[grey]%}◀%{$reset_color%} ' | |
RPROMPT='$(_vi_status)%{$(echotc UP 1)%}$(_git_time_since_commit) $(git_prompt_status) ${_return_status}%{$(echotc DO 1)%}' |
OlderNewer