Skip to content

Instantly share code, notes, and snippets.

View jwrb's full-sized avatar
🏠
Working from home

Joshua Baldwin jwrb

🏠
Working from home
View GitHub Profile
@jwrb
jwrb / GetShapeArea.jsx
Last active August 30, 2016 08:34 — forked from bryanbuchanan/GetShapeArea.jsx
Script to find the area of shapes in Adobe Illustrator
/* Save this file with a jsx extension and place in your
Illustrator/Presets/en_US/Scripts folder. You can then
access it from the File > Scripts menu */
if (app.documents.length > 0) {
if (app.activeDocument.selection.length < 1) {
alert('Select a path first');
} else if (app.activeDocument.selection[0].area) {
// Individual Items
@jwrb
jwrb / osx-for-hackers.sh
Last active August 29, 2015 14:26 — forked from matthewmueller/osx-for-hackers.sh
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
# Modified for Joshua Baldwin
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
@jwrb
jwrb / gist:8f7192553c9f2128275f
Created April 24, 2015 23:02
paycoind_ubuntu_install.sh
#!/bin/bash
# Change to a temporary directory to download source
${SOURCE_DIR=`mktemp -d`}
cd "$SOURCE_DIR"
# Update and install dependency packages
sudo apt-get update && apt-get upgrade
sudo apt-get install ntp git libssl-dev libboost-all-dev libdb5.1-dev libdb5.1++-dev
@jwrb
jwrb / Tutorial.md
Last active August 29, 2015 14:15 — forked from vemacs/Tutorial.md

Prerequisites

  • a vswap OpenVZ VPS or a KVM/Xen/VMware VPS with Ubuntu Server 14.04 LTS installed (architecture doesn't matter), or a dedicated server
  • patience and a willingness to learn
  • approximately 10 minutes of time

Why Ubuntu LTS?

#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@jwrb
jwrb / gist:6661173
Created September 22, 2013 15:44
meow
checkurl = 'http://xpaw.ru/mcstatus/status.json'
import web
import json
def getstatus():
body = web.get(checkurl)
result = json.loads(body)
return result['report']
@jwrb
jwrb / patch.py
Last active December 19, 2015 19:19
Cubeworld IP Binder. Patch your CubeWorld Server executable and make it bind to just one IP!
#!/usr/bin/python
'''
CubeWorld Server IP + Port Patcher (Ports coming soon!)
By island219
Version 1.0.1
Developed for PlugPayPlay
'''
import os, sys, socket
def validateIP(ip):
#!/usr/bin/python
'''
CubeWorld Server Port Changer
By island219
Version 1.0
'''
import os
if not os.path.isfile("Server.exe"):
raise Exception("Couldn't find server binary!")