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
#!/bin/bash | |
wget http://live.sysinternals.com/ -N -r -l1 -X/tools,/WindowsInternals,/files -nH -nd -Psysinternals |
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
#!/bin/bash | |
# Example: | |
# Assume you have a fix for the 3.0 stable branch on a topic branch called | |
# my-fix-3.0 that would also be useful to have on the master branch. | |
# If your workflow isn't such that you could just merge it into both, | |
# use this script to transplant your my-fix-3.0 onto master in a branch | |
# named my-fix-master. If you're on my-fix-3.0 already, then it's as easy | |
# as ./port-patch.sh |
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
printBoundingSphere = function(node) | |
local bs = node:getBound() | |
print("Radius:", bs:radius()) | |
print("Center:", bs:center()) | |
end |
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
#!/bin/bash | |
# Author: Ryan Pavlik <abiryan@ryand.net> <http://academic.cleardefinition.com> | |
# Requires inotify-tools to be installed. Make sure SRCDIR ends in a trailing slash. | |
SRCDIR=${HOME}/Downloads/ | |
DESTDIR="${HOME}/Dropbox/Bibliography/Mendeley Watched Folder/" | |
function watchForPdfs() | |
{ |
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/make | |
TARGET_DIR:=forwin | |
# All bib files with no spaces in their name. | |
FILES:=$(shell ls *.bib | grep "^[^ ]*$$") | |
CONVERTED_FILES:=$(patsubst %,$(TARGET_DIR)/%,$(FILES)) | |
all: $(CONVERTED_FILES) |
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
#!/bin/bash | |
# Requires libinotify-bin (for notify-send) and YAD or Zenity | |
MYZENITY=$(which yad || which zenity) || (echo "Could not find neither YAD nor Zenity - can't do the gui stuff!"; exit 1) | |
echo "Using ${MYZENITY} to create notification area icon" | |
MYNOTIFYSEND=$(which notify-send) || (echo "Could not find notify-send (usually in a package like libnotify-bin) - can't do the gui stuff!"; exit 1) | |
echo "Using ${MYNOTIFYSEND} to send desktop notifications" | |
PIPE=$(mktemp -u --tmpdir $(basename ${0}).XXXXXXXX) |
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
// ==UserScript== | |
// @id acegist | |
// @name ACEgist | |
// @author Antoine BERNIER (abernier) | |
// @version 0.1.1 | |
// @description ACE editor in your gists | |
// @match https://gist.github.com/gists/*/edit | |
// ==/UserScript== | |
(function (d, cb) { |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] | |
; Show hidden files | |
"Hidden"=dword:00000001 | |
; Don't hide file extensions for known file types | |
"HideFileExt"=dword:00000000 | |
; Expand Win7 navigation pane automatically to current folder |
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
package = "LuaSocket" | |
version = "2.0.2-5.1" | |
source = { | |
url = "http://luaforge.net/frs/download.php/2664/luasocket-2.0.2.tar.gz", | |
md5 = "41445b138deb7bcfe97bff957503da8e" | |
} | |
description = { | |
summary = "Network support for the Lua language", | |
detailed = [[ | |
LuaSocket is a Lua extension library that is composed by two parts: a C core |
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
s/Boolean/bool/g | |
s/vrpn_bool/bool/g |