This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!upstart | |
description "automatically start wpa_supplicant daemon" | |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
respawn limit 20 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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"; |