Skip to content

Instantly share code, notes, and snippets.

@dbgso
dbgso / sequence_viewer.html
Created January 28, 2019 09:50
PlantUMLで作成したシーケンス画像のヘッダ自動スクロールビューア
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
#header {
@taviso
taviso / emoji.sh
Created August 29, 2019 18:14
UNIX signals as emoji
declare -ar _status=(
[ 0]=😀 # Success
[ 1]=🤨 # Error
[129]=📞 # SIGHUP
[130]=🛑 # SIGINT
[131]="(╯°□°)╯︵ ┻━┻" # SIGQUIT
[132]=👮 # SIGILL
[133]=🐍 # SIGTRAP
[134]=💥 # SIGABRT
@victorwyee
victorwyee / cleanest.sh
Last active January 28, 2025 10:16
Looping over tuples in Bash
declare -a elems=(
"a 1"
"b 2"
"c 3 word"
"d 4"
)
for elem in "${elems[@]}"; do
read -a strarr <<< "$elem" # uses default whitespace IFS
echo ${strarr[0]} ${strarr[1]} ${strarr[2]}
@veekaybee
veekaybee / normcore-llm.md
Last active January 28, 2025 10:15
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

-- Licensed under the MIT License, Copyright (c) 2024 jack.ink
local function resume_with_error_check(thread: thread, ...: any): ()
local success, message = coroutine.resume(thread, ...)
if not success then
print(string.char(27) .. "[31m" .. message)
end
end
@apsun
apsun / build.gradle.kts
Last active January 28, 2025 10:14
Documented build.gradle for publishing an Android library to Maven Central
// This is a documented version of the build.gradle file from RemotePreferences:
// https://github.com/apsun/RemotePreferences/blob/master/library/build.gradle.kts
//
// It aims to explain exactly WTF is going on when you inevitably copy-paste
// someone's build.gradle from the internet and can't figure out why it's not
// working.
//
// It contains, to the best of my knowledge, the best practices as of Oct 2023 for
// building an Android library and publishing it to OSSRH (Maven Central).
//
@joulgs
joulgs / terminal.txt
Last active January 28, 2025 10:13
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active January 28, 2025 10:12
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

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.