This file contains hidden or 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 Wikipedia IPA ipa-reader.com Links | |
| // @namespace http://rakslice.net/userscripts/wikipedia-ipa-reader-links | |
| // @version 3.2 | |
| // @description Finds Wikipedia's native IPA elements and appends ipa-reader.com link (with language choice if available) | |
| // @author rakslice | |
| // @match https://en.wikipedia.org/wiki/* | |
| // @grant none | |
| // @run-at document-end | |
| // ==/UserScript== |
This file contains hidden or 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/sh | |
| # /usr/libexec/ifupdown-ng/rfkillcheck | |
| rfkill_iface=wlan0 | |
| rfkill_file=/sys/class/rfkill/rfkill1/soft | |
| check() { | |
| if [ "$IFACE" = "$rfkill_iface" ] && [ "$PHASE" = "pre-up" ]; then | |
This file contains hidden or 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 make mastodon links internal | |
| // @namespace http://rakslice.net/userscripts/mastodon_internal_links | |
| // @version 2024-08-05 | |
| // @description within the mastodon advanced UI, make links to other posts on external sites instead link to the post within the UI | |
| // @author You | |
| // @match https://mastodon.social/deck/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=mastodon.social | |
| // @grant none | |
| // @require http://code.jquery.com/jquery-3.4.1.min.js |
This file contains hidden or 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 remap home and end for downshift | |
| // @namespace http://rakslice.net/userscripts/remap_downshift_home_and_end | |
| // @version 2024-08-06 | |
| // @description remap home and end for braindead downshift search combo box behaviour on MDN | |
| // @author rakslice | |
| // @match https://developer.mozilla.org/* | |
| // @grant none | |
| // @require https://code.jquery.com/jquery-3.7.1.min.js | |
| // ==/UserScript== |
This file contains hidden or 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 <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <string> | |
| #include <queue> | |
| #include <tuple> | |
| #include <map> | |
| using namespace std; |
This file contains hidden or 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
| def contents(filename): | |
| with open(filename, "r") as handle: | |
| return handle.read() | |
| memo = {} | |
| def solver_rec(puz, scores): | |
| key = puz, tuple(scores) |
This file contains hidden or 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
| import collections | |
| def contents(filename): | |
| with open(filename, "r") as handle: | |
| return handle.read() | |
| def bin_cards(hand, part): | |
| p = collections.Counter() |
This file contains hidden or 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
| javascript: (() => { var prefix="https://archive.is/newest/"; var wlh = window.location.href; if (!wlh.startsWith(prefix) && (!wlh.startsWith("https://archive.ph/"))) { window.location.href = prefix + wlh.split("?",1)[0]; } })(); |
This file contains hidden or 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/sh | |
| set -e | |
| set -x | |
| # idle hlt monkey patch for old solaris x86 | |
| # based on ian northeast's alt.solaris.x86 post from 2003 | |
| # https://groups.google.com/g/alt.solaris.x86/c/eCi8GKouFqg/m/jCnUnhhN7X4J | |
| readval() # Usage: readval {adb address and verb} {type modifier} | |
| { |
This file contains hidden or 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 | |
| # A script to put together and build fujitsu_scroll modified psmouse module on alpine | |
| if [ ! -d ~/src/aports ]; then | |
| echo "error: you need an aports checkout to get the current kernel source" | |
| exit 1 | |
| fi |
NewerOlder