- GitHub Staff
- https://jdenn.es
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
# pre-revprop-change.py: | |
# | |
# Performs the following: | |
# - Makes sure that only the log message may be modified | |
# - Makes sure that the action is either addition or modification, but not deletion | |
# - Makes sure that an empty log message isn't entered | |
# | |
# usage: pre-revprop-change.py -t REPOS REV USERNAME PROPNAME ACTION | |
# N.B. The new value of the property is passed via standard input | |
# e.g. in pre-revprop-change.cmd (under Windows) |
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
# pre-commit.py: | |
# | |
# Performs the following: | |
# - Makes sure the author has entered a log message. | |
# - Makes sure the author is only creating a tag, or if deleting a tag, author is a specific user | |
# - Makes sure the author is not committing to a particular set of paths in the repository | |
# | |
# Script based on http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/log-police.py | |
# | |
# usage: pre-commit.py -t TXN_NAME REPOS |
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
# Basic .NET .gitignore entries: | |
*resharper.user | |
[Dd]ebug/ | |
[Rr]elease/ | |
build/ | |
[Bb]in/ | |
[Oo]bj/ | |
*.suo | |
*.sln.cache |
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/python | |
# An interactive console for App Engine apps | |
# Usage: ./appengine_console.py app_id [host] | |
import code | |
import getpass | |
import sys | |
sys.path.append("/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine") |
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
In the case of cygwin producing an error of the form "*** fatal error - unable to remap ...": | |
1. Make sure rebase package is installed (use cygwin setup.exe utility) | |
2. Kill all cygwin processes | |
3. Run cmd.exe | |
4. cd C:\cygwin\bin\ | |
5. .\ash.exe | |
6. ./rebaseall |
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
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for program gcc or cc : /usr/bin/gcc | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for gcc : ok | |
Checking for library dl : yes |
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
GNU Make 3.81 | |
Copyright (C) 2006 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. | |
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A | |
PARTICULAR PURPOSE. | |
This program built for i386-apple-darwin10.0 | |
Reading makefiles... | |
Updating goal targets.... | |
File `all' does not exist. |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<style type="text/css"> | |
span.label,span.spacer,span.multiple span {width:120px;float:left;} | |
span.multiple {float:left;} | |
span.button {padding-left:120px;} | |
div.clear {clear:both;padding-top:5px;} | |
</style> |
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
# Automatically download the http://www.riceisnice.net playlist | |
require 'rexml/document' | |
`wget http://www.riceisnice.net/player/playlist.xml` | |
file = File.open('playlist.xml', 'r') | |
doc = REXML::Document.new(file.read) | |
files = [] | |
doc.elements.each('playlist/item/path') do |p| | |
files << p.text |
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
# Automatically download the http://www.ivyleague.com.au/ playlist | |
require 'rexml/document' | |
`wget http://www.ivyleague.com.au/medias/audioplayer/data.xml` | |
file = File.open('data.xml', 'r') | |
doc = REXML::Document.new(file.read) | |
files = [] | |
doc.elements.each('songs/song') do |s| | |
files << "http://www.ivyleague.com.au#{s.attributes["url"]}" |
OlderNewer