Skip to content

Instantly share code, notes, and snippets.

View schisamo's full-sized avatar

Seth Chisamore schisamo

View GitHub Profile
@esfand
esfand / NginxRedirect.md
Last active March 21, 2024 07:12
Nginx Redirect

Redirect: Temporary and Permanent

Source

What is an HTTP Redirect?

HTTP redirection, or URL redirection, is a technique of pointing one domain or address to another. There are many uses for redirection, and a few different kinds of redirection to consider.

As you create content and administrate servers, you will often find the need to redirect traffic from one place to another. This guide will discuss the different use-cases for these techniques, and how to accomplish them in Apache and Nginx.

@fnichol
fnichol / README.md
Last active April 27, 2023 15:24
Auto-enable Local HTTP Caching in Test Kitchen

Auto-enable Local HTTP Caching in Test Kitchen

Note: total experiment and hack, looks nasty, could be awesome:

Setup

  • Drop the kitchen.local.yml into $HOME/.kitchen/config.yml
  • Install polipo (with Mac: brew install polipo, with Ubuntu: apt-get install polipo)
  • Drop polipo-start and polipo-console somewhere useful (perhaps $HOME/bin?)
@mitchellh
mitchellh / gist:7131431
Created October 24, 2013 04:37
Packer / Serf Download "APIs"
@jkeiser
jkeiser / gist:7112700
Created October 23, 2013 04:40
Fun With Chef On Windows

Setting up with Chef, Windows Version

I decided I'd do some work on Windows today, and noticed a lot of my software was out of date, and there were new dev tools that I want to install. I am tired of installing this shit over and over again every time I have a new computer or wipe the OS. Thankfully, that's what Chef is for! So time for an experiment. Now that chef-client -z is out in Chef 11.8 (yay!) it's time to take the leap and start using Chef to set up my Windows 7 workstation. My goal is modest(ish):

  • Update HipChat (I want to use the new Windows msi instead of the Adobe Air version)
  • Update Sublime Text 3 (don't need to first-install it yet)
  • Use the development console tools outlined here

The stretch:

@lusis
lusis / outfile.txt
Created October 18, 2013 13:00
testing the seattle speedtest servers from the new DC
# for i in 1423 1074 4031 2523 2965; do speedtest --simple --server $i; done
Ping: 24.319 ms
Download: 700.10 Mbit/s
Upload: 140.30 Mbit/s
Ping: 22.411 ms
Download: 475.84 Mbit/s
Upload: 132.55 Mbit/s
@adamhjk
adamhjk / Guardfile
Last active December 17, 2015 03:19
A Guardfile with inline support for test-kitchen, before we turn it into a gem.
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
require 'guard/guard'
require 'mixlib/shellout'
module ::Guard
class Kitchen < ::Guard::Guard
def start
::Guard::UI.info("Guard::Kitchen is starting")
@benr
benr / gist:5505198
Created May 2, 2013 20:34
SmartOS Vagrant Box, first preview. Lacks VBox Extensions for disk sharing. (smartos-20130419T073558Z)
vagrant box add smartos http://cuddletech.com/tmp/smartos-latest.box
mkdir smartos && cd smartos
vagrant init smartos
vagrant up
vagrant ssh
Using Omnibus configuration file /home/msf/git/omniscan-omnibus/omnibus.rb
Could not extract version information from `git describe`. Setting version to 0.0.0
Building python-crypto for omniscan project
Something went wrong...the Omnibus just ran off the road!
Error raised was:
Don't know how to build task ':build'
Backtrace: