Skip to content

Instantly share code, notes, and snippets.

View L1fescape's full-sized avatar

Andrew Kennedy L1fescape

View GitHub Profile
<a onclick="wp_showhide.main(this, '{myId}')" href="javascript:void(0)">
["{Show Text}", "{Hide Text}", "{visible}"]
</a>
<div id="{myId1}">
{Content goes here}
</div>
<a onclick="wp_showhide.main(this, 'spoiler1')" href="javascript:void(0)">
["Show Text", "Hide Text", "visible"]
</a>
<div id="spoiler1">
{Content goes here}
</div>
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
defaults write com.apple.dashboard mcx-disabled -boolean NO
killall Dock
package main
import (
"net"
"strings"
"fmt"
)
func handleConnection(conn net.Conn) {
// try to read data from the connection
.popup {
position:fixed;
color: #4c3327;
font-family: Helvetica, Arial, sans-serif;
top:0;
left:0;
width:100%;
height:100%;
max-width:100%;
max-height:100%;
@L1fescape
L1fescape / evills
Created April 1, 2014 22:06 — forked from Eugeny/evills
#!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
__all__ = ["transform"]
__version__ = '0.3'
__author__ = 'Christoph Burgmer <[email protected]>'
__url__ = 'http://github.com/cburgmer/upsidedown'
#!/usr/bin/env python2
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@L1fescape
L1fescape / auto_hotkey
Created April 27, 2014 15:59
AutoHotkey Bindings
; Map ctrl-backspace to delete (similar to MacOS)
^BS::
Send {DEL}
return
; Map Caps lock to escape
Capslock::Esc
; Toggles default audio device in Control Panel (switches between headset and speakers).
!s::
@L1fescape
L1fescape / united_flighttime.bash
Last active August 29, 2015 14:01
Get the the status of the United Airlines flight you're currently on, provided your flight has wifi (just need to be connected, not paying for it). Implementations in node and curl.
curl 'https://www.unitedwifi.com/payment/ajax/notification.do' --data 'actionkey=FLIGHT_TIME_NOTIFICATIONS' --compressed
# [{
# "class":"com.bluebird.business.flightimebar.FlightimeBarResponse",
# "destinationIATA":"MCO",
# "eventType":"FLIGHTTIMEBAR",
# "flightETA":"8:58PM",
# "flightRunningStatus":89,
# "flightStatusText":"0h 33m with United Wi-Fi!",
# "flightTotalDuration":332,
# "markers":[{