Skip to content

Instantly share code, notes, and snippets.

View clintonhalpin's full-sized avatar
✌️

Clinton Halpin clintonhalpin

✌️
View GitHub Profile

💰 fun tmux aliases!

alias tl='tmux list-sessions'            # list all
alias tn='tmux new -s'                   # create
alias ta='tmux attach -t'                # edit
alias tkss='tmux kill-session -t'        # delete
alias tksv='tmux kill-server'            # stop
{"count":200,"next":"https:\/\/cryptopanic.com\/api\/posts\/?auth_token=072c341f66a942d399f9a368c593a245e9fcae48&page=2","previous":null,"results":[{"domain":"coinspeaker.com","votes":{"negative":1,"positive":0,"important":0,"liked":1,"disliked":0,"lol":0,"toxic":0,"saved":0},"source":{"domain":"coinspeaker.com","title":"Coinspeaker","region":"en","path":null},"title":"Premium Division Football Team Turns to Crypto Payments for Enhanced Transparency","published_at":"2018-07-30T17:18:52Z","slug":"Premium-Division-Football-Team-Turns-to-Crypto-Payments-for-Enhanced-Transparency","currencies":[{"code":"BTC","title":"Bitcoin","slug":"bitcoin","url":"https:\/\/cryptopanic.com\/news\/bitcoin\/"}],"id":2676913,"created_at":"2018-07-30T17:18:52Z","url":"https:\/\/cryptopanic.com\/news\/2676913\/Premium-Division-Football-Team-Turns-to-Crypto-Payments-for-Enhanced-Transparency"},{"domain":"cointelegraph.com","votes":{"negative":1,"positive":0,"important":1,"liked":1,"disliked":0,"lol":0,"toxic":0,"saved":1},"source":{"
syntax on
filetype plugin indent on
set cursorline
set expandtab
set modelines=0
set shiftwidth=4
set clipboard=unnamed
set synmaxcol=128
set ttyscroll=10

Keybase proof

I hereby claim:

  • I am clintonhalpin on github.
  • I am clintonhalpin (https://keybase.io/clintonhalpin) on keybase.
  • I have a public key ASCzWumNju-cM_-uOx5vHF7aOqETVFMjx7ydIVtG40_ZLgo

To claim this, I am signing this object:

{"data":{"ambiguous":false,"type":"TV Show","show":{"title":"Stranger Things","title_description":"When a young boy vanishes, a small town uncovers a mystery involving secret experiments, terrifying supernatural forces, and one strange little girl.","title_publication_date":"2016-07-15","title_movie_db_id":66732,"title_image":"https:\/\/image.tmdb.org\/t\/p\/original\/lXS60geme1LlEob5Wgvj3KilClA.jpg","title_genres":["Drama","Mystery","Sci-Fi & Fantasy"]},"seasons":[{"title_publication_date":"2016-07-15","title":"Season 1","title_description":"Strange things are afoot in Hawkins, Indiana, where a young boy's sudden disappearance unearths a young girl with otherworldly powers.","title_movie_db_id":77680,"title_image":"https:\/\/image.tmdb.org\/t\/p\/original\/xRTUb8oeQHGjyBWj7OOpkvUuvKO.jpg","title_communicators":[{"type":"character","character":"Joyce Byers","name":"Winona Ryder"},{"type":"character","character":"Jim Hopper","name":"David Harbour"},{"type":"character","character":"Will Byers","name":"Noah Schn
package main
import(
"log"
"net/http"
"database/sql"
"github.com/gin-gonic/gin"
_ "github.com/go-sql-driver/mysql"
)

How to make bash really spooky

spooky

function parse_git_branch () {
    git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}

function spookyShell() {
/**
* Code Golfing arrow functions
*/
// map with parens and brackets
arr.map((item) => { return item })
// Remove parens for args
arr.map(item => { return item })
This file has been truncated, but you can view the full file.
["https:\/\/en.wikipedia.org\/wiki\/Paul_Gauguin","https:\/\/en.wikipedia.org\/wiki\/Henri_Matisse","https:\/\/en.wikipedia.org\/wiki\/Hello","https:\/\/en.wikipedia.org\/wiki\/Brady","https:\/\/en.wikipedia.org\/wiki\/Ernest_Hemingway","https:\/\/en.wikipedia.org\/wiki\/Kevin","https:\/\/en.wikipedia.org\/wiki\/Clint","https:\/\/en.wikipedia.org\/wiki\/Frank_Sinatra","https:\/\/en.wikipedia.org\/wiki\/Arnold_Palmer","https:\/\/en.wikipedia.org\/wiki\/Arianna_Huffington","https:\/\/en.wikipedia.org\/wiki\/Nassim_Nicholas_Taleb","https:\/\/en.wikipedia.org\/wiki\/Matt_Mullenweg","https:\/\/en.wikipedia.org\/wiki\/Simon_Critchley","https:\/\/en.wikipedia.org\/wiki\/Hubert_Dreyfus","https:\/\/en.wikipedia.org\/wiki\/Jean_Baudrillard","https:\/\/en.wikipedia.org\/wiki\/Virgil","https:\/\/en.wikipedia.org\/wiki\/Stanley_Fish","https:\/\/en.wikipedia.org\/wiki\/Eric_Schmidt","https:\/\/en.wikipedia.org\/wiki\/Jason_Epstein","https:\/\/en.wikipedia.org\/wiki\/Pierre_Teilhard_de_Chardin","https:\/\/en.wikipedia.org\/