Skip to content

Instantly share code, notes, and snippets.

View paddykontschak's full-sized avatar

Patrick Kontschak paddykontschak

View GitHub Profile
@paddykontschak
paddykontschak / goodreads.md
Created July 19, 2012 22:38
WALL-E Goodreads plugin

Six terminal commands to make 10.7 or 10.8 not suck & regain some privacy in OS X

Taken from Bryan Jones' Lion Tweaks.rtf

  1. Disable safe sleep

sudo pmset -a hibernatemode 0

sudo nvram "use-nvramrc?"=false

@paddykontschak
paddykontschak / mangai.properties
Created July 27, 2012 03:43
My MangAI Settings
# MangAI v1.06
# These settings are already optimized for kindle3, but feel free to change whatever you like.
# Basic Image Processing Settings
# @width Width in pixels of output images
# Set to -1 to disable width resizing.
# Acceptable values: -1 (to disable) or an integer greater than 0 (to enable)
# @height Height in pixels of output images
# Set to -1 to disable height resizing.
# Acceptable values: -1 (to disable) or an integer greater than 0 (to enable)
@paddykontschak
paddykontschak / osx_mountain_lion_setup.md
Last active April 24, 2017 13:48 — forked from jpantuso/osx_lion_rail_setup.md
Personal Setup for OS X 10.8

Setup new Mac with OS X Mountain Lion from scratch

These commands are good as of 2013-01-11.

OS X

Show Library folder in Finder

chflags nohidden ~/Library/

@paddykontschak
paddykontschak / .vromerc
Created September 12, 2012 02:03
My Vrome Settings
set searchengines+={"duckduckgo":“http://duckduckgo.com/?q={{keyword}}"}
set defaultsearch=duckduckgo
map h 5h
map j 5j
map k 5k
map l 5l
set disablesites=mail.google.com, reader.google.com, reddit.com, duckduckgo.com, github.com, bitbucket.org // don’t run Vrome in those sites
set showstatus=0
set editor=vim -f
@paddykontschak
paddykontschak / noise.coffee
Created September 12, 2012 19:25
Generate noise with canvas
generateNoise = (opacity) ->
return false unless !!document.createElement("canvas").getContext
canvas = document.createElement("canvas")
ctx = canvas.getContext("2d")
x = undefined
y = undefined
number = undefined
opacity = opacity or .2
canvas.width = 45
canvas.height = 45
@paddykontschak
paddykontschak / invitation.js
Created September 18, 2012 04:00
invitation
// define variables
var luisStatus;
var karinaStatus;
var karinaLocation;
var today = "Sunday";
// Check Karina's status and today's weekday
if(karinaStatus == "free" && today == "Monday") {
// if Karina is free and today is Monday, change Luis' and Karina's status
luisStatus = "Dining with Karina";
@paddykontschak
paddykontschak / paypal.md
Created October 16, 2012 16:55 — forked from nikolaplejic/gist:3654637
How to copy/paste your password in PayPal's change password form

PayPal blocks copy/paste actions in their "change password" form, citing some irrelevant security issues as the reason. That's a load of crap, and they know it -- disabling copy/paste makes it a lot harder to use a decent password generator and a lot easier to screw up your pwd when retyping, especially if it's a long one (as it should be!).

So, here's the quick'n'dirty way to use an externally generated password in your PayPal account:

@paddykontschak
paddykontschak / hover.html
Created October 29, 2012 16:15
Always “hover” before you click!? Wrong.
<!doctype html>
<head>
<!-- Taken from http://www.frameloss.org/2012/10/28/hover-fail/ --->
<script>
function tricked() {
document.getElementById("naughty").href="http://www.frameloss.org";
}
</script>
</head>

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg