Skip to content

Instantly share code, notes, and snippets.

Myths Hackers Believe About Names
  1. People have exactly one "official" full name.
  2. People have exactly one full name which they go by.
  3. People have, at this point in time, exactly one canonical full name.
  4. People have exactly N names, for any value of N.
  5. People’s names fit within a certain defined amount of space.
  6. People’s names do not change.
  7. People’s names are written in ASCII.
  8. People’s names are written in any single character set.
@yorickvP
yorickvP / wl-clipboard.el
Created March 14, 2019 11:02
teach emacs to use wl-copy
(setq wl-copy-process nil)
(defun wl-copy (text)
(setq wl-copy-process (make-process :name "wl-copy"
:buffer nil
:command '("wl-copy" "-f" "-n")
:connection-type 'pipe))
(process-send-string wl-copy-process text)
(process-send-eof wl-copy-process))
(defun wl-paste ()
(if (and wl-copy-process (process-live-p wl-copy-process))
@peter-b
peter-b / PasswordDemo.livecodescript
Last active July 18, 2025 17:28
HMAC-SHA-1 password storage using LiveCode
/* Compute a hash-based message authentication code
using the SHA-1 hash. This is broken; it should correctly
follow RFC 2104. */
private function hmacSha1 pKey, pMessage
return sha1digest(pKey & sha1digest(pKey & pMessage))
end hmacSha1
/* Constant time string comparison algorithm. This
prevents against timing attacks on the hashed password
comparison. */
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active July 18, 2025 17:28
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@mitsuhiko
mitsuhiko / README.md
Created May 16, 2025 08:23
This is a vibecoded automator thing that talks a basic JSON protocol to query windows with the accessibility api

Example query:

{
  "cmd": "query",
  "multi": true,
  "locator": {
    "app": "Safari",
    "role": "AXStaticText",
    "match": {},
@evgenyneu
evgenyneu / setup_cursor_ubuntu.md
Last active July 18, 2025 17:19
Install Cursor AI code editor on Ubuntu 24.04 LTS

Install Cursor AI editor on Ubuntu 24.04

  1. Use the Download button on www.cursor.com web site. It will download the NAME.AppImage file.

  2. Copy the .AppImage file to your Applications directory

cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage
@zcourts
zcourts / tmux cheat sheet
Last active July 18, 2025 17:18
tmux cheat sheet image from DuckDuckGo UI
https://duckduckgo.com/?q=tmux+cheat+sheet&atb=v47-1_x&ia=cheatsheet&iax=1
@dcts
dcts / workbench.colorCustomizations.json
Created April 14, 2020 16:51 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
@grisha765
grisha765 / camera_ntfy.py
Created July 18, 2025 15:03
A script for automatically sending photos from a camera via FTP, created for cameras that send photos to an FTP server.
#!/usr/bin/env -S uv run --script
# /// script
# dependencies = ["httpx", "pyftpdlib"]
# ///
import os
import mimetypes
import tempfile
import logging
logging.basicConfig(