Skip to content

Instantly share code, notes, and snippets.

View tobbbles's full-sized avatar
🇺🇦
#WeStandWithUkraine

Toby Archer tobbbles

🇺🇦
#WeStandWithUkraine
View GitHub Profile
@tobbbles
tobbbles / git-pulls.sh
Created July 3, 2020 10:39
A little git script to open the pull requests page of a repository.
#!/bin/bash
open https://github.com/$(git remote get-url origin | sed 's/git@github.com://' | sed 's/.git//g')/pulls

Keybase proof

I hereby claim:

  • I am tobbbles on github.
  • I am mnzt (https://keybase.io/mnzt) on keybase.
  • I have a public key whose fingerprint is 44D7 6D27 5FFA 95F7 D09B F6F4 4B5C BFFA 80CF 9D28

To claim this, I am signing this object:

@tobbbles
tobbbles / cover.sh
Last active February 22, 2017 17:39
workdir=.cover
profile="coverage.out"
mode=count
rm -rf "$workdir"
mkdir "$workdir"
for pkg in $(go list ./... | grep -v vendor/); do
f="$workdir/$(echo $pkg | tr / -).cover"
go test -covermode="$mode" -coverprofile="$f" "$pkg"
@tobbbles
tobbbles / instacheck.sh
Created November 19, 2016 21:23
Insert the Instagram username you want to check as an argument.
if [[
$(curl -sS 'https://www.instagram.com/accounts/web_create_ajax/attempt/' \
-H 'origin: https://www.instagram.com' \
-H 'accept-encoding: gzip, deflate, br' \
-H 'x-requested-with: XMLHttpRequest' \
-H 'x-csrftoken: 111' \
-H 'cookie:mid=111; ig_pr=2; ig_vw=632; csrftoken=111' \
-H 'x-instagram-ajax: 1' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'accept: */*' \

Keybase proof

I hereby claim:

  • I am mnzt on github.
  • I am mnzt (https://keybase.io/mnzt) on keybase.
  • I have a public key whose fingerprint is 44D7 6D27 5FFA 95F7 D09B F6F4 4B5C BFFA 80CF 9D28

To claim this, I am signing this object: