cat <<-EOF >/etc/default/locale
ace-editor (1.1) => [ bouncycastle-api (2.16.0) optional, command-launcher (1.0) optional, jdk-tool (1.0) optional, trilead-api (1.0.4) optional ]
analysis-core (1.96) => [ maven-plugin (2.17), antisamy-markup-formatter (1.5),
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 bash | |
# shellcheck disable=SC1090,SC1110,SC2086 | |
if [ -z "$BASH_VERSION" ]; then | |
echo This file should be executed or sourced by Bash shell | |
exit 2 | |
fi | |
perl -pe 's/\\\n/ /' ~/.pam_environment \ | |
| sed --regexp-extended $' |
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 | |
/usr/bin/shuf --head-count "${1:-5}" /usr/share/dict/words \ | |
| awk '{printf "%s ", $0} END{print}' |
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.io.PrintWriter; | |
import java.io.Writer; | |
import org.codehaus.groovy.tools.Utilities; | |
public class IndentWriter extends PrintWriter | |
{ | |
protected boolean needIndent = true; | |
protected String indentString; | |
protected int indentLevel = 0; | |
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
enum PatchLevel { | |
MAJOR, MINOR, PATCH | |
} | |
class SemVer implements Serializable { | |
private int major, minor, patch | |
SemVer(String version) { | |
def versionParts = version.tokenize('.') |
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
final List TestCases = [ | |
'/usr/bin/sh', | |
'//usr/bin/sh', | |
'usr//bin/sh', | |
'usr//bin//sh///', | |
'//', | |
'/', | |
' / ', | |
' // ', | |
' ', |
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
package xyz.bebee.example.groovy | |
/** | |
* Implements bare minimum description of object | |
*/ | |
class BaseObjectDescription implements ObjectDescription { | |
final def object | |
BaseObjectDescription(def object) { |
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/python | |
import sys | |
from itertools import * | |
RED = 31 | |
GREEN = 32 | |
RESET_SEQ = "\033[0m" | |
COLOR_SEQ = "\033[0;%dm" |