Skip to content

Instantly share code, notes, and snippets.

@z-rui
z-rui / 1.txt
Created March 31, 2017 15:41
通用规范汉字表 (2013)
@JCBuck
JCBuck / WindowsDiscoveries.md
Last active June 28, 2020 10:39
Neat and random discoveries in Windows

connect.dll CLSID GUID symbols (some may be used for xwizard.exe RunWizard [GUID] ) (10.0.14393.0)

00007FFF0C1FE398  Export  CLSID_ConnectToInternetCreationHookPage           {7071ECA5-663B-4BC1-A1FA-B97F3B917C55}
00007FFF0C1FE3A8  Export  CLSID_ConnectToInternetFinishPage                 {7071ECAF-663B-4BC1-A1FA-B97F3B917C55}
00007FFF0C1FE3B8  Export  CLSID_ConnectToInternetDetectionHookPage          {7071ECA3-663B-4BC1-A1FA-B97F3B917C55}
00007FFF0C1FE3C8  Export  CLSID_ConnectToInternetHookPage                   {7071ECA8-663B-4BC1-A1FA-B97F3B917C55}
00007FFF0C1FE3D8  Export  CLSID_DisplayWorkExistingConnectionsPage          {7071EC62-663B-4BC1-A1FA-B97F3B917C55}
00007FFF0C1FE3E8  Export  CLSID_NetworkTasksHost                            {7071ECFA-663B-4BC1-A1FA-B97F3B917C55}
00007FFF0C1FE3F8  Export  CLSID_ConnectToWorkExistingConnectionsPage        {7071ECB4-663B-4BC1-A1FA-B97F3B917C55}
@integeruser
integeruser / s-rand.py
Last active September 24, 2023 14:09
Python port of the GLIBC rng
#!/usr/bin/env python2
from ctypes import c_int, c_uint
# http://www.mscs.dal.ca/~selinger/random/
def srand(seed):
srand.r = [0 for _ in range(34)]
srand.r[0] = c_int(seed).value
for i in range(1, 31):
@raecoo
raecoo / console.save.js
Last active November 20, 2025 20:44
Save JSON object to file in Chrome Devtool
// e.g. console.save({hello: 'world'})
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
if(typeof data === "object"){
data = JSON.stringify(data, undefined, 4)
@zmwangx
zmwangx / # macOS release checksums
Last active February 8, 2020 02:33
macOS / OS X installer checksums. When I don't have a particular image, I filled as many fields as possible with data from https://github.com/notpeter/apple-installer-checksums and/or https://github.com/drduh/macOS-Security-and-Privacy-Guide/blob/master/InstallESD_Hashes.csv. A list of build numbers can be found in the Apple Support article http…
We couldn’t find that file to show.
@tsaarni
tsaarni / openssl-notes.txt
Created October 22, 2016 08:50
Generate self-signed certs with different key types
*** RSA
# Generate self-signed certificate with RSA 4096 key-pair
openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout rsakey.pem -out rsacert.pem
# print private and public key
openssl rsa -in rsakey.pem -text -noout
# print certificate
openssl x509 -in rsacert.pem -text -noout
@rosswd
rosswd / bitsadmin.md
Last active November 1, 2022 09:27
Use bitsadmin to download via the command line on Windows 7 (8?)

Download via the command line on Windows 7

If you want to test your connection or have some other reason to use the command line to download a file, this is how.

See http://superuser.com/a/284147 for more information.

Open cmd.exe and use this format:

bitsadmin /transfer debjob /download /priority normal http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-8.7.1-i386-xfce-desktop.iso D:\Users\[Username]\Downloads\debian-live-8.7.1-i386-xfce-desktop.iso
@acepace
acepace / rol.im-securegoldenkeyboot
Last active May 31, 2026 10:28
Secure Golden Key Boot: (MS16-094 / CVE-2016-3287 and MS16-100/ CVE-2016-332)
| |
| a w r i t e u p r e l e a s e b y r o l |
| ________ ___ ________ ________ |
| <_ __ \/ \/ \/ ____ \ |
| T T<___/\___/\_ /\ _/\ \__j _/ |
| | | T T T / \ T__\____ T |
| | | | | | \ / |T T T | |
| l__j_____l___j_l__><__j| | | | |
| T _______ T | ___j | l___j | |
| | T __T |_j l_______l________j |
@kotarou3
kotarou3 / find-top-level-packages.py
Last active December 19, 2023 16:41
Find top-level packages of the dependency graph for debian packages
#!/usr/bin/python3
import argparse, sys
import apt
import networkx as nx
parser = argparse.ArgumentParser(
description = "Find top-level packages of the dependency graph"
)
parser.add_argument(
@georgebrock
georgebrock / Info.plist
Last active June 26, 2026 09:52
AppleScript to handle URLs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... -->
<!-- Add this section: -->
<key>CFBundleURLTypes</key>
<array>
<dict>