Skip to content

Instantly share code, notes, and snippets.

View eyemyth's full-sized avatar

Jay Thompson eyemyth

  • WGBH
  • Austin, TX
View GitHub Profile
@eyemyth
eyemyth / gist:1999989
Created March 8, 2012 09:43
Scan a network for a particular open port
sudo nmap -p 22 -open -v -oG - 192.168.1.0/24 | grep 22/open
@eyemyth
eyemyth / gist:3002861
Created June 27, 2012 09:28
Rebuild local KDC
/usr/sbin/systemkeychain -k /Library/Keychains/System.keychain -C -f
rm -rf /var/db/krb5kdc # or selectively delete and edit kdc.conf
/usr/libexec/configureLocalKDC
@eyemyth
eyemyth / gist:4078687
Created November 15, 2012 13:34
Fix Crashplan
/usr/libexec/PlistBuddy -c "Set :ProgramArguments:4 -Xmx2048m" /Library/LaunchDaemons/com.crashplan.engine.plist
# array
snippet array
<array>
${0}
</array>
# data
snippet data
<data>
${1}
</data>
@eyemyth
eyemyth / config.txt
Last active July 11, 2017 08:32 — forked from anonymous/gist:8983191
/boot/config.txt to make raspberry pi run at 1080p
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
@eyemyth
eyemyth / plum.coffee
Created May 7, 2014 14:25
Plum Landing UGC Widget
class Dashing.Plum extends Dashing.Widget
ready: ->
container = $(@node).parent()
@width = (Dashing.widget_base_dimensions[0] * container.data("sizex")) + Dashing.widget_margins[0] * 2 * (container.data("sizex") - 1)
@height = (Dashing.widget_base_dimensions[1] * container.data("sizey"))
@currentIndex = 0
@imgElem = $(@node).find('.plum-image')
@nextPhoto()
@startCarousel()
#!/usr/bin/env php
<?php
$arg = 'T';
$vehicle = ( ( $arg == 'B' ) ? 'bus' :
( $arg == 'A' ) ? 'airplane' :
( $arg == 'T' ) ? 'train' :
( $arg == 'C' ) ? 'car' :
( $arg == 'H' ) ? 'horse' :
'feet' );
echo $vehicle;
@eyemyth
eyemyth / shift_to_parentheses.json
Last active November 22, 2022 04:22
Complex modification rules for Karabiner Elements to map shift keys to parentheses. Use the URL in the comment to import easily.
{
"title": "Shift keys to parentheses",
"rules": [
{
"description": "map left shift to opening parenthesis",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_shift",
<!doctype html>
<html class="no-js" lang="en-gb">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Wagtail - Editing image Potted plant and stars</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@eyemyth
eyemyth / style
Created August 5, 2021 15:49
My yapf config
[style]
# Align closing bracket with visual indentation.
align_closing_bracket_with_visual_indent=False
# Allow dictionary keys to exist on multiple lines. For example:
#
# x = {
# ('this is the first element of a tuple',
# 'this is the second element of a tuple'):
# value,