This file contains hidden or 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 python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
class S(BaseHTTPRequestHandler): |
This file contains hidden or 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
# SweetPea Window Examples | |
# Derived Levels are defined by three things: | |
# - A Derivation Function | |
# - An Argument List | |
# - A Window | |
# | |
# Windows in turn are defined by a width and a stride. WithinTrial and | |
# Transition are just shorthand for Windows with widths of 1 and 2 | |
# respectively, and both with a stride of 1. |
This file contains hidden or 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
Show hidden characters
{ | |
"additional_path_items": | |
[ | |
"/usr/local/heroku/bin", | |
"/Users/drautb/.rvm/gems/ruby-1.9.3-p547/bin", | |
"/Users/drautb/.rvm/gems/ruby-1.9.3-p547@global/bin", | |
"Users/drautb/.rvm/rubies/ruby-1.9.3-p547/bin", | |
"/Users/drautb/.nvm/v0.10.31/bin", | |
"/usr/local/sbin", | |
"/usr/local/bin", |
This file contains hidden or 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 XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeys) | |
import System.IO | |
myManageHook = composeAll | |
[ className =? "Gimp" --> doFloat | |
, className =? "Vncviewer" --> doFloat |
This file contains hidden or 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 sh | |
# Runs the procedures recommended on this page: | |
# https://wiki.archlinux.org/index.php/System_maintenance | |
SYSTEMCTL=/usr/bin/systemctl | |
JOURNALCTL=/usr/bin/journalctl | |
PACMAN=/usr/bin/pacman | |
echo "\n*** FAILED SERVICES ***\n" |
This file contains hidden or 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 sh | |
# This script deploys a Frog site to GitHub pages. | |
# It should be run from the directory containing | |
# the .frogrc file. | |
# | |
# It will determine the output directory from the | |
# .frogrc file, and push it to the gh-pages branch. | |
set -ux |
This file contains hidden or 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
# Author: Ben Draut, 2014 | |
# | |
# Options file for Artistic Style code formatter. | |
# Follows guidelines given in "The Elements of Java Style". | |
# | |
# Artistic Style: http://astyle.sourceforge.net/ | |
# Book: http://mmc.geofisica.unam.mx/utils/CyC++/Documentacion/CyC++Style/JavaStyle/The%20Elements%20of%20Java%20Style.pdf | |
# Options documentation: http://astyle.sourceforge.net/astyle.html#_Options_File | |
# Attached bracket style, Pg. 10 |
This file contains hidden or 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
{ | |
"folders": | |
[ | |
{ | |
"follow_symlinks": true, | |
"path": "~/FamilySearch/project-dir", | |
"file_exclude_patterns": ["*.iml"], | |
"folder_exclude_patterns": ["target", ".idea", "target" ] | |
} | |
], |
This file contains hidden or 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 java.util.Date; | |
import java.util.Map; | |
import java.lang.Thread; | |
import com.amazonaws.ClientConfiguration; | |
import com.amazonaws.auth.BasicAWSCredentials; | |
import com.amazonaws.regions.Region; | |
import com.amazonaws.regions.Regions; | |
import com.amazonaws.services.cloudformation.AmazonCloudFormation; | |
import com.amazonaws.services.cloudformation.AmazonCloudFormationClient; |
This file contains hidden or 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
# Create a patch for a single commit | |
git format-patch -1 HEAD | |
# Or | |
git format-patch -1 <sha> | |
# Applying the patch | |
git apply --stat file.patch # show stats. | |
git apply --check file.patch # check for error before applying. | |
git am < file.patch # apply the patch finally. |
NewerOlder