Skip to content

Instantly share code, notes, and snippets.

@wesnel
wesnel / memories.py
Created May 21, 2020 02:14
Download all Snapchat memories from your account data JSON (https://support.snapchat.com/en-US/a/download-my-data).
import asyncio
from json import loads
from pathlib import Path
MEMORIES_HISTORY_PATH = "./json/memories_history.json"
async def download_memory(memory: dict) -> None:
filetype = "mp4" if memory["Media Type"] == "VIDEO" else "jpg"
filename = f"{'_'.join(memory['Date'].split())}.{filetype}"
cmd = (
@heroheman
heroheman / ranger-cheatsheet.md
Last active October 16, 2025 21:15
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@miglen
miglen / linux-networking-tools.md
Last active September 30, 2025 21:07
Linux networking tools

List of Linux networking tools

netstat (ss)

Displays contents of /proc/net files. It works with the Linux Network Subsystem, it will tell you what the status of ports are ie. open, closed, waiting, masquerade connections. It will also display various other things. It has many different options. Netstat (Network Statistic) command display connection info, routing table information etc. To displays routing table information use option as -r.

Sample output:

Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)    
tcp4 0 0 127.0.0.1.62132 127.0.0.1.http ESTABLISHED