Skip to content

Instantly share code, notes, and snippets.

View joh6nn's full-sized avatar

joh6nn joh6nn

  • 22:24 (UTC -04:00)
View GitHub Profile
@joh6nn
joh6nn / keybase.md
Last active January 12, 2018 19:06

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@joh6nn
joh6nn / auto-screen.sh
Created October 3, 2017 17:11
When logging in via ssh, automatically start a screen session if one is not running. Otherwise, display a list of available screen sessions, and automatically reconnect to the first available session after a timeout
#! /bin/bash
# when logging in via ssh, automatically start a screen session if one is not
# running. otherwise, display a list of available screen sessions, and
# automatically reconnect to the first available session after a timeout
# Copyright (C) 2011 joh6nn@gmail.com
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@joh6nn
joh6nn / auto-tmux.sh
Created October 3, 2017 16:39
When logging in via ssh, automatically start a tmux session if one is not running. Otherwise, display a list of available tmux sessions, and automatically reconnect to the first available session after a timeout
#! /bin/bash
# When logging in via ssh, automatically start a tmux session if one is not
# running. Otherwise, display a list of available tmux sessions, and
# automatically reconnect to the first available session after a timeout
# Copyright (C) 2017 joh6nn@gmail.com
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@joh6nn
joh6nn / add-to-asana
Created January 4, 2015 15:19
asana csv import
#!/usr/bin/env ruby
require "rubygems"
require "json"
require "net/https"
require "csv"
require 'io/console'
def rest_req(uri, req_type, data)
# content-type header is common to all requests
header = { "Content-Type" => "application/json" }