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
# Find latest version of packages | |
curl -X POST \ | |
-H "Accept: application/vnd.github.package-deletes-preview+json" \ | |
-H "Authorization: bearer $GITHUB_API_TOKEN" \ | |
-d '{"query":"query { repository(owner:\"johndoe\", name:\"myepo\") { registryPackagesForQuery(first:10) { edges { node { latestVersion { id } } } } } }"}' \ | |
https://api.github.com/graphql | |
# Example output from above command | |
# {"data":{"repository":{"registryPackagesForQuery":{"edges":[{"node":{"latestVersion":{"id":"MDE01234523233"}}}]}}}} |
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
[ | |
{rabbitmq_email, [ | |
%% gen_smtp server parameters | |
%% see https://github.com/Vagabond/gen_smtp#server-example | |
{server_config, [ | |
[{port, 2525}, {protocol, tcp}, {domain, "geekytidbits.com"}, {address,{0,0,0,0}}] | |
]}, | |
%% how clients are authenticated; either 'false' or 'rabbitmq' (default) | |
{server_auth, false}, | |
%% whether STARTTLS shall be offered; either 'true' or 'false' (default) |

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
/* | |
Example usage: | |
ts-node index.ts bradyholt/repo123 ~/dev/repo123 devtag | |
*/ | |
import axios from "axios"; | |
import childProcess = require("child_process"); | |
let repoName = process.argv[2]; | |
let repoPath = process.argv[3]; |
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
- name: Digital Ocean | |
hosts: all | |
connection: local | |
gather_facts: false | |
vars: | |
do_token: abc123 | |
droplets: | |
- vippers-one | |
- vippers-two | |
- vippers-three |
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
var locales = [ | |
'en', // English | |
'es', // Spanish | |
'fr' // French | |
]; | |
function printDaysOfTheWeek(locale) { | |
var daysOfTheWeek = []; | |
var monday = new Date(); | |
monday.setDate(monday.getDate() - (monday.getDay() + 6) % 7); |
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
lame -V6 --vbr-new --resample 22 -m m recording.wav |
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
#!/bin/bash | |
# Opens GitHub PR for the current branch | |
BRANCH=$(git branch | grep ^* | sed 's/* //' ) | |
URL="https://github.$(git config remote.origin.url | cut -f2 -d. | tr ':' /)/pull/${BRANCH}" | |
open $URL% |
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
CREATE FUNCTION fred() RETURNS blah AS $$ | |
$$ LANGUAGE 'plpgsql'; | |
SELECT fred(); | |
DROP FUNCTION fred(); |
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
#!/usr/bin/env node | |
var fs = require('fs'); | |
var args = fs.readFileSync(process.argv[2], 'utf8'); | |
var changed = false; | |
var jsonPath = null; | |
var json = null; | |
var keyValReplacementString = args.split(' '); | |
keyValReplacementString.forEach(function(i){ |