Skip to content

Instantly share code, notes, and snippets.

View erbanku's full-sized avatar
♥️
Focusing

Cactus erbanku

♥️
Focusing
View GitHub Profile
@erbanku
erbanku / System Timer.ahk
Created November 24, 2024 03:38
(Windows) Created by Cactus with ♥ using GitHub-CLI at Sun 11/24/2024 11:38 +08:00 (1732419486)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Persistent
#SingleInstance, Force
#NoEnv
#NoTrayIcon
@erbanku
erbanku / autohotkey-auto-clicker.ahk
Created November 24, 2024 03:37
(Windows) Created by Cactus with ♥ using GitHub-CLI at Sun 11/24/2024 11:37 +08:00 (1732419449)
#MaxThreadsPerHotkey 3
!^z::
Toggle := !Toggle
Loop
{
If (!Toggle)
Break
Click
Sleep 50 ; Make this number higher for slower clicks, lower for faster.
@erbanku
erbanku / mouse-and-keyboard-macro-recorder.ahk
Created November 24, 2024 03:34
(Windows) Created by Cactus with ♥ using GitHub-CLI at Sun 11/24/2024 11:34 +08:00 (1732419260)
;-----------------------------------
; Macro Recorder v2.1+ By FeiYue (modified by Speedmaster)
;
; Description: This script records the mouse
; and keyboard actions and then plays back.
;
; F1 --> Record(Screen) (CoordMode, Mouse, Screen)
; F2 --> Record(Window) (CoordMode, Mouse, Window)
; F3 --> Stop Record/Play
; F4 --> Play LogFile
@erbanku
erbanku / autohotkey-auto-clicker.ahk
Created August 6, 2024 01:40
autohotkey-auto-clicke
#MaxThreadsPerHotkey 3
^z:: ; Ctrl+Z to toggle
Toggle := !Toggle
Loop
{
If (!Toggle)
Break
Click
Sleep 50 ; Make this number higher for slower clicks, lower for faster.
document.body.innerHTML = "";$("html").css("overflow","hidden");$("body").append('<div id="topTitle" style="padding:20px;display:block;font-size:48px;color:#FFFFFF;background-color:#e2231a;width:100%;text-align:center">京东自动评价JS脚本 by Clarkent V0.3</div><iframe src="https://club.jd.com/myJdcomments/myJdcomment.action?sort=0" style="width:99%;height:800px" id="JDifr"></iframe>');$("#J-global-toolbar").remove();let isFiveStar = true;$("#topTitle").click(function(){(isFiveStar = !isFiveStar) ? $("#topTitle").css("background-color","#e2231a"):$("#topTitle").css("background-color","#8B0000");});let pendingNum = 1;let waitSubmitIds;let curId = 0;let maxCurId = 0;$("#JDifr").load(function(){if($("#JDifr").attr("src").indexOf("sort") > 0){pendingNum = ($("#JDifr").contents().find("a.text:first").siblings().length>0 && $("#JDifr").contents().find("a.text:first").attr("href")=="?sort=0")?parseInt($("#JDifr").contents().find("a.text:first").next().text()):0;waitSubmitIds = $("#JDifr").contents().find(".number").length>0?$

Unblock all blocked Twitter accounts at once

by Luca Hammer (Blog)

  • Update 21.04.2020: The code still works, but only if you set the account language to English.
  • Update 23.11.2019: There are reports that Twitter started to prevent the automated unblocking of accounts. After some 50 to 100 unblocks, the page with blocked accounts get blocked. As a result the script may currently not work.
  • Update 17.11.2019: The old code only worked in Firefox. I updated it to work in Chrome as well.
  • Update 12.07.2019: NewTwitter also known as Twitter Web has a completely new interface. I updated the code accordingly.

If you have blocked hundreds of accounts, unblocking them one by one takes a lot of time. But there is a quick and easy way to unblock them all at once. You don’t need to give any app write permissions to your account for it to work.

@erbanku
erbanku / Fix Windows No Internet Access Issue.reg
Created August 4, 2023 09:51
Fix Windows No Internet Access Issue - (By the Way, Fuck GFW)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet]
"ActiveDnsProbeContent"="131.107.255.255"
"ActiveDnsProbeContentV6"="fd3e:4f5a:5b81::1"
"ActiveDnsProbeHost"="dns.msftncsi.com"
"ActiveDnsProbeHostV6"="dns.msftncsi.com"
"ActiveWebProbeContent"="Microsoft NCSI"
"ActiveWebProbeContentV6"="Microsoft NCSI"
"ActiveWebProbeHost"="www.msftncsi.com"

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

[OrangeX4's Cheatsheets]

Source: OrangeX4's Cheatsheets

Develop

Commit

Commit Types

- feat:新功能(feature)