Skip to content

Instantly share code, notes, and snippets.

View tvidal-net's full-sized avatar

Thiago Vidal tvidal-net

  • TVidal.UK
  • London, UK
  • 08:52 (UTC +01:00)
  • Facebook tvidal.net
View GitHub Profile
@tvidal-net
tvidal-net / abusing
Last active September 14, 2025 13:37
update list of addresses attempting to break-in into my local server
#!/usr/bin/env zsh
#############################################################
# /usr/local/bin/abusing
#############################################################
set -eo pipefail
zparseopts -D -E -a ARGS -- v f
[ "${ARGS[(r)-v]}" ] && set -x
function ips () {
@tvidal-net
tvidal-net / gotr_install
Last active August 28, 2025 19:26
Installation Script for Gentlemen of the Row
#!/usr/bin/env zsh
autoload -U colors
colors
RED=${fg_bold[red]} RST=$reset_color
# argument parse
set -eo pipefail -o extendedglob
zparseopts -D -K -a ARGS -- v n || exit $?
[ "${ARGS[(r)-v]}" ] && set -x
@tvidal-net
tvidal-net / PKGBUILD
Last active November 29, 2023 14:22
Chiaki4Deck PKGBUILD
# based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=chiaki-git
pkgname=chiaki4deck-git
_gitname=chiaki4deck
pkgver=1.3.0
pkgrel=1
pkgdesc="Unofficial PlayStation 4 remote play client"
arch=(x86_64)
url="https://github.com/streetpea/chiaki4deck"
license=('AGPL3')
depends=('qt5-base' 'qt5-multimedia' 'qt5-svg' 'sdl2' 'opus' 'ffmpeg' 'openssl' 'gcc-libs' 'fftw')
@tvidal-net
tvidal-net / bootstrap.sh
Last active February 7, 2022 13:00
archlinux min install for private use
#!/usr/bin/env bash
set -eo pipefail
# create swap and linux partitions and set bootable flag
sfdisk /dev/vda <<EOF
label: dos
, 1G, swap
,, linux, *
EOF
@tvidal-net
tvidal-net / ls.awk
Last active May 14, 2022 17:02
A simple awk script to add color and file-type emoji to `ls -l`
#!/usr/bin/awk -f
# Usage:
# - create a function like the one below and add it to your .rc file
# lsx () { ls -l --file-type --color=always $* | awk -f /path/to/ls.awk; }
# emoji reference
# https://apps.timwhitlock.info/emoji/tables/unicode
BEGIN {