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 No turbo on GitHub | |
// @match https://github.com/* | |
// @grant none | |
// @version 1.0 | |
// @author SeongChan Lee <[email protected]> | |
// @run-at document-start | |
// ==/UserScript== | |
async function waitFor(root, selector) { |
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 Google was a web search engine | |
// @description Redirect to new Google Web search page | |
// @match https://www.google.com/search* | |
// @run-at document-start | |
// @updateURL https://gist.github.com/foriequal0/32290e22f59e6c7c6ff524c46716eae2/raw/google-was-a-web-search-engine.user.js | |
// @version 0.0.1 | |
// ==/UserScript== | |
const KEY = "$__google-was-a-web-search-engine"; |
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 Scroll to current file for GitHub | |
// @match https://github.com/* | |
// @version 4 | |
// ==/UserScript== | |
function check(callback) { | |
const result = callback(); | |
if (!result) { | |
throw new Error("assertion Failed: "+ callback.toString()); |
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
from dataclasses import dataclass | |
import re | |
import os | |
import sys | |
import winreg | |
from win32comext.shell import shell | |
@dataclass |
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
Top | |
* B+ : Red(Thick) | |
* T : Black/Copper | |
* B- : Black(Thick) | |
* LFB- : Green | |
* R : Black/Red | |
* LFB+ : White | |
* LDRV+ : Red/Teal |
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
use std::fs::File; | |
use std::io::{Read, Write}; | |
use std::net::{TcpListener, TcpStream}; | |
use rand::Rng; | |
use stream_httparse::streaming_parser::ReqParser; | |
fn main() -> std::io::Result<()>{ | |
let listener = TcpListener::bind("127.0.0.1:8080")?; | |
for stream in listener.incoming() { |
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
# ~/.config/user-tmpfiles.d/podman-docker.conf | |
L+ %t/docker.sock - - - - %t/podman/podman.sock |
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
#!/usr/bin/bash | |
set -euo pipefail | |
git shortlog -s | cut -c8- | while read -r AUTHOR; do | |
git log --author="$AUTHOR" --pretty=tformat: --numstat --ignore-all-space -- . \ | |
| gawk -v AUTHOR="$AUTHOR" '{ add += $1; subs += $2; } END { printf "%s, %s, %s\n", AUTHOR, add, subs }' - | |
done |
NewerOlder