Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
mygeekdaddy / custom.css
Created July 3, 2015 22:08
Custom CSS file from Marked to generated graph lines in PDF files
/*
This document has been created with Marked.app <http://markedapp.com>, Copyright 2011 Brett Terpstra
Please leave this notice in place, along with any additional credits below.
---------------------------------------------------------------
Title: custom.css
Author: Jason Verly (@mygeekdaddy)
Description: Custom CSS file to generate 'graph paper' on rendered MD to PDF
*/
@mygeekdaddy
mygeekdaddy / OmniFocus_Due_List.scpt
Created July 3, 2015 21:22
Generate MD file for tasks due within +/- 7d of current date
(*
File: OmniFocus_Due_List.scpt
Revision: 1.0
Revised: 2015-07-01
Summary: Create taskpaper list of tasks due +/- 7d from current date.
-----------------------------------------------------------
Script based on Justin Lancy (@veritrope) from Veritrope.com
@mygeekdaddy
mygeekdaddy / custom_graph.ss
Created July 3, 2015 18:27
Marked Custom.css with graph marks
/*
This document has been created with Marked.app <http://markedapp.com>, Copyright 2011 Brett Terpstra
Please leave this notice in place, along with any additional credits below.
---------------------------------------------------------------
Title: Theme title
Author: Your name and optional url
Description: Basic description of the theme.
*/
body
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEDIT/TEXTWRANGLER REGULAR EXPRESSION GUIDE MODIFIED 2014-01-13 : 00:12
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@mygeekdaddy
mygeekdaddy / sidebar_example.html
Created November 6, 2014 16:28
Example of sidebar.html Pelican template with DDG search
<aside class="sidebar">
{% if SIDEBAR_IMAGE %}
<section>
<img src="{{ SITEURL }}/{{ SIDEBAR_IMAGE }}" alt="{{ SIDEBAR_IMAGE_ALT}}" width="{{SIDEBAR_IMAGE_WIDTH}}"/>
</section>
{% endif %}
<section>
<h1>Search</h1>
<form method="get" id="search" action="http://duckduckgo.com/">
@mygeekdaddy
mygeekdaddy / sitemap.html
Created November 6, 2014 15:47
Pelican sitemap.xml templat for Pelican
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for article in articles %}
<url>
<loc>{{ SITEURL }}/{{ article.url }}</loc>
<priority>0.8</priority>
</url>
{% for translation in article.translations %}
@mygeekdaddy
mygeekdaddy / universal_image_merge.py
Created October 14, 2014 04:08
Pythonista script to merge two images together
# ** 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
@mygeekdaddy
mygeekdaddy / curipaddr.py
Created August 19, 2014 01:59
Python script to get current IP address
#!/usr/bin/env python
import sys, socket
def main():
try:
# fqdn = socket.getfqdn()
ip_addr = socket.gethostbyname(socket.getfqdn())
print ip_addr
return 0
@mygeekdaddy
mygeekdaddy / curipaddr.py
Created August 11, 2014 03:46
Print current IP address of system
#!/usr/bin/python
import socket
fqdn = socket.getfqdn()
ip_addr = socket.gethostbyname(fqdn)
print ip_addr
@mygeekdaddy
mygeekdaddy / index.coffee
Created August 11, 2014 03:45
Übersicht widget to display your current IP address
command: "/Users/mygeekdaddy/Dropbox/bin/Python/curipaddr.py"
refreshFrequency: 6000000
style: """
bottom: 212px
left: 15px
color: #fff
font-family: Helvetica Neue