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
@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 / gist:3890869
Created Oct 15, 2012
java.vendor id in OpenJDK
View gist:3890869
[hax]virbuntu$ cat vendor.java
public class vendor {
public static void main(String[] a) {
System.out.println(System.getProperty("java.vendor"));
System.out.println(System.getProperty("java.vendor.url"));
System.out.println(System.getProperty("java.version"));
}
}
[hax]virbuntu$ java -version
java version "1.6.0_24"
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 / Blinken Light
Last active Aug 25, 2017 — forked from navinpai/README
remove the browser prefixes -- animation andn @Keyframes are standards now.
View Blinken Light
Simple blinking cursor... code from http://xip.io/ ...
Ofcourse I don't own the code! Just keeping it here as a
reference of the CSS3 code used.
@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
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'`
You can’t perform that action at this time.