Skip to content

Instantly share code, notes, and snippets.

View sha1sum's full-sized avatar

Anthony Atkinson sha1sum

  • GRIN, Inc.
  • Saint Petersburg, FL, United States
View GitHub Profile
@sha1sum
sha1sum / go.xml
Created March 26, 2016 13:02
GOlang File Format for Beyond Compare
<?xml version="1.0" encoding="UTF-8"?>
<!-- Produced by Beyond Compare 4 from Scooter Software -->
<!--
This is an extension of the work done by Nate Finch:
https://npf.io/2014/05/diffing-go-with-beyond-compare/
The regular expressions for identifiers have been updated
to match on lowercase and allow numbers to be included anywhere
after the first character of the word.
atom.commands.add 'atom-text-editor', 'custom:vim-mode-and-core-cancel', ->
editor = atom.views.getView(atom.workspace.getActiveTextEditor())
atom.commands.dispatch(editor, 'vim-mode-plus:activate-normal-mode')
atom.commands.dispatch(atom.views.getView(atom.workspace), 'core:cancel')
require 'fileutils'
# Install the 'facter' gem if not already installed. Facter assists in automatically determining the RAM and CPUs
# to use for the VM.
facter_plugins = `vagrant plugin list | grep facter`.tr("\n","")
unless facter_plugins.length > 0
puts "The 'facter' gem is not yet installed; installing..."
system 'vagrant', 'plugin', 'install', 'facter'
end
bSubs := BSONCollection{}
err := q(query).All(&bSubs)
// bSubs is still a zero-value BSONCollection, not bsonCol
{
"query": {
"match": {
"values.shortDescription": "automadic generater"
}
},
"filter": {
"bool": {
"must": [
{
@sha1sum
sha1sum / functions.sh
Created August 19, 2017 14:54
Provisioning K8S on GCP
#!/bin/bash
gcp () {
gcp_in=$(gcloud ${@} 2>&1)
ec=$?
if [ ${ec} -ne 0 ]; then
echo; echo "ERROR!"; echo; echo "${gcp_in}"; echo
fi
return ${ec}
}
@sha1sum
sha1sum / mac_os_sierra.log
Last active August 24, 2017 01:44
Telepresence Logs
Context: gke_powerchord-dx_us-east1-b_aatkinson, namespace: default, kubectl_command: kubectl
Running: (['kubectl', '--context', 'gke_powerchord-dx_us-east1-b_aatkinson', 'cluster-info'],)... ran!
Running 'ssh -V'...Running: (['which', 'torsocks'],)... ran!
Running: (['which', 'sshfs'],)... ran!
Running: (['kubectl', '--context', 'gke_powerchord-dx_us-east1-b_aatkinson', '--namespace', 'default', 'get', 'deployment', '-o', 'json', '--export', 'api'],)... ran!
Running: (['kubectl', '--context', 'gke_powerchord-dx_us-east1-b_aatkinson', '--namespace', 'default', 'delete', 'deployment', 'api'],)... deployment "api" deleted
ran!
Running: (['kubectl', '--context', 'gke_powerchord-dx_us-east1-b_aatkinson', '--namespace', 'default', 'apply', '-f', '-'],)... deployment "api" created
ran!
Running: (['kubectl', '--context', 'gke_powerchord-dx_us-east1-b_aatkinson', '--namespace', 'default', 'get', 'deployment', '-o', 'json', '--export', '--selector=telepresence=3ea74b9a-64c9-4644-8f9d-b90553cb849e'],)... ran!

Whole Duck Cassoulet from Scratch

Pairs well with Côtes du Rhône or Malbec

Ingredients

Qty Ingredient
1 Whole Duck
1/2 c. Breadcrumbs
@sha1sum
sha1sum / beef_stew.md
Created January 7, 2021 03:51
Beef Stew

Ingredients

  • 2 lb. Chuck roast, trimmed, sliced into ¾" cubes
  • ½ c. Vegetable oil
  • 6-8 Garlic cloves, peeled and slivered
  • Around 2-3 lbs. Yellow onions, sliced into the desired size
  • 1 bottle Light beer
  • 1 gal. Homemade chicken broth/light stock (this makes a huge difference)
  • ¼ c. Soy sauce
  • 1 tbsp. Anchovy paste (or about 3-4 fillets smashed into a paste)
@sha1sum
sha1sum / tmdb.js
Last active June 4, 2022 08:30 — forked from boringparty/tmdb.md
TMDB Script w/ Google Apps Script
/**
* Returns omdb information
*
* @param {AL3} ids
* @param {"public"|"private"} type
* @return {array} range of information from API
* @customfunction
*/
function TMDB(ids) {
var tmdbKey = 'abcd1234';