Skip to content

Instantly share code, notes, and snippets.

Avatar
🎓
Studying at college

Travis FootballFan141

🎓
Studying at college
View GitHub Profile
@FootballFan141
FootballFan141 / fix_openssl_catalina.sh
Created Jan 24, 2020 — forked from llbbl/fix_openssl_catalina.sh
fix missing openssl files in catalina
View fix_openssl_catalina.sh
#!/bin/bash
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
View http-get-dos.conf
# 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 Jul 23, 2018 — forked from tibbon/sublimehints.md
Sublime Hints of the Day
View sublimehints.md

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 Jul 13, 2018 — forked from harryfinn/pagespeed-module.md
Pagespeed module (Apache) instructions
View pagespeed-module.md

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 Feb 23, 2019
Using this, when decompressing a file around 800mb on my nexus 7, the app slows down badly. *SOLUTION: Use asynctask*
View MainActivity.java
//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...
}
View keybase.md

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:

You can’t perform that action at this time.