Skip to content

Instantly share code, notes, and snippets.

View yourbuddyconner's full-sized avatar

Conner Swann yourbuddyconner

View GitHub Profile
@yourbuddyconner
yourbuddyconner / wifi-check-fix.sh
Last active November 14, 2017 21:17
OSX Bash Script to check Internet connectivity and cycle WiFi if it's disconnected
#!/bin/bash
# Global Variables - Important!
AIRPORT=$(networksetup -listallhardwareports | awk '/Wi-Fi/{getline; print $2}'); #Probably en0
WIFI_NETWORK_NAME="network-name" # Insert your network SSID here
WIFI_PASSWORD="password" # Put your Wi-Fi password here
#Turn off Airport and turn it back on
cycle_airport () {
networksetup -setairportpower $AIRPORT off
@yourbuddyconner
yourbuddyconner / .bash_profile
Created June 26, 2018 03:18 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@yourbuddyconner
yourbuddyconner / git-aliases.md
Created June 26, 2018 03:24 — forked from tyomo4ka/git-aliases.md
The Ultimate Git Alias Setup on OS X (brew)

The Ultimate Git Alias Setup on OS X (brew)

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bash_profile

Keybase proof

I hereby claim:

  • I am yourbuddyconner on github.
  • I am yourbuddyconner (https://keybase.io/yourbuddyconner) on keybase.
  • I have a public key ASCHLly0CPK0mvhK2PrvcUv7-vbjXuUrbV8EgtWkncrzZwo

To claim this, I am signing this object:

ec2-54-186-26-179.us-west-2.compute.amazonaws.com | CHANGED | rc=0 >>
Coda Daemon Status
-----------------------------------
Global Number of Accounts: 19
The Total Number of Blocks in the Blockchain: 142
Local Uptime: 66336s
Ledger Merkle Root: 6hrsftPDD5x27dMG5Xfmpc4xwpB3CsDkcJPExJrYrWwxP9KzwH8ND3QgMXVERDHgpbyPSjHpAxQT5BfjT4ifdhWyau45di3swAz2hBPz4CUBV6K4fLs7m1xfekVartTmJ2zbP3oaSfwqk
Staged-ledger Hash: ((non_snark((ledger_hash 6292406557660151705249913076797624716352798627581969816516943782518942137109009718852477496564523402429584890996776512943425041661944553322198810383120521812997315042371729861873225976105353554908296547745795935971731670388257)(aux_hash"[\198\159\237\146[\137\248\224\002\166\162J\022\2541>\012\014\194j\187\195\186\231bY\030\217\143\225\\11")(pending_coinbase_aux"\205p\190\160#\247R\160VJ\187n\208\141B\193D\015.3\226\153\020\229^\011\225Y^$\244Z")))(pending_coinbase_hash 3376429
{
"timestamp": "2019-07-10 21:18:50.356576Z",
"level": "Error",
"source": {
"module": "Gossip_net",
"location": "File \"lib/gossip_net/gossip_net.ml\", line 315, characters 64-71"
},
"message": "broadcasting $short_msg to $peer failed: (Unix.Unix_error \\\"Connection timed out\\\" connect 174.62.79.74:8302)",
"metadata": {
"msg": [
@yourbuddyconner
yourbuddyconner / beautiful-unicorn-daemon-output
Created July 12, 2019 18:46
The final output of the beautiful-unicorn Coda Testnet
Coda Daemon Status
-----------------------------------
Global Number of Accounts: 19
The Total Number of Blocks in the Blockchain: 502
Local Uptime: 238276s
Ledger Merkle Root: 6hrsoajdjZhEyKeoS6nfMBjMEaf6S2x8ACnmNnRSZHjhzFALxAKaQKzP4jFqzcrSosGBzGB6yK8fcpByjzp8fuBAmXG1jDWbxoy4HSqD8EKHv8RTDEPe6eKZdxWJ59GcyK3JUgoGq4FC1
Staged-ledger Hash: ((non_snark((ledger_hash 16739668613153845031367712606795676827144854879462596916156407526736234842071615274295079722952130853132908102416524525699679489162883403289976117115762188897202159019285543402272312326524362519457703522628139594913860607693543)(aux_hash" \250h\246,)\254J%\134L\247\200\007\003\007\t\147j\239\021/\172nem}\150-\027\151*11")(pending_coinbase_aux"\171\203;t\193\195\129\241=Lo\000}\000\205g\020\233\245\223E'\140\195\246\163\205\158\t\195(\177")))(pending_coinbase_hash 22251588704191922986980014968930435609966552143456819147523347164707430258628195119
@yourbuddyconner
yourbuddyconner / mighty-wombat-coda-client-status-1
Last active July 15, 2019 17:40
Output of coda client status for the mighty-wombat testnet
Global Number of Accounts: 18
The Total Number of Blocks in the Blockchain: 2
Local Uptime: 666s
Ledger Merkle Root: 6hrsn2jsuuEzphXCsBE4C79X77wQZ2Z8ehvHpfJfGm7hvfWgvUPfF3fEcdN8K3nCmaNSLR2GVYRJf17KgAhUyzkgdtPvy4AxsbPVrx3z9uRMmmCHaB2RT58V1F6sZPgAMstWHfEFxXzaz
Staged-ledger Hash: ((non_snark((ledger_hash 33861392709310913726375663575310802124482457023435293132074135638891880282597235429586503448639726081360513996774673272553210858210353444904522654669585025938667794853035134090196833402938053654109743254433815421750980636272063)(aux_hash"O\007`\218W\217P\014\142!\248\161\130QI\021\134v\228\182\027<\176\245Ev\197\224\133a+z2")(pending_coinbase_aux"\147\141\184\201\248,\140\181\141?>\244\253%\0006\164\141&\167\018u=/\222Z\189\003\168\\\171\244")))(pending_coinbase_hash 42532223185701860227194063098895316196168299409338583616766683781076395076980092292827000656375238083206546074982256859841447095314970977446
{"timestamp":"2019-07-24 02:29:34.377000Z","level":"Warn","source":{"module":"Transition_router","location":"File \"lib/transition_router/transition_router.ml\", line 162, characters 61-68"},"message":"Still waiting $tm_remaining milliseconds before running transition router","metadata":{"pid":9028,"tm_remaining":25631}}
{"timestamp":"2019-07-24 02:30:04.377151Z","level":"Warn","source":{"module":"Transition_router","location":"File \"lib/transition_router/transition_router.ml\", line 162, characters 61-68"},"message":"Still waiting $tm_remaining milliseconds before running transition router","metadata":{"pid":9028,"tm_remaining":-4369}}
{"timestamp":"2019-07-24 02:30:04.377151Z","level":"Warn","source":{"module":"Transition_router","location":"File \"lib/transition_router/transition_router.ml\", line 162, characters 61-68"},"message":"Still waiting $tm_remaining milliseconds before running transition router","metadata":{"pid":9028,"tm_remaining":-4369}}
{"timestamp":"2019-07-24 02:30:04.377226Z","level":"Inf
@yourbuddyconner
yourbuddyconner / tail.txt
Created October 9, 2019 20:53
SNARK Coordinator Logs 10-9-19
~$ tail -n 20 test-snark-worker-*/coda.log
==> test-snark-worker-0Z48B809/coda.log <==
* G2 elements in proof: 1
* Proof size in bits: 3015
* Elements of w skipped: 1894 (5.42%)
* Elements of w processed with special addition: 368 (1.05%)
* Elements of w remaining: 32697 (93.53%)
* Elements of w skipped: 773 (4.53%)
* Elements of w processed with special addition: 368 (2.16%)
* Elements of w remaining: 15925 (93.31%)