Skip to content

Instantly share code, notes, and snippets.

@amanjuman
amanjuman / derper
Last active May 8, 2025 16:49
TailScale Derper Install on Linux
## Download Go
sudo wget --output-document /opt/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
## Remove Existing Go and Extract Downloaded Go
sudo rm -rf /usr/local/go && sudo tar --directory /usr/local --extract --gzip --file /opt/go.tar.gz && sudo rm /opt/go.tar.gz
## Delete & Recreate user for Derper
id -u derp &>/dev/null || sudo useradd --system --create-home --home-dir /opt/derp --shell /bin/bash derp
## Export Profile path
@inkss
inkss / #readme.md
Last active May 13, 2025 03:16
IPV6 直播源

个人向直播源

精简了上游直播源内容,仅保留个人所需的。

一、订阅地址

TVM3U

https://gist.githubusercontent.com/inkss/0cf33e9f52fbb1f91bc5eb0144e504cf/raw/ipv6.m3u
@IceLitty
IceLitty / PowerToys_plugins_update_log.md
Last active June 28, 2022 09:24
Update Everything and WebSearch plugins for PowerToys v0.57.2

English

  1. PowerToys throws exception when close PowerToys Run, we can get log files location in %appdata%\..\Local\Microsoft\PowerToys\PowerToys Run\Logs\0.57.2.0\. Open PowerToys Run will active these broken plugins, log system will print detail in these file.
    [2022-04-21 19:49:00.7245] [ERROR] [C:\a\_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::154]
    -------------------------- Begin exception --------------------------
    Message: Couldn't get assembly types for Everything in C:\Program Files\PowerToys\modules\launcher\Plugins\Community.PowerToys.Run.Plugin.Everything\Community.PowerToys.Run.Plugin.Everything.dll. The plugin might be corrupted. Uninstall PowerToys, manually delete the install folder and reinstall.
    
    Exception full name  : System.Reflection.ReflectionTypeLoadException
    Exception message    : Unable to load one or more of the requested types.
    
@maxkostinevich
maxkostinevich / index.html
Last active March 28, 2025 02:30
Cloudflare Worker - Handle Contact Form
<!--
/*
* Serverless contact form handler for Cloudflare Workers.
* Emails are sent via Mailgun.
*
* Learn more at https://maxkostinevich.com/blog/serverless-contact-form
* Live demo: https://codesandbox.io/s/serverless-contact-form-example-x0neb
*
* (c) Max Kostinevich / https://maxkostinevich.com
*/
@chenshengzhi
chenshengzhi / git_ssh_proxy.md
Last active April 23, 2025 01:03
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://git.521000.best.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086
@bitmingw
bitmingw / git_batch_resolver.py
Last active September 18, 2023 08:20
Batch script to resolve large git conflicts.
#!/usr/bin/env python3
"""
Author: Ming Wen ([email protected])
When resolving conflicts on a merge or rebase, this script
automates `git add/rm` and `git checkout` with --ours or --theirs
for a large batch of changes.
Usage: `python3 git_batch_resolver.py` in your git repository.
@AlexMAS
AlexMAS / ProcessAsyncHelper.cs
Last active September 30, 2024 04:25
The right way to run external process in .NET (async version)
using System;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
public static class ProcessAsyncHelper
{
public static async Task<ProcessResult> ExecuteShellCommand(string command, string arguments, int timeout)
{
var result = new ProcessResult();