Skip to content

Instantly share code, notes, and snippets.

View codegoalie's full-sized avatar

Chris Marshall codegoalie

View GitHub Profile
@codegoalie
codegoalie / resub.sh
Created June 3, 2021 19:15
(Re)watch all of your own repos using gh cli
$ gh api graphql --paginate -f query='
query($endCursor: String) {
viewer {
repositories(first: 100, after: $endCursor) {
nodes { nameWithOwner }
pageInfo {
hasNextPage
endCursor
}
}
@codegoalie
codegoalie / file.js
Created February 16, 2021 21:18
Disable instapage buttons for a few seconds
const buttonDelaySeconds = 5;
const selector = ".btn.url-link";
function run() {
var els = document.querySelectorAll(selector);
var origHrefs = [];
els.forEach(function (el) {
origHrefs.push(el.href);
el.style["pointer-events"] = "none";
el.style.opacity = 0.2;
#!/bin/bash
set -e
if [ -z "$1" ]
then
echo "Please provide a version number, like 1.13.5"
exit 1
fi
@codegoalie
codegoalie / styler.xml
Created January 8, 2010 15:48 — forked from cmarshall/styler.xml
Notepad++ styles
<?xml version="1.0" encoding="Windows-1252" ?>
<NotepadPlus>
<LexerStyles>
<LexerType name="actionscript" desc="ActionScript" ext="">
<!--
<WordsStyle name="DIRECTIVE" styleID="19" fgColor="A001D6" bgColor="363636" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" />
-->
<WordsStyle name="DEFAULT" styleID="11" fgColor="FFFFFF" bgColor="363636" fontName="" fontStyle="0" fontSize="" />
<WordsStyle name="FUNCTION" styleID="20" fgColor="95004A" bgColor="363636" fontName="" fontStyle="0" fontSize="" keywordClass="type2" />
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="804000" bgColor="363636" fontName="" fontStyle="0" fontSize="" />
package models
// Place represents a place of residence to be listed and filtered
type Place struct {
Name string
Region string
Location string
ContactName string
SquareFeet int
}

Keybase proof

I hereby claim:

  • I am codegoalie on github.
  • I am codegoalie (https://keybase.io/codegoalie) on keybase.
  • I have a public key ASCBibAlr_5Q_k6LdB1S5BXOjqo4lV1rii6vI7g92shZago

To claim this, I am signing this object:

@codegoalie
codegoalie / nachos-java on Ubuntu
Created October 27, 2010 18:48
These are the steps I took to get nachos-java working on UBuntu 10.10
Setting up NACHOS in Ubuntu Linux
1) Download and Extract the nachos-java.tar.gz
2) Install sun-java6-jdk package. (sudo apt-get install sun-java6-jdk)
3) Add the nachos executable to your PATH, by adding the following lines to your ~/.profile file.
if [ -d "$HOME/nachos/bin" ] ; then
PATH="$HOME/nachos/bin:$PATH"
fi
#!/bin/bash
# This script takes story ID and type then a branch subname.
# It will use goutrack to mark the story as in progress and create a new branch
# in the current directory off the current branch with the format:
# <type>/<ID>-<subname>
while [[ $# > 1 ]]
do
key="$1"
require 'benchmark'
n = 500_000
Benchmark.bm(7) do |x|
x.report('append:') do
a = ''
n.times { a << 'a' }
end
x.report('+=:') do