This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html | |
# https://gerrydevstory.com/2013/06/29/tomcat-apache-reverse-proxy/ | |
# http://www.latko.org/2009/02/12/installing-tomcat-60x-behind-apache-22x/ | |
# http://stackoverflow.com/a/20584597/922323 | |
# https://raajasoft.wordpress.com/2011/11/27/to-shorten-the-tomcat-application-url/ | |
# http://www.christianroessler.net/tech/2012/apache-vhost-proxy-and-static-files.html | |
# http://sysadminnotebook.blogspot.com/2011/08/apache-reverse-proxy-of-virtual-hosts.html | |
# http://stackoverflow.com/a/8823415/922323 | |
<VirtualHost *:80> | |
ServerName tomcat.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
magick mogrify \ | |
-colors 1 \ | |
-shave 1x1 \ | |
-bordercolor black \ | |
-border 1 \ | |
-pointsize 48 \ | |
-fill black \ | |
-gravity center \ | |
-annotate +0+0 "%[f]" \ | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pprint | |
# pprint.pprint(dir(obj)) | |
# pprint.pprint(list) | |
# $ python manage.py runscript am_script2 | |
class BaseMixin(object): | |
#---------------------------------- | |
# Init: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ap_library { | |
position: relative; | |
} | |
.ap_library > :first-child { | |
margin-top: 0; | |
} | |
.ap_library > :last-child { | |
margin-bottom: 0; | |
} | |
.ap_library { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This script assumes you have your ssh keys setup for Bitbucket and GitHub. | |
# It also assumes you have created the repos on GitHub already and the URL slugs are an exact match. | |
# Also, this script will barf if you try to transfer an empty repo. | |
# Note that this code does not transfer wikis, downloads or issues. | |
# Also note, you may have to turn on QOS upload speed limiting so your router | |
# doesn’t freak out; I limited my upload bandwidth to 2Mbps. | |
# Don’t forget to `chmod u+x <this file>.sh` in order to execute it via `./<this file>.sh`. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! Data v0.1.0 | Apache License, Version 2.0 | https://github.com/mhulse/data */ | |
/* https://github.com/mhulse/data/blob/19fb318ee633eae44f40ffbd709e52a22f8248e9/prod/0.1.0/20140927/1/styles/data.min.css */ | |
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ | |
html { | |
font-family: sans-serif; | |
-ms-text-size-adjust: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.avr_links, | |
.avr_links ul, | |
.avr_links li { | |
margin: 0; | |
padding: 0; | |
} | |
.avr_links { | |
font-size: 1.4rem; | |
} | |
.avr_links li { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Plugin example using pure javascript. | |
* | |
* Patterns used: "closure", "alias" and "namespace extension". | |
* | |
* @see http://stackoverflow.com/a/12774919/922323 | |
* @param {object} stub | |
* @param {object} window | |
* @param {object} document | |
* @param {undefined} undefined |