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
import urllib | |
import clipboard | |
import bs4 | |
import console | |
link = clipboard.get() | |
console.show_activity() | |
soup = bs4.BeautifulSoup(urllib.urlopen(link)) |
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
import selenium | |
from selenium import webdriver | |
import time | |
URL = "http://edatai.us/blog/2012/11/20/placing-kpis-different-cron-schedules" | |
b = webdriver.Firefox() | |
b.get(URL) | |
for i in range(2, 806): |
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
# stopTimer.py - generates closure notes for Drafts action | |
# & removes the temporary 'timer.txt' file | |
# by: Jason Verly | |
# rev date: 2014-07-25 | |
import time | |
import console | |
import os | |
import os.path | |
import webbrowser | |
import clipboard |
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
# startTimer.py - writes epoch time to text file for work log | |
# by: Jason Verly | |
# rev date: 2014-07-25 | |
import time | |
import console | |
import os | |
import os.path | |
import clipboard | |
import webbrowser | |
import urllib |
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
command: "df -Hl | grep 'disk1' | awk '{print $4\" used/\"$2 \" free (\"$5\" used )\"}'", | |
refreshFrequency: 60000000, | |
render: function (output) { | |
return "<div><h1>" + output + "</h1></div>"; | |
}, | |
style: " \n\ | |
bottom: 300px \n\ |
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
command: "df -Hl | grep 'disk1' | awk '{print $4\" used/\"$2 \" free (\"$5\" used )\"}'" | |
refreshFrequency: 60000000 | |
style: """ | |
bottom: 350px | |
left: 15px | |
color: #fff | |
font-family: Helvetica Neue |
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
command: "/Users/mygeekdaddy/Dropbox/bin/Python/curipaddr.py" | |
refreshFrequency: 6000000 | |
style: """ | |
bottom: 212px | |
left: 15px | |
color: #fff | |
font-family: Helvetica Neue |
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 socket | |
fqdn = socket.getfqdn() | |
ip_addr = socket.gethostbyname(fqdn) | |
print ip_addr |
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 | |
import sys, socket | |
def main(): | |
try: | |
# fqdn = socket.getfqdn() | |
ip_addr = socket.gethostbyname(socket.getfqdn()) | |
print ip_addr | |
return 0 |
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
# ** Universal iOS screenshot merge ** | |
# Script will take two images of same orientation and merge them together. | |
# | |
# By: Jason Verly (@mygeekdaddy) | |
# Date: 2014-10-13 | |
# Ver: 1.02 | |
import clipboard | |
import Image | |
import console |