Skip to content

Instantly share code, notes, and snippets.

@jeremyvaught
jeremyvaught / gist:f1d8594764e1d140c284e04bda3929c5
Last active November 28, 2018 14:56
My current Sublime-text 3 settings
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"font_options":
[
"gray_antialias"
],
"font_size": 12,
"ignored_packages":
@jeremyvaught
jeremyvaught / rmtag.sh
Created September 19, 2018 13:59
super basic git tag remover
#!/bin/bash
echo $1
git tag -d $1
git push origin :refs/tags/$1
@jeremyvaught
jeremyvaught / gist:d04d0b7b5e2fac7fde9ff5f772cd908b
Created August 23, 2017 14:02
Reddit Automoderator filters I'm using
# https://www.reddit.com/r/subreddit/wiki/config/automoderator
# Our own personal shaddowban list
author:
name:
# section comment (eg spammers)
- username1
- username2 # comment for specific user
# section comment (eg trolls)
- username3
action: remove
@jeremyvaught
jeremyvaught / gist:5ba93ab7402ddacbacec18671f04ba76
Created November 9, 2016 17:44
tor for macOS with homebrew
https://kremalicious.com/simple-tor-setup-on-mac-os-x/
http://stackoverflow.com/questions/19675839/mapping-a-url-path-to-a-server-in-nginx
This seems to be my answer:
location /path/ {
proxy_pass https://otherserver.com/;
}
" Leader
let mapleader = " "
set backspace=2 " Backspace deletes like most programs in insert mode
set nobackup
set nowritebackup
set noswapfile " http://robots.thoughtbot.com/post/18739402579/global-gitignore#comment-458413287
set history=50
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
@jeremyvaught
jeremyvaught / domain.io.txt
Last active November 8, 2019 11:13
Laravel Forge wildcard domain with ssl
#/etc/nginx/sites-available/domain.io
server {
listen 80;
server_name domain.io *.domain.io;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name .domain.io;
@jeremyvaught
jeremyvaught / dnsmasqFix.txt
Created October 24, 2014 16:46
Yosemite DNSMasq fix (for now)
http://stackoverflow.com/questions/26475037/after-update-to-yosemite-local-domain-stop-working-after-disconnect-from-networ
sudo launchctl kickstart system/homebrew.mxcl.dnsmasq
@jeremyvaught
jeremyvaught / bashrc.md
Last active February 10, 2024 08:49
Updating my Homestead (Ubuntu 14.04) prompt to show git status

First off, I shamelessly stole this from http://www.bramschoenmakers.nl/en/node/624 But I wanted to be able to find it quickly

  • ssh into your Homestead vagrant box
  • Update the Ubuntu packages with sudo apt-get update
  • Install bash-completion with sudo apt-get install bash-completion
  • Open up your .bashrc file by with vim ~/.bashrc
  • Toward the top (somewhere above where the PS1= is) add this
# Bash completion
if [ -f /etc/bash_completion ]; then
@jeremyvaught
jeremyvaught / DNSMasq
Created May 27, 2014 15:33
DNSMasq, because I can never remember what it's called when I need to make an update
From http://passingcuriosity.com/2013/dnsmasq-dev-osx, a fantastic resource. Pasting below in case it goes away
Most web developers will be familiar with the process of updating your /etc/hosts file to direct traffic for coolproject.dev to 127.0.0.1. Most will also be familiar with the problems of this approach:
it requires a configuration change every time you add or remove a project; and
it requires administration access to make the change.
Installing a local DNS server like Dnsmasq and configuring your system to use that server can make these configuration changes a thing of the past. In this post, I’ll run through the process of: