Skip to content

Instantly share code, notes, and snippets.

View rien333's full-sized avatar

Rijnder Wever rien333

View GitHub Profile
$ brew config
-----------------------
HOMEBREW_VERSION: 1.2.3
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: ed9942fbd1ec4243f0a92ab8f9b2411c8b1fb091
Last commit: 11 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 8fe0247635d6720deee9dfa9d0c72be36a7c6a4a
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
@rien333
rien333 / # mplayer - 2017-06-23_13-43-41.txt
Created June 23, 2017 11:48
mplayer on macOS 10.12.5 - Homebrew build logs
Homebrew build logs for mplayer on macOS 10.12.5
Build date: 2017-06-23 13:43:41
@rien333
rien333 / # picoc - 2017-08-13_20-08-25.txt
Created August 13, 2017 18:10
picoc on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for picoc on macOS 10.12.6
Build date: 2017-08-13 20:08:25
youtube-dl --verbose --cookies cookies.txt 'https://www.twitch.tv/videos/176220025'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'--cookies', u'cookies.txt', u'https://www.twitch.tv/videos/176220025']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.09.15
[debug] Python version 2.7.10 - Darwin-16.7.0-x86_64-i386-64bit
[debug] exe versions: avconv 12.1, avprobe 12.1, ffmpeg 3.3.4, ffprobe 3.3.4, rtmpdump 2.4
[debug] Proxy map: {}
@rien333
rien333 / live-ascii-andriod.py
Last active December 6, 2017 15:55
ascii live art on an andriod phone
import numpy as np
from scipy.misc import imresize
from PIL import Image
from os import system
from time import sleep
# Method to convert images(/image buffers?) to ascii art
# Change this to either use a shared library (.so) file or the python img2txt module
# stolen from img2txt.generate_grayscale_for_image
def img2ascii(pixels, height, width):
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
defaults write -g NSScrollAnimationEnabled -bool false
defaults write -g NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write -g NSScrollViewRubberbanding -bool false
defaults write -g NSDocumentRevisionsWindowTransformAnimation -bool false
defaults write -g NSToolbarFullScreenAnimationDuration -float 0
defaults write -g NSBrowserColumnAnimationSpeedMultiplier -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock autohide-delay -float 0
@rien333
rien333 / observer.m
Created January 22, 2018 23:25
Command-line app that tells a bitbar chunkwm plugin to refresh when the user changes spaces
#import <Cocoa/Cocoa.h>
@interface SpaceChangeNotifier : NSObject
- (void) registerNotifier;
- (void)spaceChanged:(NSNotification *)aNotification;
@end
@implementation SpaceChangeNotifier
- (id) init
@rien333
rien333 / observer.m
Last active January 22, 2018 23:43
Command-line app that tells a bitbar chunkwm plugin to refresh whenever the user changes spaces
#import <Cocoa/Cocoa.h>
@interface SpaceChangeNotifier : NSObject
- (void) registerNotifier;
- (void)spaceChanged:(NSNotification *)aNotification;
@end
@implementation SpaceChangeNotifier
- (id) init
#!/bin/bash
xidfile="/run/user/"$(id -u)"/zathura-tabbed.xid"
wmclass="zathura-tabbed"
xid=$(cat "$xidfile") && xprop -id "$xid"
read xid < <(tabbed -cd -n "$wmclass" -p -1 2> /dev/null)
wmctrl -i -r "$xid" -b add,maximized_vert,maximized_horz
echo "$xid" > "$xidfile"
This file has been truncated, but you can view the full file.
8523 15:46:03 execve("/usr/bin/mpv", ["mpv", "--no-config", "--log-file=mpv_is_slow", "--no-audio", "--vo=gpu", "--no-resume-playback", "Casiotone for the Painfully Alon"...], 0x7ffc30f1bac8 /* 32 vars */) = 0 <0.000696>
8523 15:46:03 brk(NULL) = 0x55a11421f000 <0.000178>
8523 15:46:03 arch_prctl(0x3001 /* ARCH_??? */, 0x7ffce9274700) = -1 EINVAL (Invalid argument) <0.000018>
8523 15:46:03 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) <0.000142>
8523 15:46:03 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 <0.000154>
8523 15:46:03 fstat(3, {st_mode=S_IFREG|0644, st_size=243746, ...}) = 0 <0.000141>
8523 15:46:03 mmap(NULL, 243746, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fea9f586000 <0.000029>
8523 15:46:03 close(3) = 0 <0.000121>
8523 15:46:03 openat(AT_FDCWD, "/usr/lib/libshaderc_shared.so.1", O_RDONLY|O_CLOEXEC) = 3 <0.000186>
8523 15:46:03 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 P\0\0\0\0\0\0"..., 832) = 832 <0.00