Skip to content

Instantly share code, notes, and snippets.

View BrutalSimplicity's full-sized avatar
💭
Simplicity is hard

Kory Taborn BrutalSimplicity

💭
Simplicity is hard
View GitHub Profile
@korya
korya / Subfolder to git repo.md
Last active March 25, 2025 09:39
Convert subfolder into Git submodule
@ogrrd
ogrrd / dnsmasq OS X.md
Last active May 9, 2025 23:25
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@knmkr
knmkr / get_photos_from_tumblr.py
Created April 21, 2013 18:29
Get photos from my tumblr `likes`.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import urllib
import pytumblr # https://github.com/tumblr/pytumblr
# set yours:
CONSUMER_KEY = ''
@gmoothart
gmoothart / xmldiff.cs
Created February 29, 2012 18:17
Xml Diff
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Diagnostics;
namespace ConsoleApplication1
{
class Program
@mattd
mattd / gist:1006398
Created June 3, 2011 14:12
nginx try_files with a proxy_pass
server {
root /var/www/example.com/static;
server_name example.com;
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log;
try_files /maintenance.html @proxy;
location @proxy {
proxy_pass http://127.0.0.1:10001;