Skip to content

Instantly share code, notes, and snippets.


Travis FootballFan141

View GitHub Profile
View UnityCodingCheatSheet.txt
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed:
FootballFan141 / .htaccess
Created Jan 16, 2021
restrict direct access to a controller in CodeIgniter (not tested much, feel free to make changes)
View .htaccess
RewriteCond %{REQUEST_URI} commandline
RewriteRule .* / [R=301,L]
FootballFan141 /
Created Jan 24, 2020 — forked from llbbl/
fix missing openssl files in catalina
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
View http-get-dos.conf
# Fail2Ban configuration file
# You should set up in the jail.conf file, the maxretry and findtime carefully in order to avoid false positives.
# Author:
# Modified by:
# * Mon 6 Jun 2016 - Updated failregex to capture HOST group correctly
FootballFan141 /
Created Jul 23, 2018 — forked from tibbon/
Sublime Hints of the Day

David's Sublime Hints

Hint 1 - Set default indentation to 2 spaces

A tab size of 2 almost always looks better and can fit more on screen

  • Click on Sublime Text -> Preferences -> Settings - User
  • Alter the file to add "tab_size: 2" and save it

Mine looks like the following:

FootballFan141 /
Created Jul 13, 2018 — forked from harryfinn/
Pagespeed module (Apache) instructions

Using Google Pagespeed module (Apache)


Follow initial install instructions here

Recommended additional modules

Add the following to the bottom (but inside the <IfModule /> block) of /etc/apache2/mods-available/pagespeed.conf

FootballFan141 /
Last active Feb 23, 2019
Using this, when decompressing a file around 800mb on my nexus 7, the app slows down badly. *SOLUTION: Use asynctask*
//Called on a button click in my Main activity file
public MainActivity instance;
protected void onCreate(Bundle savedInstanceState) {
instance = getInstance();
//rest of code...

Keybase proof

I hereby claim:

  • I am FootballFan141 on github.
  • I am footballfan141 ( on keybase.
  • I have a public key whose fingerprint is E3FE 4EB4 E792 1F45 6CA9 0F1C DCA2 31EC 693A 0AFB

To claim this, I am signing this object: