Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
yee haw

Preston Richey prichey

🤠
yee haw
View GitHub Profile
@prichey
prichey / wordle-words.txt
Last active Mar 30, 2022
All allowed words (both answers and allowed non-answers), extracted from Wordle source. Derived from https://gist.github.com/cfreshman/dec102adb5e60a8299857cbf78f6cf57
View wordle-words.txt
aahed
aalii
aargh
aarti
abaca
abaci
aback
abacs
abaft
abaka
View gist:44c8ac350bd7e9fb19b28d7ddbfe307b
yarn run v1.7.0
$ react-native run-ios --simulator="iPhone 8"
Scanning folders for symlinks in /Users/prichey/pl/audubon/node_modules (17ms)
Found Xcode workspace audubon.xcworkspace
Building using "xcodebuild -workspace audubon.xcworkspace -configuration Debug -scheme audubon -destination id=705E1EEE-D57D-4298-8026-76967CFB83D6 -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/prichey/pl/audubon/ios/build
View dokku-downgrade-unset-cycle-2.txt
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
View dokku-downgrade-unset-cycle.md

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).
View dokku-report-0.11.3.txt
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
View dokku-report-0.10.5.txt
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
View report.txt
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
@prichey
prichey / create-twilio-subaccount.js
Created Aug 24, 2017
Create Twilio Subaccount with Node
View create-twilio-subaccount.js
// 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'
},