Skip to content

Instantly share code, notes, and snippets.

View charlespeach's full-sized avatar

Charles Peach charlespeach

View GitHub Profile

So I've seen a lot of confusion about what exactly Horizon edition cars are, why they are worth so much and how many of them are there. Well this post has you sorted!

Now, what exactly is a Horizon Edition Car? Well it's a custom version of a car already existing in the game that comes with a special paint, customized rims/body options and has three special characteristics - picture here

It has a built in boost that no other cars have in the game. It can be either a XP, Skills, Drift Skills, Speed Skills, Destruction Skills or Credits boost. This can be very valuable for acquiring credits, XP or Skill Points faster.

They can only be won on wheelspins or bought from the auction house. I haven't seen any other way to acquire them, although it seems quite a few people are getting some of these cars through wheelspins (judging by how many auctions are up)

They have a minimum listing price of 200k on the auction house. This means the minimum they can sell for on a bid is 200k and even higher for the buyout. Th

@charlespeach
charlespeach / web-servers.md
Created August 14, 2016 19:50 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@charlespeach
charlespeach / osx-10.11-setup.md
Created April 30, 2016 22:17 — forked from kevinelliott/osx-10.11-setup.md
Mac OS X 10.11 El Capitan Setup

Mac OS X 10.11 El Capitan

Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

@charlespeach
charlespeach / rds_download_logfiles.rb
Created October 20, 2015 22:32 — forked from ruckus/rds_download_logfiles.rb
Ruby script to download log files from RDS and archive to S3.
=begin
This script uses the AWS v2 API
Gemfile:
source "https://rubygems.org"
gem "aws-sdk", "2.0.17.pre"
@charlespeach
charlespeach / Shell Shock Cheat sheet.md
Last active August 29, 2015 14:06
Cheat sheet for new Shell Shock Vulnerability (CVE-2014-6271)

Am I vulnerable?

This is quick and easy to check, open terminal on any unix based system and run:

env x='() { :;}; echo vulnerable' bash -c 'echo hello'

If you are not vulnerable, then the following will be shown:

bash: warning: x: ignoring function definition attempt
@charlespeach
charlespeach / linux_cheat_sheet
Last active August 29, 2015 14:05
Linux Cheat Sheet
# Add Swap
First check to see if you have swap enabled first `sudo swapon -s`, if not then:
```
sudo dd if=/dev/zero of=/swapfile bs=1024 count=256k
sudo mkswap /swapfile
sudo swapon /swapfile
echo "/swapfile none swap sw 0 0 " | sudo tee --append /etc/fstab
echo 10 | sudo tee /proc/sys/vm/swappiness
@charlespeach
charlespeach / come_to_nz_deadmau5.rb
Last active August 29, 2015 14:02
My feeble attempt to extort a New Zealand visit from @deadmau5 on his next tour using PRINT TORTURE
# Hey @deadmau5, @nz_cub3y here. Wrote this for you.
#
# Running instructions
# ruby come_to_nz_deadmau5.rb
# You can stop the process from running any time using Ctrl+C
# Tour setup
class Tour
attr_accessor :year, :locations
@charlespeach
charlespeach / gist:d6fd4c9349d092b5ec74
Last active August 29, 2015 14:02
PostgreSQL common commands

Atler owner of db

ALTER DATABASE name OWNER TO new_owner;

Create the user

postgres@hostname:~$ createuser
Enter name of role to add: username
@charlespeach
charlespeach / readonly_db_access.sh
Last active August 29, 2015 13:57
Grant select access to a user for all tables in a postgres database
#!/bin/sh
tables=$(psql database_name -A -t -c "SELECT table_name FROM information_schema.tables WHERE table_schema = 'public';")
for table in $tables
do
echo "Granting select to username on $table"
psql database_name -c "GRANT SELECT ON $table to username;"
done
/*
* Scaffolding
* Basic and global styles for generating a grid system, structural layout, and page templates
* ------------------------------------------------------------------------------------------- */
.container
Sets a width of 940px which also centres the content (clears floated elements before/after)
.container-fluid
Sets a minimum width of 940px (clears floated elements before/after)