Skip to content

Instantly share code, notes, and snippets.

View thomaslagies's full-sized avatar
🧽

Thomas Lagies thomaslagies

🧽
  • SEAL Systems AG
  • DE
View GitHub Profile
@sebastiancarlos
sebastiancarlos / grepdist.sh
Last active August 5, 2023 13:57
Grepdist - Print the number of matches in each 10% section of a file
#!/usr/bin/env bash
# All my gist code is licensed under the terms of the MIT license.
# GREPDIST
# Print the number of matches in each 10% section of the file
#
# Example with grep:
# $ grep -c 'Napoleon' war_and_peace.txt
# 576
@kaaquist
kaaquist / podman_macos.md
Last active March 16, 2026 09:17
Podman with docker-compose on MacOS.

Podman with docker-compose on MacOS.

Podman an alternative to Docker Desktop on MacOS

Getting podman installed and started is super easy.
Just use brew to install it.

> brew install podman

Now since podman uses a VM just like the Docker Client on MacOS we need to initialize that and start it.

@balazs4
balazs4 / songs
Last active February 2, 2024 15:40
songs
Changing Faces - Reviving Earth (ft. Identified)
Aphyxion - Restless Nights
Sleeping With Sirens - Talking to Myself
Of Mice & Men - Timeless
Frontières - First in Line
Torrential Rain - Digital Dreams
The Ghost Inside - Still Alive
Amidst the Grave's Demons - These Borders Dont Trump
SETYØURSAILS - Ghosts (feat. Rudi Schwarzer)
Aviana - My Worst Enemy
@davidteren
davidteren / nerd_fonts.md
Last active March 18, 2026 01:21
Install Nerd Fonts via Homebrew [updated & fixed]
@cmlittle
cmlittle / gist:e66a6d2394318aee694501eb6bbac920
Created January 4, 2021 03:18
Home Assistant Wallmote Auotmations
###################### WALLMOTE 1 AUOTMATIONS ###########################
### Button 1 ###
- id: wallmote_button1_tap_open
alias: open left patio shade
trigger:
- platform: event
event_type: zwave.scene_activated
event_data:
entity_id: zwave.aeon_labs_zw130_wallmote_quad
@cogneato
cogneato / recovery.md
Last active January 5, 2024 07:46
Hassio Recovery

Recovery

Unless your SD card/data is corrupted, you can still get to your files or troubleshoot further. There are a few routes:

  • Connect a usb keyboard and hdmi monitor directly to the pi
  • Setup debug access to the host or if you're running a VM install, connect using a terminal which your hypervisor provides.
  • Remove the SD and access the files from another machine (preferably one running Linux)

Connect directly

Unfortunately, unless you're lucky and it comes right up, you're more than likely going to have to pull power on your pi in order to get your monitor recognized at boot. Pulling power has a risk of corrupting the SD, but you may not have another option.

@kamek-pf
kamek-pf / alacritty.yml
Last active February 21, 2024 12:20
Gruvbox Material Dark Medium - Alacritty
# Colors (Gruvbox Material Dark Medium)
colors:
primary:
background: '0x282828'
foreground: '0xdfbf8e'
normal:
black: '0x665c54'
red: '0xea6962'
green: '0xa9b665'
@metafloor
metafloor / zpl-quick-reference.md
Last active February 25, 2026 18:17
ZPL Quick Reference

ZPL Commands

Command Format Description
^A ^Afo,h,w,d:f.x Use Scalable/Bitmapped Font
^A@ ^A@o,h,w,d:f.x Use Font Name to Call Font
^B0 ^B0a,b,c,d,e,f,g Aztec Bar Code Parameters
^B1 ^B1o,e,h,f,g Code 11 Bar Code
^B2 ^B2o,h,f,g,e,j Interleaved 2 of 5 Bar Code
^B3 ^B3o,e,h,f,g Code 39 Bar Code
@jsdevtom
jsdevtom / frontend-ws-connection.ts
Last active February 18, 2026 12:17
kubernetes-ingress websockets with nodejs
export const ws = webSocket<WebsocketMessage>(`wss://${location.hostname}:${location.protocol === 'https:' ? 443 : 80}/ws/`);
export const wsObserver = ws
.pipe(
retryWhen(errors =>
errors.pipe(
delay(1000)
)
)
);
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.