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
var crypto = require('crypto'), | |
hmac = crypto.createHmac('sha1', 'GitHub Secret'); | |
hmac.update(GitHub_POST_data); | |
console.log('sha1=' + hmac.digest('hex')); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:gpx="http://www.topografix.com/GPX/1/1"> | |
<xsl:template match="/"> | |
<TrainingCenterDatabase xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2 http://www.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd"> | |
<Courses> | |
<Course> | |
<xsl:for-each select="//gpx:rtept"> | |
<CoursePoint> | |
<Name><xsl:value-of select="gpx:name"/></Name> | |
<Time>2000-01-01T00:00:00Z</Time> |
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
# @TODO Try using: https://github.com/boxen/our-boxen/ | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" \ | |
&& brew tap caskroom/cask \ | |
&& brew cask install google-chrome keepassx atom megasync \ | |
&& apm install Sublime-Style-Column-Selection atom-beautify editorconfig expand-region highlight-line highlight-selected jshint language-docker language-patch minimap minimap-git-diff monokai react script seti-ui title-case \ | |
&& brew install ack ansible tree android-platform-tools node vim bash-completion openssl wakeonlan wget git z \ | |
&& brew cask install android-file-transfer firefox startninja appcleaner franz flycut mactracker macvim the-unarchiver mattr-slate vagrant virtualbox virtualbox-extension-pack rowanj-gitx vlc xquartz dockertoolbox imageoptim sourcetree iterm2 \ | |
&& curl -sSL https://raw.githubusercontent.com/sebflipper/dotfiles/master/install | bash \ | |
&& source ~/.bash_profile \ | |
&& mac-up && brew-up |
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
alias brew-up='brew update && brew upgrade --all && brew-cask-upgrade && brew cask cleanup && brew cleanup' |
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
alias pi-up="sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo rpi-update && sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get clean" |
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 | |
set -e | |
FQDN[0]="test.example.com" | |
FQDN[1]="test2.example.com" | |
for hn in "${FQDN[@]}" | |
do | |
echo $hn | |
mkdir $hn.ssl |
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
# Updates, Homebrew & Cask | |
alias update='mac-up && brew-up && apm update --confirm false' | |
alias mac-up='sudo softwareupdate --install --all' | |
alias brew-cask-upgrade='for c in `brew cask list | grep -v "(\!)"`; do ! brew cask info $c | grep -qF "Not installed" || brew cask install $c; done' | |
alias brew-up='brew update && brew upgrade && brew-cask-upgrade && brew cask cleanup && brew cleanup' |
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
// @see http://stackoverflow.com/a/15724300 | |
export default (cookieName) => { | |
const value = `; ${document.cookie}`; | |
const parts = value.split(`; ${cookieName}=`); | |
if (parts.length === 2) { | |
return parts.pop().split(';').shift(); | |
} | |
}; |
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
<!-- Place before </body> --> | |
<script async defer type="text/javascript"> | |
(function() { | |
if (window.addEventListener) { | |
window.addEventListener('load', loadHandler, false); | |
} else if (window.attachEvent) { | |
window.attachEvent('onload', loadHandler); | |
} else { | |
window.onload = loadHandler; // Or you may want to leave this off and just not support REALLY old browsers | |
} |
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
# yarn global add npm-sort | |
# find . ! -path "*node_modules*" -type f -name "package.json" -exec `pwd`/sort-package-json.sh "{}" \; | |
pushd `dirname $1` && npm-sort && sed -i '' -e '$a\' package.json && popd |
OlderNewer