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 | |
QEMU_SOCKET="/tmp/qemu-monitor.sock" | |
check_qemu_process() { | |
pgrep -f "qemu-system-ppc.*mac99" > /dev/null | |
} | |
check_monitor_socket() { | |
[ -S "$QEMU_SOCKET" ] && echo "info status" | nc -U -w 1 "$QEMU_SOCKET" > /dev/null 2>&1 |
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 | |
if [ $# -ne 2 ] ; then | |
echo "Syntax: $0 [project_name] [should_build = 0 | 1]" | |
exit 1 | |
fi | |
if [ ! -d "$1" ]; then | |
echo 'The specified project folder does not exist' | |
exit 1 |
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 to your CD-ROM image | |
CDROM_IMAGE="$1" | |
# Send commands to QEMU monitor socket | |
send_monitor_command() { | |
printf "$1\n" | nc -U /tmp/qemu-monitor.sock | |
} |
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 | |
if test "$#" -ne 1; then | |
echo "Syntax: $0 [input_file]" | |
exit 1 | |
fi | |
if [ ! -f "$1" ]; then | |
echo "Input file not found!" | |
exit 1 |
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 | |
if [ $# -ne 1 ] ; then | |
echo "Syntax: $0 [project_name]" | |
exit 1 | |
fi | |
if [ ! -d "$1" ]; then | |
echo 'The specified folder does not exist' | |
exit 1 |
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 | |
if [ $# -ne 1 ] ; then | |
echo "Syntax: $0 [project_name]" | |
exit 1 | |
fi | |
if [ ! -d "$1" ]; then | |
echo 'The specified folder does not exist' | |
exit 1 |
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 | |
# I have managed to map out some undesirable daemons and agents. Most of these | |
# can be disabled without too much consequence. | |
## Daemons | |
# com.apple.analyticsd - Anonymized application analytics daemon | |
# com.apple.appleseed.fbahelperd - Feedback Assistant Helper Daemon | |
# com.apple.awacsd - Apple Wide Area Connectivity Service Daemon | |
# com.apple.backupd - Apple TimeMachine service |
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 | |
# -*- encoding: US-ASCII -*- | |
# ruby-ips.rb --Kernigh, March 2009 | |
# This program is in the public domain and has no copyright. | |
require 'optparse' | |
filename = nil | |
sflag = false |
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
# To run this code, use the IP address of the roku device as such: | |
# ruby ./RokuRemote.rb 192.168.99.99 | |
require 'io/console' | |
require 'uri' | |
require 'net/http' | |
unless ARGV[0] | |
puts "Need IP of device" | |
exit 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
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |
NewerOlder