Skip to content

Instantly share code, notes, and snippets.

View asachs01's full-sized avatar
Caffeinated.

Aaron Sachs asachs01

Caffeinated.
View GitHub Profile
@asachs01
asachs01 / block_semalt
Created September 4, 2014 19:17
Block semalt crawler in nginx - this goes inside your .conf file.
if ($http_referer ~* (semalt.com)) { return 403; }
@asachs01
asachs01 / ghost.init
Last active August 29, 2015 14:12
Ghost.io Init Script for CentOS
#!/bin/sh
#
# Note runlevel 2345, 86 is the Start order and 85 is the Stop order
#
# chkconfig: 2345 86 85
# description: Start/Stop/Restart Ghost
#
# Below is the source function library, leave it be
. /etc/init.d/functions

Keybase proof

I hereby claim:

  • I am AaronSachs on github.
  • I am aaronsachs (https://keybase.io/aaronsachs) on keybase.
  • I have a public key whose fingerprint is 190C D2BE 3E59 E3CD 6A27 A9A9 60B1 DEF7 C4D5 6E40

To claim this, I am signing this object:

@asachs01
asachs01 / TheProject
Last active November 8, 2016 16:56
A small project for those just getting started in Linux
Get a VPS and:
1) Move your production website to it (or create one).
2) You're going to need DNS. he.net provides it free, but you're going to do it yourself from this box.
3) Don't forget your backups. While you're at it, better do off-site backups too.
4) You know what would be cool? If your website had subdomains. A dev site for your production site would be a good thing.
@asachs01
asachs01 / odroidSetup.yml
Created August 23, 2015 20:54
An Ansible Playbook to Setup My Odroid Herd Easily
---
- name: Initial Odroid Setup
hosts: odroids-local
user: root
vars:
- root_password: 'HASHED ROOT PASSWORD HERE'
- <YOUR USER>_password: 'USER PASSSWORD HERE'
tasks:
- name: Change root password
@asachs01
asachs01 / keybase.md
Last active September 21, 2017 14:45

Keybase proof

I hereby claim:

  • I am asachs01 on github.
  • I am aaronsachs (https://keybase.io/aaronsachs) on keybase.
  • I have a public key whose fingerprint is C121 EF27 5964 40B8 B25E 4578 62C8 6CB3 3807 D29E

To claim this, I am signing this object:

Learning Bash Scripting Basics

This is a short gist to teach basic scripting. It's meant for beginners. For each and every exercise, you should comment exactly what each line does.

Concepts

Below is a list of concepts you should be familiar with, and should be able to answer.

  • The Shebang: What is a shebang? Why should you use it in a script? What does it do?
  • Variables: What are variables? How are they used?
  • Built-In Variables: What are built-in(internal) variables?
@asachs01
asachs01 / troubleshooting-impact-guild-wifi.md
Last active October 10, 2017 13:20
Guide to troubleshooting issues with Impact Guild's WiFi

How to Troubleshoot Wireless Issues

Mac

  1. First run through this guide from Mac.
  2. If you're still seeing a general slowness, and you're on OS X Sierra, proceed to run through the guide here.
  3. If you've run through ^ and the wireless is still providng to be slow, do a speed test at fast.com.
  4. If the speed test shows anything less than 75Mbps proceed to take a screenshot.
  5. Take a screenshot using the keys: Command + Shift + 4 (see this link for further info)
  6. Upload the screeenshot (it should be on your desktop) to the Impact Guild slack in #tech-support and mention @aaronsachs for additional help
@asachs01
asachs01 / .vimrc
Created October 6, 2017 16:16
Personal Vimrc
execute pathogen#infect()
"My standard junk
set nocompatible
syntax on
set tabstop=2 shiftwidth=2
set background=dark
set nu
set breakindent
set smartindent
@asachs01
asachs01 / .hyper.js
Last active July 16, 2018 21:17
My hyperterm settings.
module.exports = {
config: {
updateChannel: 'canary',
fontSize: 14,
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
cursorColor: 'rgba(248,28,229,0.8)',
cursorShape: 'BEAM',
fontWeight: '200',
fontWeightBold: 'bold',
cursorBlink: true,