Skip to content

Instantly share code, notes, and snippets.

3875 NP
I
you
me
it
thou
thee
he
she
Romeo
3106 NP
Romeo
O
Tybalt
Juliet
Come
Ay
God
thou art
a man
import mozprocess
p = mozprocess.ProcessHandler(['/tmp/test.sh'])
p.run()
p.wait()
@luser
luser / hilightwin.pl
Last active August 29, 2015 14:17
hilightwin.pl
#
# Print hilighted messages & private messages to window named "hilight" for
# irssi 0.7.99 by Timo Sirainen
#
# Modded a tiny bit by znx to stop private messages entering the hilighted
# window (can be toggled) and to put up a timestamp.
#
# Forked from https://github.com/irssi/scripts.irssi.org/blob/gh-pages/scripts/hilightwin.pl
use strict;
@luser
luser / synergy-startup.log
Created March 25, 2015 10:41
synergy startup on Windows
WARNING: detected application not running, pid=3924
INFO: backing off, wait=2s, failures=1
DEBUG: getting elevated token, elevation required
DEBUG: processes in session 1: csrss.exe, winlogon.exe, nvxdsync.exe, nvvsvc.exe, nvwmi64.exe, taskhost.exe, dwm.exe, explorer.exe, RtkNGUI64.exe, RAVBg64.exe, DellPoaEvents.exe, VidyoDesktop.exe, BTSync.exe, LogonUI.exe,
DEBUG: found winlogon.exe in session 1
DEBUG: got token 636, duplicating
DEBUG: duplicated, new token: 616
INFO: starting new process
DEBUG: launched syntool to check active desktop
DEBUG: adopting new buffer
@luser
luser / irccloud_gif.user.js
Created April 10, 2015 17:31
IRCCloud /gif command
function getGIF(words) {
return new Promise(function(resolve, reject) {
var req = new XMLHttpRequest();
req.responseType = "json";
req.onload = function() {
if (req.response.meta.status != 200 ||
!req.response.data.hasOwnProperty('images')) {
reject("Failed");
} else {
resolve(req.response.data.images.downsized.url);
@luser
luser / gist:062d1ff93cf9bfa68232
Created April 21, 2015 18:55
x desktop stuff
xprop -root -notype _NET_DESKTOP_GEOMETRY
xprop -root -notype _NET_DESKTOP_VIEWPORT
xprop -root -notype _NET_NUMBER_OF_DESKTOPS
xwininfo -root | grep geometry
// g++ -o gtk-simple gtk-simple.cpp `pkg-config --libs --cflags gtk+-2.0`
#include <gtk/gtk.h>
int main( int argc, char *argv[])
{
GtkWidget *window;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
Not using buckd because watchman isn't installed.
[-] PARSING BUCK FILES...FINISHED 0.0s
Creating a build with 10 threads.
BUILT //:system_libs (1/102 JOBS)
BUILT //:rr#default,header-symlink-tree (3/102 JOBS)
BUILT //:headers (4/102 JOBS)
BUILT //:headers#default,exported-header-symlink-tree (4/102 JOBS)
BUILT //:generate_syscalls (5/102 JOBS)
BUILT //:gen_SyscallEnumsForTestsX86.h (6/102 JOBS)
BUILT //:gen_AssemblyTemplates.h (7/102 JOBS)
[2015-05-01 11:27:16.010][debug][command:c1965204-3ace-4e14-b6d6-7302b889b680][tid:01][com.facebook.buck.cli.Main] Starting up (build date 2015-05-01 10:55:52 -0400, rev 402d6b7e5365daec5cf93a05589e1a74b1200b88), args: [build, --verbose=10, :rr]
[2015-05-01 11:27:16.069][debug][command:c1965204-3ace-4e14-b6d6-7302b889b680][tid:01][com.facebook.buck.io.ExecutableFinder] Executable 'python2' mapped to 'Optional.of(/usr/bin/python2)'
[2015-05-01 11:27:16.130][debug][command:c1965204-3ace-4e14-b6d6-7302b889b680][tid:01][com.facebook.buck.cxx.CxxPlatforms] Using system default C++ platform CxxPlatform{flavor=default, as=com.facebook.buck.cxx.HashedFileTool@1a3869f4, asflags=[], aspp=com.facebook.buck.cxx.HashedFileTool@a38d7a3, asppflags=[], cc=com.facebook.buck.cxx.HashedFileTool@77f99a05, cflags=[], cxx=com.facebook.buck.cxx.HashedFileTool@63440df3, cxxflags=[], cpp=com.facebook.buck.cxx.HashedFileTool@3aeaafa6, cppflags=[], cxxpp=com.facebook.buck.cxx.HashedFileTool@76a3e297, cxxppflags=[], cxxld=com.facebook.b