Skip to content

Instantly share code, notes, and snippets.

on windoze

Drew Lustro drewlustro

on windoze
  • AngelList Talent
  • Los Angeles, CA
  • Twitter @msodrew
View GitHub Profile
drewlustro / OpenWithSublimeText3.bat
Last active Feb 14, 2021 — forked from mrchief/
"Open with Sublime Text" Windows context menu, works with portable sublime text
View OpenWithSublimeText3.bat
@echo off
SET st2Path=C:\Users\drew\Dropbox\Windows\Sublime Text Build 3083 x64\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
drewlustro / index.js
Created Nov 14, 2018
Art Institute of Chicago Scraper - scrapes Creative Commons Zero (CC0) licensed artworks with puppeteer and downloads images
View index.js
const puppeteer = require("puppeteer");
const fs = require("fs");
const request = require("request");
let scrapeUrls = async () => {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
page.setViewport({ width: 1600, height: 1200 });
await page.goto('')
drewlustro / solr.rb
Created Jul 19, 2018 — forked from magnusvk/solr.rb
Homebrew Formula for Solr 6.0.0
View solr.rb
class Solr < Formula
desc "Enterprise search platform from the Apache Lucene project"
homepage ""
url ""
mirror ""
sha256 "abf5ae9f16a752ddbb2184c97ce62249a0d9f28642c62fa3333adc1c27916672"
bottle :unneeded
depends_on :java
drewlustro / KeyboardViewController.swift
Created Oct 21, 2014
KeyboardViewController.swift source from AppDesignVault with AutoLayout constraints fixed.
View KeyboardViewController.swift
// KeyboardViewController.swift
// Demo Custom Keyboard
// Created by Drew Lustro on 10/20/14.
// Original derived from tutorial found on AppDesignVault
drewlustro / .zpreztorc
Created Jan 5, 2018
My .zpreztorc on SAGE (2013 rMPB)
View .zpreztorc
# Sets Prezto options.
# Authors:
# Drew Lustro <>
# Sorin Ionescu <>
# General
drewlustro /
Created Aug 25, 2017
Multicore sox conversion of FLAC to 320 kbps LAME MP3 CBR
#!/usr/bin/env bash
find . -type f -iname '*.flac' -print0 | xargs -0 -n 1 -P 8 -I {} sox {} -C 320 -V2 {}.mp3
# requires hombrew
# brew install imagemagick
if [ -x "$(which convert)" ]; then
function convert-raw-to-jpg() {
local quality=${1:-80};
local max_dim=${2:-2650};
local source_files=${3:-\*.CR2};
drewlustro / Remapkey.bat
Created Aug 1, 2017
Run cmd.exe as administrator in Windows and use this tool to remap any modifier keys to macOS
View Remapkey.bat
View part-of-artist.js
componentDidMount: function () {
var that = this;
url: '/api/artists',
type: 'GET',
success: function (result) {
artists: result
drewlustro / svn-repo-restore.log
Created Sep 21, 2016
Damn... so close mso. I forgot that /repo exist when I dumped the server :\
View svn-repo-restore.log
☻ svn info master a685ae7 ✗
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: The working copy at '/Users/drew/dev-local/makeshift-online/site/live'
is too old (format 8) to work with client version '1.9.4 (r1740329)' (expects format 31). You need to upgrade the working copy first.
☻ svn upgrade master a685ae7 ✗
svn: E155019: Can't upgrade '/Users/drew/dev-local/makeshift-online/site/live' as it is not a working copy root, the root is '/Users/drew/dev-local/makeshift-online/site'