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
Set objShell = CreateObject("Shell.Application") | |
' Kill snipaste.exe | |
objShell.ShellExecute "cmd.exe", "/c taskkill /f /im snipaste.exe", "", "runas", 0 | |
' Start snipaste.exe, adjust the path as necessary | |
objShell.ShellExecute "Snipaste.exe", "", "" |
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 argparse | |
import base64 | |
import hashlib | |
import json | |
import math | |
import os | |
import struct | |
import time |
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
// ==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 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
#!/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
#!/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
#!/usr/bin/env python3 | |
import re | |
from multiprocessing import Pool | |
from Bio import SeqIO | |
from Bio.Seq import Seq | |
import click | |
from pathlib import Path | |
import pandas as pd | |
import numpy as np |
NewerOlder