Skip to content

Instantly share code, notes, and snippets.

on windoze

Drew Lustro drewlustro

on windoze
Block or report user

Report or block drewlustro

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
endolith / Readme.txt
Last active Nov 9, 2018
Gnome to Wine color scraper
View Readme.txt
This is a Python script to extract GNOME/GTK's color scheme and apply it to Wine, so that the themes (approximately) match.
1. Set your Gnome theme as you would like it
2. Run with a command like "python"
3. Restart any apps running in Wine. They should match the Gnome theme colors now.
Better description with screenshots here:
This is also stored on
isaacs /
Last active Nov 7, 2019
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh
scottwb / nginx_subdomain.conf
Created Jan 25, 2011
Nginx config to route domain and subdomains, except for explicit virtual hosts, to the www subdomain.
View nginx_subdomain.conf
http {
# Default virtual host for This will pick up all HTTP
# requests to port 80 that are not for one of the other virtual hosts.
server {
listen 80;
# ...your server config here...
mdp /
Created Sep 30, 2011
Git branch cleanup
# This must be run from master
git checkout master
# Update our list of remotes
git fetch
git remote prune origin
# Remove local fully merged branches
git branch --merged master | grep -v 'master$' | xargs git branch -d
# Show remote fully merged branches
echo "The following remote branches are fully merged and will be removed:"
git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$'
spudbean / gist:1558257
Last active Nov 14, 2019
Look of disapproval and other emoticons
View gist:1558257
( ͡° ͜ʖ ͡°)
(╯°□°)╯︵ ┻━┻
Unicode Emoticons
kyleturner / Remove Submodule
Created Jan 5, 2012
How to remove a submodule from a Github project
View Remove Submodule
To remove a submodule you need to:
Delete the relevant line from the .gitmodules file.
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Commit and delete the now untracked submodule files.
jimbojsb / gist:1630790
Created Jan 18, 2012
Code highlighting for Keynote presentations
View gist:1630790

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

mrdanadams / _pems.scss
Created Mar 29, 2012
PX to EMs conversion in Sass
View _pems.scss
/* See */
/* Default font size in pixels if not overridden. */
$baseFontSize: 16;
/* Convert PX units to EMs.
Ex: margin-right: pem(16);
@function pem($pxval, $base: $baseFontSize) {
@return #{$pxval / $base}em;
ronjouch / ronj-autohotkey.ahk
Created Apr 20, 2012
Collection of AutoHotkey scripts I use
View ronj-autohotkey.ahk
; Variables definition
; -----------------------------------------------------------------------------
EnvGet, userProfile, USERPROFILE
Software := userProfile . "\Dropbox\software\"
; Launch or toggle program,
; -----------------------------------------------------------------------------
brandonb927 /
Last active Nov 17, 2019
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see
# Alot of these configs have been taken from the various places
# on the web, most from here
You can’t perform that action at this time.