Skip to content

Instantly share code, notes, and snippets.

View FootballFan141's full-sized avatar
👋
Hey!

Travis FootballFan141

👋
Hey!
View GitHub Profile
// 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: https://unity3d.com/learn/tutorials/topics/scripting
@FootballFan141
FootballFan141 / .htaccess
Created January 16, 2021 04:26
restrict direct access to a controller in CodeIgniter (not tested much, feel free to make changes)
RewriteCond %{REQUEST_URI} commandline
RewriteRule .* / [R=301,L]
@FootballFan141
FootballFan141 / fix_openssl_catalina.sh
Created January 24, 2020 23:48 — forked from llbbl/fix_openssl_catalina.sh
fix missing openssl files in catalina
#!/bin/bash
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
@FootballFan141
FootballFan141 / http-get-dos.conf
Created January 18, 2020 22:45 — forked from petarnikolovski/http-get-dos.conf
Fail2ban Configuration
# Fail2Ban configuration file
#
# NOTE
# You should set up in the jail.conf file, the maxretry and findtime carefully in order to avoid false positives.
#
# Author: http://www.go2linux.org
# Modified by: samnicholls.net
# * Mon 6 Jun 2016 - Updated failregex to capture HOST group correctly
[Definition]
@FootballFan141
FootballFan141 / sublimehints.md
Created July 23, 2018 04:00 — forked from tibbon/sublimehints.md
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
FootballFan141 / pagespeed-module.md
Created July 13, 2018 04:13 — forked from harryfinn/pagespeed-module.md
Pagespeed module (Apache) instructions

Using Google Pagespeed module (Apache)

Install

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
FootballFan141 / MainActivity.java
Last active February 23, 2019 23:39
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) {
super.onCreate(savedInstanceState);
instance = getInstance();
//rest of code...
}

Keybase proof

I hereby claim:

  • I am FootballFan141 on github.
  • I am footballfan141 (https://keybase.io/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: