I hereby claim:
- I am keegancsmith on github.
- I am keegancsmith (https://keybase.io/keegancsmith) on keybase.
- I have a public key ASDxe-dA0IVfvuE7Jylvmjdc_jVRwRd8Qe5e0U8Q7cm8lwo
To claim this, I am signing this object:
diff --git a/store/unit_store.go b/store/unit_store.go | |
index 515ed9c..e145bd0 100644 | |
--- a/store/unit_store.go | |
+++ b/store/unit_store.go | |
@@ -90,10 +90,8 @@ func (s unitStores) Refs(f ...RefFilter) ([]*graph.Ref, error) { | |
} | |
c_unitStores_Refs_last_numUnitsQueried = 0 | |
- var ( | |
- allRefs []*graph.Ref |
;; M-x rgrep, but using git grep from the top-level git dir. | |
;; Based on http://stackoverflow.com/questions/25633490/how-can-i-use-m-x-rgrep-with-the-git-grep-command-in-emacs | |
(defcustom git-grep-command "git --no-pager grep --no-color --line-number <C> <R> | sed 's|^|./|'" | |
"The command to run with M-x git-grep.") | |
(defun git-grep (regexp) | |
"Search for the given regexp using `git grep' in the current directory." | |
(interactive "sRegexp: ") | |
(unless (boundp 'grep-find-template) (grep-compute-defaults)) | |
(let ((old-command grep-find-template)) | |
(grep-apply-setting 'grep-find-template git-grep-command) |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" | |
"reflect" |
#!/bin/bash | |
# This script automates the process of collecting pgsql query logs from | |
# kubernetes. The idea comes from a fabric script used by instagram (circa | |
# 2012) https://gist.github.com/mikeyk/2307647 | |
# | |
# Usage ./pgsql_capture.sh namespace -l app=pgsql | |
# | |
# The arguments are passed to `kubectl get pods --namespace` to find the pod to run against |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"net/url" | |
"os" |
#!/bin/bash | |
# Use this script as an example of how to patch k8s resources. It currently | |
# patches the resource constraints. | |
set -e | |
ns=$(cat "$2" | jq -r '.metadata.namespace') | |
name=$(cat "$2" | jq -r '.kind + "/" + .metadata.name') | |
patch=$(cat "$2" | jq -c '{spec: {template: {spec: {containers: [.spec.template.spec.containers[] | {name: .name, resources: .resources}]}}}}') |
#!/bin/bash | |
# Pushes to origin and opens a github compare view of it to speed up PR | |
# creation. | |
# | |
# To install add to $PATH with executable permission and run | |
# | |
# git config --global alias.pr '!github-push-pr' | |
# |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"log" | |
"os" | |
) |
(use-package org-gcal | |
:config | |
(setq org-gcal-client-id "REDACTED" | |
org-gcal-client-secret "REDACTED" | |
org-gcal-file-alist '(("REDACTED" . "~/org-files/gcal.org") | |
("REDACTED" . "~/org-files/office.org") | |
("REDACTED" . "~/org-files/oncall.org"))) | |
;; org-gcal wrappers to only sync with a timeout | |
(defvar org-gcal-fetch-last-run (current-time) | |
"Timestamp of the last time org-gcal-fetch-store-time was run") |