Skip to content

Instantly share code, notes, and snippets.

View simeonpashley's full-sized avatar
🎯
Working for Farnell.com

Simeon Pashley simeonpashley

🎯
Working for Farnell.com
View GitHub Profile
@simeonpashley
simeonpashley / install_lua.sh
Created May 2, 2017 13:16
OSX Homebrew Install Lua 5.3, linked as `lua`
#!/bin/bash
brew install lua@5.3
cd /usr/local/bin/
ln -s lua5.3 lua
Custom `minprice` =
`max(min(DBHistorical, DBGlobalMarketAvg, DBGlobalHistorical, DBRegionMarketAvg, DBRegionHistorical), VendorSell)`
Commonly used Shopping > Price
*OLD*
check(minprice - 100000g, 90% minprice, check(minprice - 50000g, 80% minprice, check(minprice - 10000g, 60% minprice, check(minprice - 5000g, 50% minprice, check(minprice - 1000g, 30% minprice, check(minprice - 500g, 20% minprice))))))
*UPDATED*
[https://www.reddit.com/r/woweconomy/comments/3ax9av/anyone_else_have_a_tsm_sniper_rule_theyre_proud/cterek0/]
@simeonpashley
simeonpashley / move_to_rds.rb
Created October 6, 2015 22:08 — forked from guenter/move_to_rds.rb
A quick and dirty script to move a database into Amazon RDS (or any other database). Can transfer part of the data beforehand.
require 'fileutils'
start_time = Time.now
SOURCE_DB = {
:name => 'db_name',
:user => 'db_user',
:password => 'db_pass',
:host => 'localhost'
@simeonpashley
simeonpashley / README
Last active August 29, 2015 14:12 — forked from diemuzi/README
Apache conf w/ fast-cgi
This configuration is a working copy which I have tested on Apache 2.2.x and 2.4.x
I highly recommend you use this version of mod_fastcgi as it works with Apache 2.4.x, fastcgi.com version does not!
https://github.com/ByteInternet/libapache-mod-fastcgi
The fastcgi.com version is 2.4.6, the version I am recommending registers as 2.4.7
To patch mod_fastcgi for use with Apache 2.4.x look at the debian/patches folder. It's not specific to Debian OS so don't let that fool you. I personally use Archlinux.
Of course to compile mod_fastcgi:
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most 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'