Skip to content

Instantly share code, notes, and snippets.

View ephesus's full-sized avatar

James Rubingh ephesus

View GitHub Profile
@ephesus
ephesus / latestchrome.sh
Created July 26, 2010 15:46
Download the latest Chrome build (hourly updated)
#!/bin/bash
#download latest chromium for mac build
#James Rubingh ephesus@gmail.com
URL="http://build.chromium.org/buildbot/snapshots/chromium-rel-mac"
if ! which wget >/dev/null; then
echo "You need wget installed"
exit 1
fi
#!/bin/sh
#
# Dump databases when switching branches
# James Rubingh
# ephesus@gmail.com
# To enable: export PCD_ENABLE=1
# To disable: unset PCD_ENABLE
# environment variables
; Black and white Sprite drawing to $FC00 4x4 wide
; For ti-85 or ti-86 calculators. (mmapped black white display at $fc00, 16 byte wide rows)
; IX = pointer to Sprite Data
; B = X coordinate
; C = Y coordinate top left corner is 0,0
;by James Rubingh 2000
.include asm86.h
@ephesus
ephesus / README
Created August 3, 2011 09:35
proxychains os x patch
This patch is originally from http://chrootlabs.org/
updated to use homebrew's library path instead of creating directories
in $HOME
@ephesus
ephesus / install_osx_dev_vim_plugins_with_janus.sh
Last active December 17, 2015 05:48
Install IOS plugins (to simulate XCode) for vim with Janus to help os x development
#!/bin/bash
# assumes installed janus https://github.com/carlhuda/janus
#install vim with homebrew
brew install macvim --override-system-vim --with-python3
ln -s /usr/local/bin/mvim /usr/local/bin/vim
#make sure /usr/local/bin is before /usr/bin in $PATH
echo "let mapleader = \",\"" >> .vimrc.before
echo "imap jj <esc>" >> ~/.vimrc.after
@ephesus
ephesus / pakin.inc
Created June 21, 2013 03:39
Z80 assembly include file for ti-86. Greyscale routine that stays off swappable pages http://wrive.com/data/andromeda/
;86 Gray Scale routine by Dux Gregis
;Edited by James Rubingh to stay off swapable pages
;This makes it so that you can have a grayscale routine running
;load a picture from a seperate
;string file. rst 20h \ rst 10h will not cause this routine to
;crash like most other routines that use areas between 8000-BFFF
Gray1 = $Fc00
Gray2 = $cA00
@ephesus
ephesus / test_86s.asm
Created June 21, 2013 03:41
Z80 program to test an image file stored in a .86s (string) variable. http://wrive.com/data/andromeda/
#include "pakin.h"
.org _asm_exec_ram
nop
jp ProgStart
.dw 0
.dw ShellTitle
ShellTitle:
@ephesus
ephesus / gist:6320172
Last active December 21, 2015 14:29
First attempt at setting up a wireless AP with no password. For reasons.
#!/bin/bash
IPT=/sbin/iptables
# Flush old rules, old custom tables
echo " * flushing old rules"
$IPT --flush
$IPT --delete-chain
$IPT -t nat -F
@ephesus
ephesus / gist:9968241
Created April 4, 2014 04:36
Set up wireless AP using USB wireless card, on gentoo, with systemd, iptable. Allow squid proxy on port 443 from work.ip (/etc/hosts) to get around another firewall that doesn't allow ssh connections out (use corkscrew to ssh through my http proxy).
#!/bin/bash
IPT=/sbin/iptables
ETH=enp6s0
WLAN=wlp0s26u1u6
modprobe rt2800usb
sleep 2
ifconfig $WLAN 10.0.0.1 netmask 255.255.255.0
@ephesus
ephesus / brew tinyproxy
Last active January 30, 2023 07:49
Setting up tinyproxy to allow ssh/corkscrew connections brew/osx
$ brew update && brew upgrade
$ brew install tinyproxy
$# Most firewalls allow http CONNECT over port 443 to allow https, so run tinyrpoxy on 443
$ cat > /usr/local/Cellar/tinyproxy/1.8.3/etc/tinyproxy.conf <<EOF
User nobody
Group nobody
Port 443
Timeout 600
DefaultErrorFile "/usr/local/Cellar/tinyproxy/1.8.3/share/tinyproxy/default.html"
StatFile "/usr/local/Cellar/tinyproxy/1.8.3/share/tinyproxy/stats.html"