Skip to content

Instantly share code, notes, and snippets.

View justsh's full-sized avatar

Justin Sheehy justsh

View GitHub Profile
@justsh
justsh / add_to_statusbar.py
Created July 4, 2016 04:10 — forked from mottosso/add_to_statusbar.py
Add an action to the Maya "Status Bar"
import os
from PySide import QtGui
# Use this to locate your widget; it will return the
# widget currently under your cursor.
# parent = QtGui.qApp.widgetAt(QtGui.QCursor.pos())
# parent.objectName()
# Use this once you know the name of it, in this case "toolBar1"
# We can find it as a child of the main window.
@justsh
justsh / msys2-sshd-setup.sh
Last active January 23, 2017 22:29 — forked from samhocevar/gist:00eec26d9e9988d080ac
Configure sshd on MSYS2 and run it as a Windows service
#!/bin/sh
#
# msys2-sshd-setup.sh — configure sshd on MSYS2 and run it as a Windows service
#
# Please report issues and/or improvements to Sam Hocevar <sam@hocevar.net>
#
# Prerequisites:
# — MSYS2 itself: http://sourceforge.net/projects/msys2/
# — admin tools: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights
#
@justsh
justsh / Git Bash.vbs
Last active August 29, 2015 14:17
Modified `Git Bash.vbs` script from Git for Windows to support ansicon and a default working directory. Batch file can be pinned to taskbar with alt. icon. Running from VBScript is gross, but ensures an up to date environment without killing explorer or logging in/out
Set fso = CreateObject("Scripting.FileSystemObject")
Set shell = CreateObject("WScript.Shell")
' Lookup System and User environment variables defined in the current process
Set env = shell.Environment("PROCESS")
Const TemporaryFolder = 2
linkfile = fso.BuildPath(fso.GetSpecialFolder(TemporaryFolder), "Git Bash.lnk")
gitdir = fso.GetParentFolderName(WScript.ScriptFullName)
ansicon = fso.BuildPath(env("ANSICON64"), "ansicon.exe")
@justsh
justsh / wpa_supplicant.conf
Created March 16, 2015 09:24
basic upstart script for wpa_supplicant. tested with edimax usb wifi adapter on rpi2
#!upstart
description "automatically start wpa_supplicant daemon"
start on runlevel [2345]
stop on runlevel [016]
respawn
respawn limit 20 5
@justsh
justsh / twitter_notifications_only.css
Last active August 29, 2015 14:07 — forked from cmod/twitter_notifications_only.css
Twitter Notifications
/*
Just the Notifications, please
==============================
1. Make a Fluid (http://fluidapp.com/) instance of https://twitter.com/i/notifications
2. Apply the below CSS as a Userstyles stylesheet
3. Enjoy just the conversation, not the timeline
Why?
@justsh
justsh / WxdataWeather.ini
Last active August 29, 2015 14:07
Rainmeter Illustro Skins
; Weather info for Rainmeter Illustro
; TO FIND YOUR WEATHER CODE
; First, use the wxdata search feature to find location codes
;http://wxdata.weather.com/wxdata/search/search?where=College+Station+TX
; That should return a list with at least one acceptable weatherCode
; You can test that code with the following url
;http://wxdata.weather.com/wxdata/weather/local/USTX0270
; Examples
@justsh
justsh / optimg.js
Created September 17, 2014 04:48
Helper script for passing selected files in Windows Explorer to WScript via StExBar. Processes with external programs such as jpegtran and pngout
/*
* optimg.js
* This file runs optimg optimization on all selected files
*
* To use with StExBar, add the command line:
* WScript.exe "path/to/optimg.js" //E:javascript %sel*paths
*/
(function (WScript, Error, String) {
"use strict";