Skip to content

Instantly share code, notes, and snippets.

View wdog's full-sized avatar
🎯
Focusing

wdog wdog

🎯
Focusing
View GitHub Profile
@wdog
wdog / vlan.sh
Last active January 16, 2020 10:19
Simple script for vlan
#!/bin/bash
DEFADPATER=eno1
DEFVLAN=300
DEFNET=10.137.1.2
RED='\033[0;31m'
GREEN='\033[0;32m'
INFO='\033[0;36m'
@wdog
wdog / .dunstrc
Last active July 3, 2022 23:57
Simple configuration for dunst notification
# <- this tricks vim into using syntax highlighting
[global]
# font = Tewi 8
font = "FontAwesome, Noto Sans 11"
icon_path = /usr/share/icons/Faenza/status/16/:/usr/share/icons/Faenza/devices/16/
markup = yes
# The format of the message. Possible variables are:
# %a appname
# %s summary
@wdog
wdog / songChange.py
Last active November 8, 2020 11:09
Simple script for notify-send on song change for mocp player
#!/usr/bin/env python3
import os
import argparse
import stagger
def notify(song, album, artist, icon='music'):
command = f'''
notify-send -i "{icon}" "🎵 {song}" "<i>📀 {album}</i>\n<b>👄 {artist}</b>"
@wdog
wdog / PageTemplates_Faq.php
Created November 29, 2024 10:13 — forked from pxlrbt/PageTemplates_Faq.php
Filament Template
<?php
namespace App\Filament\PageTemplates;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\TextInput;
final class Faq
{
@wdog
wdog / 00 README.md
Last active February 13, 2025 15:33 — forked from imthenachoman/00 README.md
Debian snapper apt script to include full apt command including arguments as snapshot description

This gist includes an enhancement to Debian's snapper package.

The current (as of 2023-07-23) snapper package includes an apt configuration that will automatically take snapper snapshots when you use apt to install/remove/etc. It will add use "apt" as the description of the pre/post snapshot.

With the below changes to the /etc/apt/apt.conf.d/80snapper file and associated dpkg-pre-post-snapper.sh file, snapper will include the full apt command, including the arguments, in the snapshot description.

For example:

$ sudo apt install funky