Skip to content

Instantly share code, notes, and snippets.

View macintacos's full-sized avatar

Julian Torres macintacos

View GitHub Profile
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@dmig
dmig / mongod.json
Created May 13, 2018 06:10
lnav MongoDB log format
{
"mongod_log": {
"title": "MongoDB server log format",
"regex": {
"main": {
"pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[,\\.]\\d+\\+\\d+)\\s+(?<level>\\w)\\s+(?<component>\\w+|-)\\s+\\[?(?<context>-?\\w+)?\\]\\s+(?<body>.*)$"
}
},
"level": {
"critical": "F",
@cmod
cmod / hugofastsearch.md
Last active July 26, 2026 18:43 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
@merlinmann
merlinmann / wisdom.md
Last active June 15, 2026 22:54
Merlin's Wisdom Project (Draft)

Merlin's Wisdom Project

Or: “Everybody likes being given a glass of water.”

By Merlin Mann.

It's only advice for you because it had to be advice for me.

@morsk
morsk / logi_group_finder.lua
Last active July 2, 2026 23:46
Find entities using the named logistic group
/sc --[[ logi group finder ]]
local c = 0
local function check_for_group(e, section_container, group_name)
for _, section in pairs(section_container.sections) do
if section.group == group_name then
game.player.print({"", e.localised_name, ": ", e.gps_tag})
c = c + 1
end
end
end