Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
mygeekdaddy / index.coffee
Created August 10, 2014 18:21
Coffeescript widget for Übersicht to monitor available HD space
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
@mygeekdaddy
mygeekdaddy / hdspace.js
Created August 10, 2014 18:20
Javascript widget for Übersicht to show available HD space
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\
@mygeekdaddy
mygeekdaddy / startTimer.py
Created July 26, 2014 02:54
startTimer.py script for WorkFlow process
# 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
@mygeekdaddy
mygeekdaddy / stopTimer.py
Created July 26, 2014 02:35
stopTimer.py script for WorkLog workflow
# 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
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):
import urllib
import clipboard
import bs4
import console
link = clipboard.get()
console.show_activity()
soup = bs4.BeautifulSoup(urllib.urlopen(link))
@mygeekdaddy
mygeekdaddy / OmniFocusScreen.py
Created April 8, 2014 17:47
OmniFocusScreen
#Summary: Takes copied text and creates new task in OmniFocus
#By: Jason Verly
#Rev: 2013-02-02
import webbrowser
import clipboard
import urllib
@mygeekdaddy
mygeekdaddy / Markdown Conversion.py
Created April 8, 2014 17:47
Markdown Conversion
# Markdown Conversion
#
# This script demonstrates how you can convert Markdown documents
# to HTML and view the results in the built-in browser.
import os, tempfile, codecs
import console, clipboard, webbrowser
from markdown2 import markdown
DEMO = '''
@mygeekdaddy
mygeekdaddy / ImportToOmnifocus.py
Created April 8, 2014 17:46
ImportToOmnifocus
#Summary: Takes copied text and creates new task in OmniFocus
#By: Jason Verly
#Rev: 2013-02-02
import webbrowser
import clipboard
import urllib
import console
task = console.input_alert('Task', 'Enter task description')
#Summary: Takes copied text and creates new task in OmniFocus
#By: Jason Verly
#Rev: 2013-02-04
#Rev Note: Added Page Title & URL to clipped txt
import webbrowser
import clipboard
import urllib
import console
import sys