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
#!/bin/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |
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
/* | |
* XZ Embedded | |
* | |
* Author: Lasse Collin <[email protected]> | |
* | |
* This file has been put into the public domain. | |
* You can do whatever you want with this file. | |
*/ | |
#include <stdint.h> | |
#include <stdbool.h> |
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
#!/bin/sh | |
echo | |
echo 'Grab xzd.c.' | |
echo | |
echo 'curl -Ls https://gist.github.com/g-nix/7595928/raw/xzd.c > xzd.c' | |
echo | |
sleep 2 | |
echo | |
echo 'A copy of the same file, compressed with xz.' | |
echo |
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 LASTBUILD=159732 DATE=20131124 sh # 2013 G. Nixon. Public domain. | |
# Download and extract the 'jsc' utility from the latest WebKit nightly. | |
# Since the WebKit project neither uses the date of the build in its URIs nor | |
# posts a convenience 'latest' link, we record the last known build number and | |
# the date, then basically brute-force the URI with curl. The executable and | |
# framework are extracted from the disk image and then packaged into a | |
# self-extracting/self-executing script so that it avoids the system framework, | |
# and doesn't require installing a conflicting one. Not ideal, but... |
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
#!/bin/sh | |
d64(){ env awk 'function d(){while(getline<"/dev/stdin"){for(i=1;i<=length ($0); | |
i++){c=index("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", | |
substr($0,i,1));if(c--){for(b=0;b<6;b++){o=o*2+int(c/32);c=(c*2)%64;if(++obc==8) | |
{printf "%c",o;obc=0;o=0;}}}}}}d()';}; here=$(pwd); for where; do true; done | |
s(){ awk '{split($0,c,"");for(i=1;i<=length(c);i++){printf("%s\n",c[i])}}' ;} | |
temp=$(echo '/tmp/.'$(od -XN4 -An /dev/urandom|sed "s/ //g")); filex(){ echo ' | |
H4sIAAAAAAACA+2ZX2gcVRTGz2wm3dFOzDwEDBp1H7bSgmRjSaSoBVN2aYptjTbVoA3Xye7N7pj5E+ | |
7ONNnSYmGtMK7BUnzxSYL6Iig+1jdLhRYECb7qg6CFaCIE6oP0wfWczU13muwWwSfh/thvz3d35nx3 | |
bu4u7GS/v/PH32kA6EGlUHtRrg5wCUDT0B9CMTY5frTweuGVl6CNBV2hvvc16psqTE8le6Skp3l7pQ |
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
#!/bin/sh # or, ( curl -L http://git.io/RkCAYg>p;sh ./p ) # bindfs @ cd26 #3 | |
#---------------------------------------------------------------------------# | |
echo; patch -p0 < "$0" && rm "$0" && exit 0 || exit 1 # ------8<------ | |
Index: src/bindfs.c --- +++ --- +++ --- +++ --- src/bindfs.c +++ src/bindfs.c | |
----------------------------------------------------------------------------= | |
@@ -180 +180 @@ | |
-static int bindfs_utimens(const char *path, const struct timespec tv[2]); | |
+static int bindfs_utime(const char *path, struct utimbuf *buf); | |
@@ -693 +693 @@ | |
-static int bindfs_utimens(const char *path, const struct timespec tv[2]) |
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
#!/bin/sh # tickoff -- G.Nixon, 2013. Public Domain. | |
# Safely replace backticks with POSIX "$()" style command substitutions. | |
# Takes a shell script (from stdin, or as parameters) and replaces pairs of | |
# backticks with $(substitutions), per line. If a backtick is unmatched | |
# or escaped, returns an error with the offending line number. | |
case "$1" in *elp|-h) echo 'Usage: tickoff [script ...]'; echo | |
echo ' Replace `backticks` with $(command substitutions).'; echo ' | |
Takes shell script (from stdin, or as parameters) and replaces pairs of |
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
#!/bin/sh | |
ECLIPSEMAJORVER=4; DROP=S-4.4M3-201310302000; ECJVER=4.4M3; LZMASDKVER=922 | |
JDKREL=7u45; JDKBLD=b18; SRCREL=7u40; SRCBLD=b43; SRCDATE=26_aug_2013 | |
cd "$(dirname "$0")"; HUR="$(pwd)" | |
info(){ echo 'Aviary: Download and configure extras to use with avian.' | |
echo '' | |
echo ' aviary [patch] | [get [all] | [component ...]]' | |
echo '' |
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
require 'rubygems' | |
require 'rubygems/package' | |
require 'zlib' | |
require 'fileutils' | |
module Util | |
module Tar | |
# Creates a tar file in memory recursively | |
# from the given path. | |
# |