Skip to content

Instantly share code, notes, and snippets.

@Theigrams
Theigrams / clash_api.py
Created November 18, 2023 16:04
Clash API controlled through Python
import json
import requests
class ClashAPI:
def __init__(self, base_url, secret):
self.base_url = base_url
self.secret = secret
self.headers = {

=== System Messages ===

You are Amp, a powerful AI coding agent built by Sourcegraph. You help the user with software engineering tasks. Use the instructions below and the tools available to you to help the user.

Agency

The user will primarily request you perform software engineering tasks, but you should do your best to help with any task requested of you.

Android Developer Verification Discourse

On August 25, 2025 Google published a blog that starting in 2026, Android will require all apps to be registered by verified developers in order to be installed by users on certified Android devices. This applies to all apps installed from outside the Google PlayStore from either third part app stores like F-Droid, or directly from sites via browsers/file manager apps. Publishing apps on Google PlayStore already has had these same requirements since July 12, 2023. The verification requirements for all apps will engage for Brazil, Indonesia, Singapore and Thailand in September 2026 and engage globally in 2027 and beyond.

There has been lot of noise and backlash regarding the new requirements since then. Malware being deployed both outside and from PlayStore is a big issue and is obviously a cause for concern and a legitimate reason for how developer verification can help reduce it,

@rajibdpi
rajibdpi / Office 2019 Professional Plus Product Key
Last active November 12, 2025 06:12 — forked from moonsbtt/Office 2019 Professional Plus Product Key
Office 2019 Professional Plus Product Key
New Methiod to Activate Windows/MS Office 2010/2013/2016/2019
If you have already intalled MS Office Or Download from bellow link
Download setup file for MS Office Pro Plus 2019 https://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-us/ProPlus2019Retail.img
Activate Windows / Office ?
📌PowerShell Method For Windows 8, 10, 11:
Click the Start Menu, type PowerShell, then open it.
Copy and paste the code below, then press enter.
irm https://get.activated.win | iex
@wong2
wong2 / claude-code-tools.md
Last active November 12, 2025 06:09
Tools and system prompt of Claude Code

Task

Launch a new agent that has access to the following tools: Bash, Glob, Grep, LS, exit_plan_mode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoRead, TodoWrite, WebSearch. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use the Agent tool to perform the search for you.

When to use the Agent tool:

  • If you are searching for a keyword like "config" or "logger", or for questions like "which file does X?", the Agent tool is strongly recommended

When NOT to use the Agent tool:

  • If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
  • If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
  • If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly
@CarlosUriass
CarlosUriass / Escpos-usb-fix.md
Created November 12, 2025 02:42
Fix: TypeError: usb.on is not a function (escpos-usb Node.js)

TypeError: usb.on is not a function

Al ejecutar el proyecto, se producía el siguiente error:

TypeError: usb.on is not a function

Este error ocurre porque en algunos entornos el objeto usb no implementa el método .on(), lo que provoca que al intentar suscribirse al evento "detach" se rompa la ejecución.

@tsukii-hoshino
tsukii-hoshino / SavingProfileZenBrowser.md
Last active November 12, 2025 06:04
Backup Essentials and Pinned Tabs of a Profile for Zen Browser

i took some information from the official docs of Zen Browser: here

You wanna change computer, or installing another OS, but Zen Browser doesn't save all the Pinned Tabs and Essentials that will surely be really tedious to setup all over again??

Worries not, I've got you covered!

1. locate your profile folder

go to about:profiles (type it into your address bar)
find your profile and look for the Root Directory

@rebane2001
rebane2001 / twitter-card-mod.js
Created November 11, 2025 14:32
Twitter Card Mod (paste into console)
twitterCardCount = 5;
function getNextTweets(count) {
const nextTweets = [...document.querySelectorAll("[data-testid='cellInnerDiv']:not(:has(>.HiddenTweet)) [data-testid='tweet']:not([data-twc-used])")].slice(0, count);
nextTweets.forEach(e => e.dataset.twcUsed = true);
return nextTweets;
}
function setStyle(styleText) {
let styleEl = document.querySelector(".twc-style");
@keichan34
keichan34 / README.md
Last active November 12, 2025 05:56
法務省データもろもろ
cp -r moj_data/ ./
mkdir all_zips
find . -name '*.zip' -maxdepth 1 | xargs -P 16 -I '{}' unzip '{}' -d ./all_zips

ここで all_zips に展開されたzipがある 次は任意座標と公共座標系を分ける

#if UNITY_EDITOR
using System;
using System.Reflection;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Little utility for opening a "Game" view in fullscreen. Will be opened on whatever Unity thinks is the "main"
/// monitor at the moment. The hotkey will toggle the window; however, if for some reason this breaks, fullscreen