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/ruby | |
if !!ARGV[0] | |
if File.directory?(ARGV[0]) | |
puts Dir[ARGV[0] + '/*'].count | |
else | |
puts Dir.glob(ARGV).count | |
end | |
else | |
puts Dir['*'].count |
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/ruby | |
ttlsize = 0.0 | |
curdir = "" | |
if !!ARGV[0] | |
curdir = ARGV[0] + "/*" | |
else | |
curdir = "*" | |
end | |
Dir[curdir].each do |x| |
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/env python | |
# Federal and Virginia State Tax Calculator | |
# taxhandler.py | |
import sys | |
fedTax2012 = {} | |
fedTax2012["s"] = ((0,8699,0.1),(8700,35349,0.15),(35350,85649,0.25),(85650,178649,0.28),(178650,388349,0.33),(388350,900000000000,0.35)) |
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/python | |
import commands | |
def getmac(iface): | |
words = commands.getoutput("ifconfig " + iface).split() | |
if "HWaddr" in words: | |
return words[ words.index("HWaddr") + 1 ] | |
else: | |
return 'MAC Address Not Found!' |
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
"""Alarm Clock ver 0.1""" | |
#This does not get compiled into code but the triple quotes do. Windows Only. | |
""" | |
By Daniel P. Clark | |
11-14-2000 | |
""" | |
import time, winsound, sys, os, string | |
def waiter(): | |
print string.center('Welcome! To 6ft Dan(TM) Alarm Clock! Ver. 0.1', 79) |
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/python | |
################################################## | |
# Progran: ALL MIDIS # | |
# Version: 0.1 # | |
# Company: 6ft Dan(TM) # | |
# Author : Daniel P. Clark # | |
# E-mail : # | |
# Date : <= 2005 # | |
# ABOUT : Plays all midi's in current # | |
# directory # |
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/env python | |
################################################## | |
# Progran: ALL MP3s # | |
# Version: 0.1 # | |
# Company: 6ft Dan(TM) # | |
# Author : Daniel P. Clark # | |
# Date : <= 2005 # | |
# E-mail : # | |
# ABOUT : Plays all mp3s's in current # | |
# directory # |
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/python | |
################################################## | |
# Progran: ALL MP3s to WAV # | |
# Version: 0.1 # | |
# Company: 6ft Dan(TM) # | |
# Author : Daniel P. Clark # | |
# Date : <= 2005 # | |
# E-mail : # | |
# ABOUT : converts mp3s # | |
################################################## |
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/env python | |
# App Name: attoff | |
# Version: 0.2 | |
# | |
# Author: Daniel P. Clark | |
# Date of creation: 06-05-2002 | |
# Last modified: 12-21-2004 | |
# | |
# E-mail: webmaster@6ftdan.com |
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
@REM Created 8-03-06 by Daniel P. Clark | |
@REM Since this is from 2006 it may need additional addresses added | |
@REM webmaster@6ftdan.com | |
@echo Removing Read-Only permission from HOSTS | |
@attrib -R C:\WINDOWS\system32\drivers\etc\HOSTS | |
@echo Modifying HOSTS file to block myspace. | |
@echo off | |
@echo # Begin blocking myspace >> C:\WINDOWS\system32\drivers\etc\HOSTS | |
@echo 127.0.0.1 216.178.32.200 >> C:\WINDOWS\system32\drivers\etc\HOSTS |
OlderNewer