Skip to content

Instantly share code, notes, and snippets.

View lwd-temp's full-sized avatar
💭
I may be slow to respond.

Sunset Mikoto lwd-temp

💭
I may be slow to respond.
View GitHub Profile
@lwd-temp
lwd-temp / hidetidio.js
Created May 7, 2024 23:42 — forked from arafathusayn/hidetidio.js
Hide TidioChat Branding (for new theme)
function hideTdo() {
var timer = null;
var target = document.querySelector('#tidio-chat iframe');
if(!target) {
if(timer !== null) {
clearTimeout(timer);
}
timer = setTimeout(hideTdo, 500);
return;
} else {
@lwd-temp
lwd-temp / donate_xmr.txt
Last active April 27, 2024 11:56
捐赠门罗币/Donate XMR
monero:84oD8Ldx9U29e12FwoJ2ohYEYjQEJV3E9EovgSvMVHB2446vTRRyQp6TTgeMBwTAWPEuQcpo4FnPF9Ax62WJp9h7Hn76oLU?recipient_name=Sunset%20Mikoto&tx_description=Donation
@lwd-temp
lwd-temp / InstallZeroTier.ps1
Created April 11, 2024 13:49 — forked from wise-io/InstallZeroTier.ps1
Installs Latest ZeroTier One Client
<#
.SYNOPSIS
Installs ZeroTier
.DESCRIPTION
Install ZeroTier and join/configure ZeroTier network
.EXAMPLE
./ios-InstallZeroTier.ps1
.NOTES
This script will install PowerShell 7 if it is not present.
A UAC prompt will appear during install if -UI is used.
@lwd-temp
lwd-temp / xz-backdoor.md
Created March 30, 2024 15:08 — forked from thesamesam/xz-backdoor.md
xz-utils backdoor situation

FAQ on the xz-utils backdoor

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that gives developers lossless compression. This package is commonly used for compressing release tarballs, software packages, kernel images, and initramfs images. It is very widely distributed, statistically your average Linux or macOS system will have it installed for

@lwd-temp
lwd-temp / web-servers.md
Created March 25, 2024 13:53 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@lwd-temp
lwd-temp / ipv6-regex-test.sh
Created February 28, 2024 13:57 — forked from syzdek/ipv6-regex-test.sh
Simple script to test my IPv6 regular expression.
#!/bin/sh
#
# Use posixregex CLI tool from: https://github.com/syzdek/dmstools/blob/master/src/posixregex.c
RE_IPV4="((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
posixregex -r "^(${RE_IPV4})$" \
127.0.0.1 \
10.0.0.1 \
192.168.1.1 \
@lwd-temp
lwd-temp / bootloader_miui.java
Created November 23, 2023 10:33 — forked from sopanatx/bootloader_miui.java
Xiaomi Bootloader Bind API
package com.android.settings.bootloader;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
import com.android.settings.AESUtil;
import com.android.settings.bootloader.Utils;
@lwd-temp
lwd-temp / emeditor.key
Created November 21, 2023 04:01 — forked from cdseoo/emeditor.key
emeditor v22 lifetime key
DEMZF-UCKEE-HB222-DJDDH-594U5
DMAZF-UCKEE-A6222-8CADP-HQZ7H
DPAZF-UCKEE-FH222-ET546-DLRGT
DRNZF-UCKEE-UK222-RWNLU-XVZH7
DSBZF-UCKEE-BF222-K24JB-S9JLC
DSHZF-UCKEE-D3222-NMB93-UKSQF
DTHZF-UCKEE-BW222-Q2BKZ-NXPU8
DVAZF-UCKEE-J7222-5UHCT-QSRFE
DVEZF-UCKEE-PR222-ZAPFE-4C49Q
@lwd-temp
lwd-temp / Genshin Impact.yaml
Created November 17, 2023 14:29 — forked from yushum/Genshin Impact.yaml
Config for Clash.Meta
- GEOSITE,hoyoverse,Genshin Impact
- DOMAIN,overseauspider.yuanshen.com,Genshin Impact
- DOMAIN,dispatchosglobal.yuanshen.com,Genshin Impact
- DOMAIN,osasiadispatch.yuanshen.com,Genshin Impact
- DOMAIN,oseurodispatch.yuanshen.com,Genshin Impact
- DOMAIN,osusadispatch.yuanshen.com,Genshin Impact
- AND,((DST-PORT,22101-22102),(NETWORK,UDP)),Genshin Impact
# Update
- DOMAIN,autopatchhk.yuanshen.com,Genshin Impact
@lwd-temp
lwd-temp / read.ps1
Created November 2, 2023 03:52 — forked from MadeBaruna/read.ps1
$code = @"
using System;
using System.Runtime.InteropServices;
using System.Text;
public class ClipboardGetter
{
#region Win32 Native PInvoke
[DllImport("User32.dll", SetLastError = true)]