Skip to content

Instantly share code, notes, and snippets.

View xja's full-sized avatar

xja

View GitHub Profile
@emschwartz
emschwartz / README.md
Last active February 25, 2026 00:44
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active February 7, 2026 04:28
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@tinkernels
tinkernels / 0-tcp_bbrplus.md
Last active August 30, 2023 13:32
patch tcp_bbr with bbr_drain_to_target_cycling (bbrplus)
@mzpqnxow
mzpqnxow / DiscordSOCKS5.md
Created August 24, 2020 04:45
Use SOCKS5 proxy with Discord on Linux

Using SOCKS5 Proxy With Discord on Linux

You may only need the environment or the command-line parameter to force Discord to use a proxy. It doesn't hurt to use both

So if you're behind a firewall and need to go through, e.g. an SSH dynamic port forward (a SOCKS5 channel inside an SSH session) you can use the following:

$ nohup ssh -D1080 proxy_server &
$ http_proxy=socks5://127.0.0.1:1080 https_proxy=socks5://127.0.0.1:1080 /opt/Discord/Discord --proxy-server="socks5://127.0.0.1:1080"
@oofnikj
oofnikj / answerfile
Last active February 23, 2026 12:40
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@likeablob
likeablob / 01-yet-another-minicap-python3-client.md
Last active April 4, 2025 11:23
A simple minicap client with python3

minicap-python3-client

minicap installation

Plan A: Use minicap-prebuilt

$ npm init -y
$ npm i -S minicap-prebuilt
$ ls node_modules/minicap-prebuilt/prebuilt/
@jackdesert
jackdesert / gist:3015200944599fe2f13853287ad4e670
Created July 10, 2018 14:00
pip install uwsgi - python3_plugin.so no found
# Install System-wide
sudo apt install -y uwsgi-core uwsgi-plugin-python3
# Run system uwsgi: this works!
$ cd ~/myproject
$ uwsgi --ini production.ini
[uWSGI] getting INI configuration from production.ini
# Install uwsgi via pip
@thomaswieland
thomaswieland / gist:3cac92843896040b11c4635f7bf61cfb
Created February 17, 2018 13:56
Python: IMAP IDLE with imaplib2
import imaplib2, time
from threading import *
# This is the threading object that does all the waiting on
# the event
class Idler(object):
def __init__(self, conn):
self.thread = Thread(target=self.idle)
self.M = conn
self.event = Event()
@corona6
corona6 / README.md
Last active November 15, 2024 15:54
delete unused resources/revisions/tags for Joplin https://github.com/corona6/joplinclean
@nrollr
nrollr / nginx.conf
Last active January 20, 2026 14:16
NGINX config for SSL with Let's Encrypt certs
# UPDATED 17 February 2019
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
listen [::]:80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
}
# SSL configuration