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
// ==UserScript== | |
// @name Twitch Prime Reminder | |
// @namespace http://fugiman.com | |
// @version 1.1 | |
// @description Adds a reminder of who you used your Twitch Prime sub on and when it expires to the Subscribe button modal | |
// @match https://www.twitch.tv/* | |
// ==/UserScript== | |
// original at https://greasyfork.org/en/scripts/30821-twitch-prime-reminder |
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
#!/usr/bin/python | |
""" Find the /sys/bus/usb/devices subdirectory for a device """ | |
import argparse | |
import os | |
import sys | |
DEVICES_DIR="/sys/bus/usb/devices" |
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
$ git diff | |
diff --git a/webview.h b/webview.h | |
index 61f7146..5847ac8 100644 | |
--- a/webview.h | |
+++ b/webview.h | |
@@ -1244,6 +1244,7 @@ WEBVIEW_API int webview_init(struct webview *w) { | |
return -1; | |
} | |
+ SetWindowLong(w->priv.hwnd, GWL_STYLE, WS_DLGFRAME); |
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
# A Soarer's Converter configuration for the NCD N-107 keyboard | |
# https://archive.org/details/bitsavers_ncd9300584nualOct1997_1647905/page/n469 | |
# (which is a PS/2 keyboard with a Sun Type 4 style layout) | |
force set3 | |
remapblock | |
# Main keyboard area | |
INTERNATIONAL_1 BACKSLASH |
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/bash | |
set -e | |
# Convert vtt transcript to text | |
# For use with e.g. youtube-dl --write-auto-sub --skip-download $URL | |
tail -n +4 | sed 's/<c>//g' | sed 's/<[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9]>//g' | sed 's/<\/c>//g' | sed '/[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9] --> [0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9] align.*/d' | sed '/^\s*$/d' | uniq |
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
// ==UserScript== | |
// @name google news opinion remover | |
// @namespace http://rakslice.net/userscripts/google-news-opinion-remover | |
// @version 0.1 | |
// @description remove google news opinion articles | |
// @author You | |
// @match https://news.google.com/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// ==/UserScript== |
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
_realname=sheepshaver | |
pkgbase=mingw-w64-${_realname} | |
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" | |
pkgver=2.5 | |
pkgrel=1 | |
pkgdesc="an open-source PowerPC Apple Macintosh emulator (mingw-w64)" | |
arch=('any') | |
url="https://sheepshaver.cebix.net/" | |
license=("GPL") | |
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" |
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
#include <stdio.h> | |
#include <new> | |
class Foo { | |
int i; | |
int j; | |
public: | |
Foo() { | |
printf("The Foo at %p is constructing\n", this); | |
i = 1; |
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
/** | |
A program for testing InsTime/RmvTime cycles during timer events | |
Reading list: | |
- Inside Macintosh: Processes, Ch. 3 Time Manager, Using the Time Manager | |
To use, in THINK C 5.x |
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
#!/usr/bin/python3 | |
import dbus | |
import sys | |
import subprocess | |
from gi.repository import GLib | |
from dbus.mainloop.glib import DBusGMainLoop |
OlderNewer