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/env python3 | |
import argparse | |
import re | |
from pyfaidx import Fasta | |
mainchr_re = re.compile(r"chr[0-9XY]{1,2}$") | |
pam_re = re.compile(r"(?=(.GG))") | |
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 Nature Article Journal Modifier for Google Search | |
// @namespace http://tampermonkey.net/ | |
// @version 1.3 | |
// @description Modify Nature article titles in Google Search results to display their journal names, using Fetch API | |
// @author tttpob | |
// @match https://www.google.com/search?* | |
// @grant none | |
// ==/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
#!/usr/bin/env python3 | |
import os | |
import re | |
def parse_podman_service(service_content): | |
result = {"name": None, "ip": None} | |
if not re.search(r'^ExecStart=(/usr/bin/podman|podman)\s', service_content, re.MULTILINE): | |
return result | |
ip_match = re.search(r'--ip(\s+|=)(\d+\.\d+\.\d+\.\d+)', service_content) | |
name_match = re.search(r'(?:--name|-n)(\s+|=)([\w-]+)', service_content) |
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 Claude Equation Renderer | |
// @namespace http://tampermonkey.net/ | |
// @author tpob | |
// @downloadURL https://gist.github.com/TTTPOB/84ea9ece3ec640414416649fae09ff04/raw/script.js | |
// @updateURL https://gist.github.com/TTTPOB/84ea9ece3ec640414416649fae09ff04/raw/script.js | |
// @version 0.0.2 | |
// @description Renders LaTeX equations in claude | |
// @match https://claude.ai/chat/* | |
// @grant none |
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/env python | |
import os | |
import sys | |
def eprint(*args, **kwargs): | |
print(*args, file=sys.stderr, **kwargs) | |
def find_marker_dir(start_path, markers): |
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
DOMAIN-SUFFIX,aadrm.com | |
DOMAIN-SUFFIX,acompli.com | |
DOMAIN-SUFFIX,acompli.net | |
DOMAIN-SUFFIX,aka.ms | |
DOMAIN-SUFFIX,akadns.net | |
DOMAIN-SUFFIX,aspnetcdn.com | |
DOMAIN-SUFFIX,assets-yammer.com | |
DOMAIN-SUFFIX,azure.com | |
DOMAIN-SUFFIX,azure.net | |
DOMAIN-SUFFIX,azureedge.net |
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/env python3 | |
import gzip | |
import sys | |
from pathlib import Path | |
def get_gene_lines(path: str): | |
with gzip.open(path, "rt") as f: | |
for l in f: | |
if l.startswith("##"): |
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
# scrollbar args | |
$scrollbar_args = "--enable-features=OverlayScrollbar,OverlayScrollbarWinStyle,OverlayScrollbarWinStyleAnimation" | |
# ms edge lnk path | |
$desktop_lnk = "C:\Users\Public\Desktop\Microsoft Edge.lnk" | |
$start_lnk = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" | |
# registry path | |
$reg_path = "HKCR\MSEdgeHTM\shell" |
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
# save this script somewhere and invoke it in shell.nix shellHook | |
# it will read current r and radian path and write it to vscode | |
# workspace settings | |
# jq required | |
settings=.vscode/settings.json | |
mkdir -p .vscode | |
echo '{}' > $settings | |
rpath_exsits=$(cat $settings|jq '."r.rpath.linux"') | |
rterm_exsits=$(cat $settings|jq '."r.rterm.linux"') | |
not_exsist="null" |
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/env python3 | |
from urllib import request | |
import sys | |
import json | |
TOKEN="16181xxxxx:xxxxxxxxxxxxxxx" | |
CHAT="-100118639xxxx" | |
TEXT=sys.argv[1] | |
SERVER="what ever name you want" |
NewerOlder