Skip to content

Instantly share code, notes, and snippets.

Colin Mahns colinmahns

Block or report user

Report or block colinmahns

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@colinmahns
colinmahns / citibike.sh
Last active Apr 19, 2017
Quick, not optimized bash script to run in a cronjob at the end of the day. This will print the number of available bikes near a hard coded location and how many bike racks are available near New York's scenic Port Authority Bus Terminal.
View citibike.sh
#!/bin/bash
## Quick script to mention how many bikes are available near $EMPLOYER
## Will also show how many bike racks are available near PABT
## relies on curl and jq
## curl: https://curl.haxx.se/
## jq: https://stedolan.github.io/jq/
URL="https://feeds.citibikenyc.com/stations/stations.json"
JSON="/tmp/citibike.json"
@colinmahns
colinmahns / blockchainblockchain.sh
Created Oct 14, 2015
suggested by @petertodd. please forgive me for this...
View blockchainblockchain.sh
#!/bin/bash
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
#
# blockchainblockchain
# ----------
# A simple blockchainscript which blockchainpicks a random blockchainword from a blockchainlist,
# blockchainprepends "blockchain" to it, and blockchainannouces it with espeak. Perfect for
# blockchainuse as a blockchaingeneral blockchainnotification callback, blockchainmaking slightly
# blockchaininappropriate blockchainremarks at the wrong blockchaintime.
@colinmahns
colinmahns / otrdm.md
Last active Dec 14, 2018
HOWTO: Twitter DM with OTR
View otrdm.md

Twitter DM + OTR: A quick and dirty tutorial

With the recent removal of the 140-character limit in Direct Messages by Twitter, DM's have now become a much more useful platform for communicating between individuals and groups. Sadly, DM's are still sent in plaintext between users and Twitter has no plans currently on encrypting these messages, at least as of August 2015. Since these are stored in plaintext at rest, an adversary can see the content of the message you are sending, which the two parties might not wish to happen. Fortunately as a few applications with basic Twitter support which also have excellent support for OTR, all hope isn't lo

View keybase.md

Keybase proof

I hereby claim:

  • I am colinmahns on github.
  • I am colinmahns (https://keybase.io/colinmahns) on keybase.
  • I have a public key whose fingerprint is 83D3 09AE 31CC 8B58 6EAD 85BE EE40 C97C 1F56 F320

To claim this, I am signing this object:

View gist:7f277f285fe57d65a12a
### Keybase proof
I hereby claim:
* I am colinmahns on github.
* I am colinmahns (https://keybase.io/colinmahns) on keybase.
* I have a public key whose fingerprint is 83D3 09AE 31CC 8B58 6EAD 85BE EE40 C97C 1F56 F320
To claim this, I am signing this object:
View colin.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
List of keys
============
Below is a list of keys I claim to own.
For accounts I claim to own please see https://keybase.io/colinmahns
pgp-fingerprints.txt
- --------------------
View gist:fd41e775d2d157a7dcc4
### Keybase proof
I hereby claim:
* I am colinmahns on github.
* I am colinmahns (https://keybase.io/colinmahns) on keybase.
* I have a public key whose fingerprint is 6877 2943 D7BB 727C B65A 9780 F2A4 FD97 89BF 838C
To claim this, I am signing this object:
You can’t perform that action at this time.