Skip to content

Instantly share code, notes, and snippets.

@MichaelSRose
MichaelSRose / index.html
Created January 18, 2017 21:07
input field with underline under each character
<input maxlength='7' value='0123456'/>
@dreamlu
dreamlu / win-ss
Last active April 19, 2024 05:44
windows终端翻墙,简易方式
环境:shadowsocks、windows
本地ss端口设置(这里1080)
cmd命令行:(不用socks5)(临时设置)(也可放置环境变量)
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
ps:一定要用cmd命令行,千万别用powershell !!!
简易测试命令:curl https://www.google.com(别用ping)
@DeezNutq
DeezNutq / info.md
Last active April 19, 2024 05:43
AIDA64 keys for all editions (working @ 08.04.2024)

Note : FinalWire, you can keep trying to stop us, but you can't. You know why ? You've been using the same algorithm for 10 years. Changing it would be an inconvenience for you and your customers.

By the way, I'd suggest that you proofread your DMCA requests. If you didn't know, it's "generated" and not "genereated". Also, when referencing to someone's belonging you use the possessive form "their" and not "there".

FOR EDUCATIONAL PURPOSES ONLY, PLEASE SUPPORT THE DEVELOPPERS :)

Check BLACKLISTED for blacklisted keys

@lukaskleinschmidt
lukaskleinschmidt / blueprint.yaml
Created April 18, 2024 14:46
Kirby 4 query pages from a searchengine for the pages field
fields:
articles:
type: pages
query: kirby.collection('articles')
@al0rid4l
al0rid4l / power.ps1
Created December 22, 2023 06:39
大小核电源管理
# P核即大核,也叫高性能处理器,E核即小核,也叫高效处理器,高能效处理器,超线程,即逻辑核,是比小核更轻量的存在
# 大核小核超线程都能休眠,休眠省电但是唤醒的时间开销更大,超线程的单核性能也略有损失,大约5%-15%损失
#
# 不要在平衡电源方案下设置, 在省电或者高性能下设置, 当电源计划是平衡时. Windows还有一个叫overlay的层级允许微软和OEM的默认调度覆盖部分自定义设置
# 因此从省电或高性能下复制一个电源方案, 然后重命名, 也就是新建一个电源方案, 在里面修改, 而不要在平衡方案中修改
#
# 下面命令用来设置显示/隐藏电源选项
# powercfg -attributes <一级展开分组的GUID或别名> <二级展开分组的GUID> -ATTRIB_HIDE
# 如处理器电源管理/Processor power management是一级展开分组, 别名是SUB_PROCESSOR,小核放置最小核心数量的GUID为0cc5b647-c1df-4637-891a-dec35c318583
# +ATTRIB_HIDE表示隐藏该选项,-ATTRIB_HIDE表示显示/去掉隐藏的选项
@alochym01
alochym01 / paginator.go
Created August 26, 2021 15:23
Create a simple Pagination - golang programming
package main
import (
"database/sql"
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"os"
@leabs
leabs / navbar.astro
Created March 8, 2023 16:56
Astro - Set active class on Navbar component.
<!--Set active class on nav when the page is active -->
<script>
const nav = document.querySelector(".navbar");
const navLinks = nav.querySelectorAll("a");
const currentURL = window.location.href;
navLinks.forEach((link) => {
if (link.href === currentURL) {
link.classList.add("active");
}
});
@jordienr
jordienr / Gradient.js
Created September 12, 2021 00:23
Stripe Mesh Gradient WebGL
/*
* Stripe WebGl Gradient Animation
* All Credits to Stripe.com
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and
* commented out for now.
* https://kevinhufnagl.com
*/
@lundeen-bryan
lundeen-bryan / ClsidWin10.md
Last active April 19, 2024 05:35
All CLSIDs in Win10

All CLSIDs for Windows 10

About This File

This md file stored in gist is a list of all CLSIDs for Windows10 that I could find. It's a growing list.

When you want to run this in Run menu Win+r and typs Shell:::{[the clsid number here]}

Last Updated