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
{ | |
"files.associations": { | |
"*.module": "php", | |
"*.install": "php", | |
"*.inc": "php", | |
"*.info": "ini" | |
} | |
} |
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
[Desktop Entry] | |
Version=1.0 | |
Terminal=false | |
Type=Application | |
Name=Postman | |
Exec=/opt/Postman/Postman | |
Icon=/opt/Postman/resources/app/assets/icon.png |
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
sed -E -i 's/(}\)\(\), )4(\);)/\11\2/' /usr/local/bin/yarn |
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
// ==UserScript== | |
// @name Tugboat console width | |
// @namespace http://cravencode.com/ | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js | |
// @include https://dashboard.tugboat.qa/* | |
// ==/UserScript== | |
/* jshint ignore:start */ | |
var inline_src = (<><![CDATA[ |
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 | |
SYNC_CONTAINER="$1" | |
getLogfile () { | |
echo "/tmp/$( docker exec "$SYNC_CONTAINER" ls /tmp/ | grep ^unison-stdout-- )" | |
} | |
if [ $# -lt 1 ]; then | |
>&2 echo "Error: an argument with the docker-sync container name must be passed" |
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 | |
curl -s https://getcaddy.com | bash | |
which caddy | |
sleep 5 | |
sudo mkdir /etc/caddy | |
sudo chown -R root:www-data /etc/caddy | |
sudo touch /etc/caddy/Caddyfile |
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 | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
apt-cache policy docker-ce | |
sleep 5 | |
sudo apt-get install -y docker-ce |
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 | |
# Before running this make sure Caddy and Docker are installed: | |
# https://gist.github.com/codycraven/bba48dcdcd87a9df4e2bb87834b5a65d | |
# https://gist.github.com/codycraven/24752be91b676b1c193771a652f4b60d | |
# Get sudo | |
sudo echo | |
# Manual configuration |
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 | |
function validCheckDigit($number) { | |
// Reverse digits. | |
$digits = str_split(strrev($number)); | |
$sumDigits = []; | |
foreach ($digits as $key => $value) { | |
// Double every other digit, starting with the check digit. | |
if ($key % 2 !== 0) { | |
// Sum tens and ones place when greater than 9. |
OlderNewer