Skip to content

Instantly share code, notes, and snippets.

@takpika
takpika / extract.py
Created June 11, 2025 12:15
DeepWiki Extractor
import requests
from bs4 import BeautifulSoup
import re
import sys
def extract_next_f_push_args(url: str) -> list[str]:
# HTML取得
res = requests.get(url)
res.raise_for_status()
html = res.text
@almahmudbd
almahmudbd / browser-userscript-list.md
Last active March 18, 2026 04:04
some useful Userscript collection, can be used with a browser and tamper/violent monkey extension
@n0samu
n0samu / web-archival-guide.md
Last active April 21, 2026 08:41
Essential tips for web archiving.

In this brief guide, I will share what I've learned about archiving live webpages and recovering deleted webpages using various archive services.

Before you start

I highly recommend installing the Web Archives extension in your web browser (Chrome, Firefox). It provides quick access to archive services and search engine caches.

Overview of archive services & caches

  • Wayback Machine: Best and largest webpage archive. You probably already use it. Wayback Machine is the only archival service that also performs automated crawling, so its coverage is much better than other archives. See usage tips on Wikipedia.
  • Archive.today (also known as Archive.is): A mid-sized service that takes
@jackcarey
jackcarey / youtube-playlist-cleanser.user.js
Last active July 3, 2025 11:22
YouTube Playlist Cleanser UserScript
// ==UserScript==
// @name Youtube Playlist Cleanser
// @version 2.4.1
// @description Removes watched videos from playlist either by %watched, date or all
// @author jackcarey / js6pak
// @match http*://*.youtube.com/*
// @match http*://youtube.com/*
// @run-at document-idle
// @homepageURL https://gist.github.com/jackcarey/ab8b23ebba87f3cf8d0ac4a2fa45eefc
// @downloadURL https://gist.github.com/jackcarey/ab8b23ebba87f3cf8d0ac4a2fa45eefc/raw/youtube-playlist-cleanser.user.js
@0xdevalias
0xdevalias / decompile-apple-shortcuts.md
Last active April 29, 2026 17:14
A few notes on decompiling Apple Shortcuts workflows into their raw XML 'source code'.
@siayi
siayi / Quickly extract tar gz files Windows 10.md
Last active April 30, 2025 19:08
Quickly extract .tar.gz files on Windows 10

Extract .tar.gz, .tgz, or .gz tarballs using tar on Windows 10

To extract .tar.gz, .tgz, .gz as well as .zip files using tar on Windows 10, use these steps:

  1. Open Start on Windows 10.
  2. Search for Command Prompt, right-click the first result and select the Run as administrator option.
  3. Type the following command to use tar to extract the files and press Enter:
tar -xvzf C:\PATH\TO\FILE\FILE-NAME.tar.gz -C C:\PATH\TO\FOLDER\EXTRACTION
@sidneys
sidneys / de.sidneys.userscripts.reddit.expand-all-comments.js
Last active January 26, 2025 09:11
Userscript | Reddit | Expand All Comments
// ==UserScript==
// @name Reddit | Expand All Comments
// @namespace de.sidneys.userscripts
// @homepage https://gist.githubusercontent.com/sidneys/759bdb70442597638d63c4ed170020c9/raw/
// @version 1.0.0
// @description Automatically expands all comment replies within Reddit threads
// @author sidneys
// @icon https://www.redditstatic.com/desktop2x/img/favicon/apple-icon-180x180.png
// @include http*://www.reddit.com/*/comments/*
// @require https://greasyfork.org/scripts/38888-greasemonkey-color-log/code/Greasemonkey%20%7C%20Color%20Log.js
@goyalmohit
goyalmohit / install-powershell-core-on-centos-7.sh
Last active August 22, 2024 01:26
Install PowerShell Core on CentOS 7
# Enter superuser mode
sudo su
# Register the Microsoft RedHat repository
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/microsoft.repo
# Exit superuser mode
exit
# Install PowerShell
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active April 3, 2026 20:16
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \