Skip to content

Instantly share code, notes, and snippets.

pslobo pslobo

Block or report user

Report or block pslobo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jpinnix
jpinnix / Pixelgrazer.taskpapertheme
Created Jul 8, 2010
Pixelgrazer TaskPaper Theme
View Pixelgrazer.taskpapertheme
<theme>
<!-- Window Style -->
<color id="foreground" red="1.0" green="0.776" blue="0.427" alpha="1.0" />
<color id="background" red="0.255" green="0.255" blue="0.255" alpha="1.0" />
<window foregroundColorID="foreground" backgroundColorID="background" shouldUseHUDScrollers="no" />
<!-- Text View Style -->
<color id="tag" red="0.800" green="0.471" blue="0.200" alpha="1.0" />
<color id="handle" extendsColorID="foreground" />
<color id="insertionPoint" red="1.0" green="1.0" blue="1.0" alpha="1.0" />
@inkedmn
inkedmn / GetMessageUrl
Created Nov 8, 2011
Get the message:// URL of the selected message in Mail.app
View GetMessageUrl
tell application "Mail"
set selectedMsgs to selection
repeat with theMsg in selectedMsgs
set message_url to "message://%3c" & (the message id of theMsg) & "%3e"
tell application "Finder"
set the clipboard to message_url as text
end tell
exit repeat -- leave the repeat loop after one pass
end repeat
end tell
@saetia
saetia / gist:1623487
Last active Jul 16, 2019
Clean Install – OS X 10.11 El Capitan
View gist:1623487

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
View dropboxlogin.py
# YOU NEED TO INSERT YOUR APP KEY AND SECRET BELOW!
# Go to dropbox.com/developers/apps to create an app.
app_key = 'YOUR_APP_KEY'
app_secret = 'YOUR_APP_SECRET'
# access_type can be 'app_folder' or 'dropbox', depending on
# how you registered your app.
access_type = 'app_folder'
@benwaldie
benwaldie / 2012-11-16-TUAW_Waldie.applescript
Created Nov 19, 2012
TUAW - Create Evernote Template Notebook
View 2012-11-16-TUAW_Waldie.applescript
-- Get the path to the Evernote templates folder
set theTemplatesFolder to (path to documents folder as string) & "Evernote Templates:" as alias
-- Retrieve a list of template file names without their .enex extensions
set theTemplateNames to list folder theTemplatesFolder without invisibles
repeat with a from 1 to length of theTemplateNames
set aTemplate to item a of theTemplateNames
if aTemplate contains ".enex" then set aTemplate to text 1 thru -6 of aTemplate
set item a of theTemplateNames to aTemplate
end repeat
@aquarius
aquarius / gist:5823110
Last active Apr 5, 2019
MindNode URL Schemes
View gist:5823110

#MindNode URL Schemes

Basic

###Launch MindNode mindnode://

####Examples mindnode://

###Open Document

@sgerin
sgerin / ios_icons
Created Aug 19, 2013
Get iOS icons. Thanks to Brett Terpstra.
View ios_icons
# Adapted from Brett Terpstra script: http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/
# Gets the 1024px version of an app icon and applies a rounded mask. The result is displayed in Pythonista's console, you can tap and hold to save or copy it.
# You may find odd result: try searching for both device categories.
# If you find any bug, you can find me @silouane20 on Twitter.
from PIL import Image
from StringIO import StringIO
import re
import requests
@sgerin
sgerin / gist:6265532
Created Aug 19, 2013
Get OS X icons. Thanks to Brett Terpstra.
View gist:6265532
# Adapted from Brett Terpstra script : http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/
# Fetches the 1024px version of an OS X app icon. The result is displayed in Pythonista's console, you can tap and hold to save or copy it.
# If you find any bug, you can find me @silouane20 on Twitter.
from PIL import Image
from StringIO import StringIO
import re
import requests
def find_icon(terms):
@hiilppp
hiilppp / list.py
Created Dec 10, 2013
Python script to manipulate text in Pythonista in the following manner and send the result (back) to Drafts: Sort lines, remove blank and duplicate lines, and prepend a hyphen to lines which don't start with one.
View list.py
# To call script from Drafts, use the follwing URL as URL Action:
# <pythonista://list.py?action=run&argv=[[draft]]>
import os
import re
import sys
import urllib
import webbrowser
a = re.sub(r"(?m)^[*-] ", "", sys.argv[1])
@epramono
epramono / LCP2.1URLSchemes
Last active Dec 31, 2015
Comparing the URL Schemes supported by Launch Center Pro 2.0 and 2.1.
View LCP2.1URLSchemes
launchpro-light:
launch://light
launchpro-brightness://toggle?low=10&high=100
launch://brightness/toggle?low=40&high=60
launchpro-dial:
launch://dial
launchpro-clipboard://convert?format=
You can’t perform that action at this time.