Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am prichey on github.
  • I am prichey (https://keybase.io/prichey) on keybase.
  • I have a public key whose fingerprint is 7DF0 BCB6 E633 9F1A 629C 687D 9E59 8E0B EDEE D4BE

To claim this, I am signing this object:

@prichey
prichey / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@prichey
prichey / rainbow_wbc.py
Last active November 3, 2016 05:07
Comment heart emoji on WBC's most recent Vine video
import vinepy
def main():
vine = vinepy.API(username='XXXXX@XXXX.XXX', password='XXXXXXXX')
#say hello to westboro baptist
wbc_id = 984602341204725760
wbc_timeline = vine.get_user_timeline(user_id = wbc_id)
post = wbc_timeline[0]
@prichey
prichey / create-twilio-subaccount.js
Created August 24, 2017 17:48
Create Twilio Subaccount with Node
// The documentation on the Twilio site is wrong. (https://www.twilio.com/docs/api/rest/subaccounts#example)
// It looks like client.accounts.create() was deprecated so you have to use the old API.
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = require('twilio')(accountSid, authToken);
client.api.v2010.accounts.create(
{
friendlyName: 'Subaccount'
},
@prichey
prichey / report.txt
Created January 17, 2018 05:37
dokku report
root@prichey:~# dokku report
-----> uname: Linux prichey 4.4.0-98-generic #121-Ubuntu SMP Tue Oct 10 14:24:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
-----> memory:
total used free shared buff/cache available
Mem: 2000 817 121 12 1061 919
Swap: 0 0 0
-----> docker version:
Client:
Version: 1.13.1
API version: 1.26
root@prichey:~# dokku report
-----> uname: Linux prichey 4.4.0-98-generic #121-Ubuntu SMP Tue Oct 10 14:24:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
-----> memory:
total used free shared buff/cache available
Mem: 2000 830 101 33 1068 809
Swap: 0 0 0
-----> docker version:
Client:
Version: 1.13.1
API version: 1.26
root@prichey:~# dokku report
-----> uname: Linux prichey 4.4.0-98-generic #121-Ubuntu SMP Tue Oct 10 14:24:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
-----> memory:
total used free shared buff/cache available
Mem: 2000 837 134 33 1028 821
Swap: 0 0 0
-----> docker version:
Client:
Version: 1.13.1
API version: 1.26

Downgrade

root@prichey:~# sudo apt-get install dokku=0.10.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
dokku is already the newest version (0.10.5).
root@prichey:~# sudo su -
root@prichey:~# apt-get install dokku=0.10.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-63 linux-headers-4.4.0-63-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-70
linux-headers-4.4.0-70-generic linux-headers-4.4.0-71 linux-headers-4.4.0-71-generic linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic