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
clean_ws() | |
{ | |
[ "$1" ] || exit 1; | |
sed "s/ *\$//" < $1 > $$.tmp && mv $$.tmp $1 | |
} |
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 org.jonseymour.servlet; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import javax.naming.Context; | |
import javax.naming.InitialContext; | |
import javax.naming.NameClassPair; | |
import javax.naming.NamingEnumeration; | |
import javax.naming.NamingException; |
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 java.util.Iterator; | |
import java.util.NoSuchElementException; | |
/** | |
* Implements support for an option type. | |
* <pre> | |
* // assuming Option<T> foo() | |
* | |
* for (T t : foo()) { |
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
given: | |
public class Foo { | |
private String name; | |
private Bar bar; | |
public Foo(String name) | |
{ | |
this.name = name; | |
this.bar = new Bar(name+":bar"); |
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 org.jonseymour.v1.option; | |
import java.util.NoSuchElementException; | |
import org.jonseymour.v1.functional.Unary; | |
import org.junit.Test.None; | |
/** | |
* Defines an {@link Option} type. | |
* <p> |
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 | |
# | |
# NAME | |
# extract-xcode41.sh | |
# | |
# DESCRIPTION | |
# 1. Copy this file into the same directory that contains installxcode_41_lion.dmg downloaded from Apple | |
# 2. Change into that directory | |
# 3. Run the file | |
# ./extract-xcode41.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
#!/usr/bin/env bash | |
# based on https://gist.github.com/rtgibbons/2024307 with updates from comments of that gist for OSX 10.9 | |
EXTDIR="/Library/Application Support/VirtualBox" | |
unload() { | |
kextstat | grep "org.virtualbox.kext.VBoxUSB" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxUSB | |
kextstat | grep "org.virtualbox.kext.VBoxNetFlt" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxNetFlt | |
kextstat | grep "org.virtualbox.kext.VBoxNetAdp" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxNetAdp | |
kextstat | grep "org.virtualbox.kext.VBoxDrv" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxDrv |
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
M ubuntu_armhf_trusty_norelease_sphere-unstable/etc/ninja-release | |
M ubuntu_armhf_trusty_norelease_sphere-unstable/etc/popularity-contest.conf | |
M ubuntu_armhf_trusty_norelease_sphere-unstable/etc/shadow | |
M ubuntu_armhf_trusty_norelease_sphere-unstable/etc/shadow- | |
M ubuntu_armhf_trusty_norelease_sphere-unstable/opt/ninjablocks/bin/sphere-setup-assistant | |
M ubuntu_armhf_trusty_norelease_sphere-unstable/opt/ninjablocks/drivers/sphere-go-led-controller/sphere-go-led-controller | |
A ubuntu_armhf_trusty_norelease_sphere-unstable/opt/ninjablocks/factory-reset/bin/recovery.sh | |
M ubuntu_armhf_trusty_norelease_sphere-unstable/opt/ninjablocks/factory-reset/bin/reset-helper.sh | |
M ubuntu_armhf_trusty_norelease_sphere-unstable/opt/ninjablocks/factory-reset/bin/sphere-io | |
A ubuntu_armhf_trusty_norelease_sphere-unstable/opt/ninjablocks/factory-reset/bin/sphere-serial |
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
ERR301: The specified '$file' does not exist. | |
ERR302: The specified '$file' does not have the specified checksum ('$checksum'). Actual checksum: ('$filesum'). | |
ERR310: Failed to download '${imageurl}' to '${imagetar}'. | |
ERR320: The clock has a date in the past: $(date "+%Y-%m-%d %H:%M:%S"). | |
ERR330: The download of the recovery script from '$(url url .sh)' to '$shname' has failed. | |
ERR331: Partition table checksum mismatch. Expected '${PARTITION_TABLE_SHA1SUM}' found '$check'. | |
ERR341: The required recovery archive '$tar' does not exist. | |
ERR401: usage: generate-env {image-name} [ {url-prefix} ] | |
ERR405: usage: format-partitions {confrmation-code} {block-device} p{partition#} | |
ERR406: The specified partition device '${partition_device}' 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
bad: gestic: is installed, 72bcd71e61bc4ed423979b0e3f7fb75e should be installed. | |
Found gestic '' installed. Flashing gestic with '72bcd71e61bc4ed423979b0e3f7fb75e'... | |
Could not read running firmware version. | |
GestIC-ENC-Flash Demo version 1.1.8 | |
[ GestIC Library ] | |
Currently running: | |
OlderNewer