Skip to content

Instantly share code, notes, and snippets.

View yourbuddyconner's full-sized avatar

Conner Swann yourbuddyconner

View GitHub Profile
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

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:

@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
@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 / 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 / gifenc.sh
Created July 21, 2016 19:36
Encode video file to gif using ffmpeg
#!/bin/sh
palette="/tmp/palette.png"
filters="fps=15,scale=320:-1:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2
@yourbuddyconner
yourbuddyconner / getliked.py
Created April 15, 2015 23:07
Get all liked imgur photos from Reddit account
import requests
import requests.auth
import json
import urllib
import os
#setup
if not os.path.exists("liked_images"):
@yourbuddyconner
yourbuddyconner / instructions
Created September 15, 2014 20:10
Patch old iPhone Binaries
sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' old_ios_binary
ldid -s old_ios_binary
@yourbuddyconner
yourbuddyconner / gen_copy_ssh_keys.sh
Last active August 29, 2015 14:05
Bash Script To Generate and Copy SSH Keys To An External Server
##########################################
# This script relies on the package "ssh-copy-id". It's on all your major package
# managers. This script was written for an OSX environment, but there's no reason
# why it wouldn't work on other unix-ey platforms.
#
# WARNING: Use this at your own risk, I'm not responsible if you break something by running it.
#
# The following happens when this script runs.
# .5. Data is gathered.
# 1. Keys are generated and named based on the short name you supply in ~/.ssh/.
@yourbuddyconner
yourbuddyconner / dns_update.sh
Last active April 10, 2017 15:11
NameCheap Dynamic DNS Updater Script
#/bin/bash
Host_Name=host
Domain=example.com
Password="PASS_HASH_FROM_NAMECHEAP"
IP_Address=$(curl -s icanhazip.com)
url="https://dynamicdns.park-your-domain.com/update?host=$Host_Name&domain=$Domain&password=$Password"
result=$(curl -s --globoff $url)