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 | |
HOME="$USERPROFILE" | |
SB_HOME="${PROGRAMFILES}/Oracle/JavaFX Scene Builder 2.0" | |
JAVA_HOME="${PROGRAMW6432}/Java/jdk1.8.0" | |
PATH="$JAVA_HOME/bin:$PATH" | |
CLASSPATH="$SB_HOME/app/SceneBuilderKit.jar" | |
CLASSPATH="$SB_HOME/app/SceneBuilderApp.jar;$CLASSPATH" | |
CLASSPATH="$CLASSPATH;$HOME/.groovy/grapes/org.freedesktop.tango/tango-icon-theme/jars/tango-icon-theme-0.8.90.jar" |
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
brew update | |
brew tap homebrew/dupes | |
brew tap homebrew/versions | |
brew tap josegonzalez/homebrew-php | |
brew install httpd | |
brew install perl | |
brew install mysql | |
brew install php55 | |
brew install phpmyadmin | |
brew install webalizer |
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/sh | |
umask 0002 | |
exec /usr/lib/ssh/sftp-server "$@" |
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/sh | |
sudo ps -Eaxwwo user,pid,ppid,pgid,command \ | |
| pstree -g 3 -f - \ | |
| sed -r 's/ ([A-Za-z0-9_]*=)/\n \1/g' \ | |
| sed -r '/^ (HOMEBREW_GITHUB_API_TOKEN|HOMEBREW_NO_EMOJI|JAVA_VERSION|JAVA_HOME|ANT_HOME|GRADLE_HOME|GROOVY_HOME|M2_HOME|M2|LS_OPTIONS|HISTCONTROL)=/ d' \ | |
| sed -r '/^ [A-Za-z0-9_]*PATH=/ {s/PATH=/PATH=\n /;s/:/\n /g}' |
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/perl | |
use strict; | |
use warnings; | |
while ( <> ) | |
{ | |
next if m' | |
^PRAGMA | | |
sqlite_sequence | | |
CREATE UNIQUE INDEX |
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/sh | |
set -e | |
InstallESDImage="${1:-/Applications/Install OS X Mavericks.app}/Contents/SharedSupport/InstallESD.dmg" | |
InstallESDMount=/Volumes/MavericksInstallESD | |
BaseSystemImage=$InstallESDMount/BaseSystem.dmg | |
BaseSystemSparseImage=/tmp/BaseSystem.sparseimage | |
BaseSystemSparseMount=/Volumes/MavericksBaseSystem |
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
/* | |
* This build file was auto generated by running the Gradle 'init' task | |
* by 'jharth' at '5/12/14 11:13 AM' with Gradle 1.12 | |
* | |
* This generated file contains a commented-out sample Java project to get you started. | |
* For more details take a look at the Java Quickstart chapter in the Gradle | |
* user guide available at http://gradle.org/docs/1.12/userguide/tutorial_java_projects.html | |
*/ | |
apply plugin: 'idea' |
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
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" | |
xmlns:f="http://test.example" | |
exclude-result-prefixes="xsl xs fn f"> | |
<xsl:variable name="in"> | |
<node1> | |
<node2> | |
<node3> | |
<node4/> | |
</node3> |
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
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.1') | |
import groovy.json.JsonSlurper | |
import groovyx.net.http.URIBuilder | |
def url = buildUrl() | |
def firstHashCode = fetch(url) | |
def tenMinutesAsMicroseconds = 10 * 60 * 60 * 1000 | |
for (;firstHashCode == fetch(url);) |
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/sh | |
containsErrors () | |
{ | |
localLogFile="$1" | |
errorCount=$(cat "$localLogFile" | egrep -v '(^#|^\s*$)' | grep --count --regexp=-) | |
if [ $errorCount -gt 0 ] | |
then | |
return 0 | |
else |