Skip to content

Instantly share code, notes, and snippets.

View fasterthanlime's full-sized avatar
🌌
4 oreos from heaven

Amos Wenger fasterthanlime

🌌
4 oreos from heaven
View GitHub Profile
fn marine_line() -> String {
use rand::{seq::SliceRandom, Rng};
let marine_life = ["🐳", "🐠", "🦈", "🐙", "🐡", "🐬", "🐟", "🦀", "🐋"];
let water = [
"\x1B[38;2;0;100;200m≈\x1B[0m",
"\x1B[38;2;10;110;210m≈\x1B[0m",
"\x1B[38;2;20;120;220m≈\x1B[0m",
"\x1B[38;2;30;130;230m≈\x1B[0m",
"\x1B[38;2;40;140;240m≈\x1B[0m",
abcccccccccccccccccaaccccccccccccaaaaaaaacccccccccccaaaaaccccaaaaaaccaaaaaaaaaaaaaaaaaccccccccccccccccaaacccccaaaaaaaacccaaaccccccccccccccccccccccccccccccccccccccccccccccccccaaaaa
abccccccccccccccccaaacaacccccccccccaaaacccccccccccccaaaaaacccaaaaaaccaaaaaaaaaaaaaaaaaaaacccccccccaaacaaacccccaaaaaaaaaccaaaaccccccccccccccccccccccccccccccccccccccccccccccccaaaaaa
abcccccccccccccccccaaaaacccccccccccaaaaaccccccccccccaaaaaaccccaaaacccaaaacccaaaaaaaaaaaaacccccccccaaaaaaaaaacccaaaaaaaaccaaaaccccccccccccccccccccccccccccccccccaaacccccccccccaaaaaa
abcccccccccccccccaaaaaacccccccccccaaacaaccaaccccccccaaaaaaccccaaaacccaaaccccaaaaaaaaaaaaaccccccccccaaaaaaaaaccaaaaaacccccaaacccccccccccccccccccccccccccccccccccaaaccccccccccccccaaa
abcccccccccccccccaaaaaaaacccccccccaacccacaaacaacccccccaaccccccaccaccccccccaaaaaaaaaaaaccccccccccccccaaaaaaacccaaaaaaacccccccccccccaacccccccccccccccccccccccccccaaaccccccccccccccaaa
abcccccccccccccccaacaaaaacccccccccccccccccaaaaacccccccccccccccccccccccccccaaaaaaaaaaaaccccccccccccccaaaaaaccccaaccaaaccccccc
app = "cove"
[build]
image = "bearcove/cove"
[[services]]
internal_port = 3700
protocol = "tcp"
[[services.port]]
{
"workbench.editor.enablePreviewFromQuickOpen": false,
"workbench.colorTheme": "GitHub Dark",
"rust-analyzer.checkOnSave.command": "clippy",
"workbench.editor.enablePreview": false,
"editor.minimap.enabled": false,
"[rust]": {
"editor.formatOnSave": true,
"editor.tabSize": 4
},
### Keybase proof
I hereby claim:
* I am fasterthanlime on github.
* I am fasterthanlime (https://keybase.io/fasterthanlime) on keybase.
* I have a public key ASDKQAVzwQZlAYM05Au2Pv3-DMiTfsGtRIyLKBQTWkGthgo
To claim this, I am signing this object:
@fasterthanlime
fasterthanlime / install-glibc-debug.sh
Created January 9, 2021 20:10 — forked from nbulischeck/install-glibc-debug.sh
Install glibc debug symbols on Arch Linux for pwndbg heap analysis
#!/bin/bash
# Install Dependencies
sudo pacman -S git svn gd lib32-gcc-libs patch make bison fakeroot
# Checkout glibc source
svn checkout --depth=empty svn://svn.archlinux.org/packages
cd packages
svn update glibc
cd glibc/repos/core-x86_64
@fasterthanlime
fasterthanlime / cities.json
Created July 5, 2020 17:53 — forked from Miserlou/cities.json
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@fasterthanlime
fasterthanlime / settings.json
Created May 16, 2020 10:09
fasterthanlime's vim-specific VSCode settings @ May 16 2020
{
"vim.handleKeys": {
"<C-t>": false
},
"vim.leader": "\\",
"vim.normalModeKeyBindings": [
{
"before": ["j"],
"after": ["g", "j"]
},
@fasterthanlime
fasterthanlime / autosym.py
Created February 26, 2020 10:54
GDB script: load symbols from all executable objects mapped in memory, automatically.
import re
import subprocess
pid = gdb.selected_inferior().pid
maps_path = "/proc/%d/maps" % pid
maps_lines = open(maps_path).read().split("\n")
for line in maps_lines:
memrange, perms, offset, devnum, size, path = (None, None, None, None, None, None)
@fasterthanlime
fasterthanlime / autosym.py
Created February 26, 2020 10:54
GDB script: load symbols from all executable objects mapped in memory, automatically.
import re
import subprocess
pid = gdb.selected_inferior().pid
maps_path = "/proc/%d/maps" % pid
maps_lines = open(maps_path).read().split("\n")
for line in maps_lines:
memrange, perms, offset, devnum, size, path = (None, None, None, None, None, None)