Skip to content

Instantly share code, notes, and snippets.

Michael Lockhart sinewalker

Block or report user

Report or block sinewalker

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
View keybase.md

Keybase proof

I hereby claim:

  • I am sinewalker on github.
  • I am sinewalker (https://keybase.io/sinewalker) on keybase.
  • I have a public key whose fingerprint is 8400 93B4 16FE A604 8473 A2F6 3CCA 2E6E BCBE 8795

To claim this, I am signing this object:

@sinewalker
sinewalker / set_window_manager.sh
Created Jul 5, 2010
Use Awesome as window manager in KDE
View set_window_manager.sh
KDEWM=/usr/bin/awesome
@sinewalker
sinewalker / wmname.sh
Created Jul 5, 2010
Fix Java grey window problem in Awesome
View wmname.sh
/usr/bin/wmname LG3D
@sinewalker
sinewalker / MODE
Created Jul 14, 2010
Set X11 screen mode using xrandr
View MODE
#!/bin/bash
###############################################################################
# File: MODE
# Language: Bash
# Time-stamp: <2010-07-14 21:52:07 mjl>
# Platform: X Window System with XRANDR
# OS: Linux
# Authors: Michael Lockhart [MJL]
#
# Rights: Copyright © 2010 Michael James Lockhart, B.App.Comp(HONS)
@sinewalker
sinewalker / edge-csvn.sh
Created Apr 4, 2011
A kludge to get Subversion Edge Apache server to run as an LSB service
View edge-csvn.sh
#! /bin/sh
###############################################################################
#
# File: edge-csvn
# Language: LSB Init Script
# Time-stamp: <2011-04-04 15:46:51 mjl>
# Platform: Unix workstation
# OS: Linux
# Authors: Michael Lockhart [MJL] (sinewalker@gmail.com)
#
View MJL-SystemSounds-0.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default\MJL-S0]
@="C:\\Library\\SystemSounds\\Default Beep.wav"
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\AppGPFault]
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\AppGPFault\MJL-S0]
@="C:\\Library\\SystemSounds\\Program Error.wav"
@sinewalker
sinewalker / fix_github_https_repo.sh
Created Apr 26, 2016 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
View fix_github_https_repo.sh
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@sinewalker
sinewalker / RotateDisplay.scpt
Created Jul 13, 2016
Applescript to toggle screen rotation. Needs to be tweeked for your specific screen arrangement.
View RotateDisplay.scpt
-- this code came from Fancyham - http://fancyham.com/tips/OS_X_toggle_display_rotation_applescript.html
-- Now works with Mountain Lion 10.8
-- Rotate Display on machines
-- This code is offered without any liability implied or explicit.
-- Use it at your own risk.
-- Copyright 2005, 2006 Conrad Albrecht-Buehler
-- Modifications for portrait/landscape only May 2006 Bryan Wu to support toggling between only two modes - landscape and portrait
View fix_github_https_repo.sh
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
# Forked from the original to do the opposite: Switch ssh repo urls to https
# Original here: https://gist.github.com/m14t/3056747
# Thanks to @m14t
#origin or upstream
REMOTE=${1-origin}
REPO_URL=`git remote -v | grep -m1 "^$REMOTE" | sed -Ene's#.*(git@github.com:[^[:space:]]*).*#\1#p'`
@sinewalker
sinewalker / 0_reuse_code.js
Created Sep 16, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.