Skip to content

Instantly share code, notes, and snippets.

@sumanthratna
sumanthratna / install-python.bash
Last active January 9, 2026 15:20
How to install Python 3 on Linux without sudo access.
# adapted from https://web.archive.org/web/20200514221628/https://randomwalk.in/python/2019/10/27/Install-Python-copy.html
wget https://www.python.org/ftp/python/3.6.10/Python-3.6.10.tgz
tar zxfv Python-3.6.10.tgz
rm Python-3.6.10.tgz
find ./Python-3.6.10/Python -type d | xargs chmod 0755
cd Python-3.6.10
./configure --prefix=$PWD/Python-3.6.10/Python
make
make install
export PATH=$CWD:$PATH # adds python3.6 to PATH

Problem

  1. Hackernews app export wasn't working for all my saved article.
  2. So I panicked

Solution

  1. adb shell 'pm list packages -f' | grep mater
  2. adb backup -f ~/backup.ab -noapk io.github.hidroh.materialistic
  3. ( printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 backup.ab ) | tar xfvz -
  4. Go to ~/apps/io.github.hidroh.materialistic/db
  5. sqlite3 Materialistic.db
@misak10
misak10 / singbox_substore.json
Last active January 9, 2026 15:16
singbox_substore配置
{
"dns": {
"servers": [
{
"tag": "google",
"type": "https",
"server": "8.8.8.8",
"detour": "Main"
},
{
@doobidoo
doobidoo / gist-README.md
Last active January 9, 2026 15:15
Universal Permission Request Hook for Claude Code - Auto-approve safe MCP tools (Now integrated in MCP Memory Service v8.73.0)

Universal Permission Request Hook for Claude Code

Auto-approves read-only MCP tools to eliminate constant permission dialogs.


🆕 Official Integration Update (January 2026)

This hook is now officially integrated into the MCP Memory Service project as of v8.73.0!

@JPersson77
JPersson77 / nVAppAppApp.ps1
Last active January 9, 2026 15:15
nVAppAppApp - workaround NVIDIA DLSS4 whitelisting
<# Workaround for NVIDIA's DLSS4 whitelisting
-------- WHAT IS THE BACKSTORY? --------
DLSS4 was launched alongside the RTX 5000 series and comprise several new and interesting
features, f.e. additional presets for Super Resolution, using a newer Transformer model.
Arguably these features increase image quality significantly. To various degrees these
features are also available for older RTX cards, and older games using DLSS3/2.
@dblume
dblume / convert_qfx_to_csv.py
Last active January 9, 2026 15:13
Convert Wealthfront's exported Quicken QFX format to CSV
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Converts Wealthfront's exported QFX to CSV.
# Thanks @egill512
# https://gist.github.com/whistler/e7c21c70d1cbb9c4b15d?permalink_comment_id=3296132#gistcomment-3296132
from csv import DictWriter
from glob import glob
import ofxparse
import requests
from bs4 import BeautifulSoup
import time
import re
import os
import concurrent.futures
def clean_text(text):
"""Quick cleaner"""
if not text:
<img src="https://img.shields.io/badge/-.ENV-ECD53F?style=flat&logo=dotenv&logoColor=white"/>
<img src="https://img.shields.io/badge/-.NET-512BD4?style=flat&logo=dotnet&logoColor=white"/>
<img src="https://img.shields.io/badge/-/e/-000000?style=flat&logo=e&logoColor=white"/>
<img src="https://img.shields.io/badge/-1001Tracklists-40AEF0?style=flat&logo=1001tracklists&logoColor=white"/>
<img src="https://img.shields.io/badge/-1Password-3B66BC?style=flat&logo=1password&logoColor=white"/>
<img src="https://img.shields.io/badge/-2K-DD0700?style=flat&logo=2k&logoColor=white"/>
<img src="https://img.shields.io/badge/-365 Data Science-000C1F?style=flat&logo=365datascience&logoColor=white"/>
<img src="https://img.shields.io/badge/-3M-FF0000?style=flat&logo=3m&logoColor=white"/>
<img src="https://img.shields.io/badge/-42-000000?style=flat&logo=42&logoColor=white"/>
<img src="https://img.shields.io/badge/-4chan-006600?style=flat&logo=4chan&logoColor=white"/>
@livecodelife
livecodelife / roo_workflow.md
Last active January 9, 2026 14:58
Roo Code Setup and Workflow for the best $0 development

Roo Code Workflow: An Advanced LLM-Powered Development Setup

This gist outlines a highly effective and cost-optimized workflow for software development using Roo Code, leveraging a multi-model approach. This setup has been successfully used to build working applications, such as Baccarat game simulations with betting strategy analysis, and my personal portfolio site.


Core Components & Model Allocation

The power of this setup lies in strategically assigning different Large Language Models (LLMs) to specialized "modes" within Roo Code, optimizing for performance, cost, and specific task requirements.