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" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.eclipse.eclimd</string> | |
<key>OnDemand</key> | |
<false/> | |
<key>RunAtLoad</key> | |
<true/> |
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
# Similar to os.path.walk but traverses up the tree | |
def walkup(bottom=os.path.dirname(__file__)): | |
"""Similar to os.walk, but up the tree | |
instead of down. | |
""" | |
path = os.path.realpath(bottom) | |
dirs = [] | |
files = [] | |
for item in os.listdir(path): |
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 | |
# This is adapted from other similar scripts and pieces of my own added in. | |
# I can't find the original source, but if you are aware of it, please comment | |
# so I can link back to them. Thanks! | |
# Prompt the user to get Apple's Command Line Tools | |
open http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_mountain_lion_for_xcode__october_2013/command_line_tools_os_x_mountain_lion_for_xcode__october_2013.dmg | |
# Ask for the administrator password upfront |
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 | |
SRC=${1:-"/mnt/camSD"} | |
DEST=${2:-"/home/`whoami`/Pictures"} | |
EXT=${3:-"jpg"} | |
#UUID=null # Get UUID with `blkid /dev/sdX#` | |
function checkResources { | |
if [ ! -L "/dev/disk/by-uuid/${UUID}" ]; then | |
echo "The disc is not mounted, the process will halt." |
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 | |
#============================================ | |
# Apply a watermark to a batch of images | |
# in the source directory after verifying | |
# that the images are not corrupted. | |
# This applies the watermark based off | |
# the source image's resolution. | |
# (recommended WM base size of 500px wide) | |
#============================================ |
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 | |
# == User Set == | |
# py_mailer2 location | |
mailer='/root/server_scripts/py_mailer/py_mailer2.py' | |
# latest ip file location | |
latest_known_ip='/root/.ip' | |
#to | |
to='[email protected]' | |
# Gmail Username / Password |
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 python | |
import urllib2, sys, os, smtplib, argparse | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEBase import MIMEBase | |
from email.MIMEText import MIMEText | |
from email.Utils import formatdate | |
from email import encoders | |
parser = argparse.ArgumentParser(description='Send messages through SMTP server from the command line.') |
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
/* | |
File: ChatServer.js | |
Author: Nerdwaller | |
Description: | |
A fairly simple chat server using Node.js. | |
It takes several pieces from other scripts, adds some original pieces, and additional functionality. | |
*/ | |
var net = require("net"); | |
// Server Config |
NewerOlder