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/bash | |
function wait4tcp () { | |
local nc opt silence op host port ret failed limit tries | |
local OPTIND OPTARG | |
limit=100 | |
op="open" | |
while getopts ":csw:" opt; do |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<dependencies> | |
<dependency> | |
<groupId>pl.project13.maven</groupId> | |
<artifactId>git-commit-id-plugin</artifactId> | |
<version>2.1.5</version> | |
</dependency> |
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 ruby | |
require 'rubygems' | |
require 'fileutils' | |
# | |
# Generate HTMLs for e-book from HTML files of "Programming in Scala". | |
# | |
# Usage: |
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/bash | |
# | |
# reboot-abnormal Force soft-reboot when Scalr event was not received | |
# | |
# chkconfig: 2345 80 10 | |
# description: Force soft reboot when Scalr event was not received | |
# | |
# pidfile: /var/run/reboot-abnormal.pid | |
. /etc/rc.d/init.d/functions |
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 ruby | |
require 'timeout' | |
require 'getoptlong' | |
RLIMIT_MAP = { | |
"Max cpu time" => Process::RLIMIT_CPU, | |
"Max file size" => Process::RLIMIT_FSIZE, | |
"Max data size" => Process::RLIMIT_DATA, | |
"Max stack size" => Process::RLIMIT_STACK, |
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/bash | |
PATH=/bin:/usr/bin:/usr/local/bin | |
check-nfs () { | |
local TMPFILE=/tmp/checknfs.$$ RET=0 ORPHAN SUBSHELLPID | |
if [ "$#" -eq 0 ]; then | |
cat<<EOF | |
usage: check-nfs NFS-DIRECTORY... |
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
<?xml version="1.0"?> | |
<root> | |
<appdef> | |
<appname>IntelliJ IDEA</appname> | |
<equal>com.parallels.desktop.console</equal> | |
<equal>com.jetbrains.intellij.ce</equal> | |
</appdef> | |
<deviceproductdef> | |
<productname>APPLE_INTERNAL_KEYBOARD_TRACKPAD_0x0273</productname> |
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/bash | |
CONV_JSON=/tmp/convjson.$$ | |
SRC1=/tmp/diffjson.1.$$.json | |
SRC2=/tmp/diffjson.2.$$.json | |
SRC3=/tmp/diffjson.3.$$.json | |
PROGRAM_NAME=$(basename $0) | |
VERSION_STRING="0.1" | |
PYTHON= |
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/bash | |
# SJK tool need to run as the same user of the target process. | |
USER= | |
PID= | |
INTERVAL=10ms | |
PROGRAM_NAME=$(basename $0) | |
error() { |
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
# See https://www.emacswiki.org/emacs/EmacsForMacOS | |
# | |
# Create an app that runs a shell script that runs Emacs.app, like this: | |
# 1. use Finder to navigate to /Applications and double-click Automator.app. | |
# 2. Select the document type “Application” and click “Choose”. | |
# 3. In the list on the left, select “Library”. | |
# 4. In the next list, find “Run Shell Script” and drag it into the workflow area on the right. | |
# 5. In the new shell script, delete the text and replace it with: | |
EMACS=/Applications/Aquamacs.app/Contents/MacOS/Aquamacs |
OlderNewer