Skip to content

Instantly share code, notes, and snippets.

View xvybihal's full-sized avatar
🙈

Josef Vybíhal xvybihal

🙈
View GitHub Profile
@65
65 / gamselect.sh
Last active March 26, 2025 07:40
Helper file for for Google Workspace (GSuite) Resellers using GAMADV-XTD3 and need to swap between resold customers regularly
#!/bin/bash
#
#
# Author: Duncan Isaksen-Loxton
# Web: sixfive.io
#
# PREREQUISITES
@m-radzikowski
m-radzikowski / script-template.sh
Last active October 9, 2025 00:41
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@probonopd
probonopd / Wayland.md
Last active December 15, 2025 23:21
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

tl;dr: Wayland is not "the future", it is merely an incompatible alternative to the established standard with a different set of priorities and goals.

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating e

@keilmillerjr
keilmillerjr / Creating an AUR Package.md
Last active December 8, 2025 07:03
How to create and manage an AUR package. #AUR #ARCH #makepkg #PKGBUILD
@TerrorBite
TerrorBite / bashttpd.sh
Last active February 5, 2021 11:37
A webserver… written as a shell script. This is a terrible idea. MIT license
#!/bin/bash
# Let's write a webserver in Bash because haha why not
# Copyright (c) 2017-2020 TerrorBite <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active December 11, 2025 06:30
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@erumoico
erumoico / xkcdpass-cz-prepare.sh
Last active May 23, 2025 09:23
Generování náhodných českých hesel dle XKCD 936
#!/bin/bash
# https://www.xkcd.com/936/
# apt install xkcdpass unar
# https://wiki.korpus.cz/doku.php/seznamy:abc_seznamy
SLOVNIK_URL='https://wiki.korpus.cz/lib/exe/fetch.php/seznamy:syn2015_lemma_abc_utf8.zip'
SLOVNIK_ZIP="${SLOVNIK_URL##*[:/]}"
SLOVNIK_TSV="${SLOVNIK_ZIP%.*}.tsv" # ve formátu <pořadí> "\t" <slovo> "\t" <počet>
WORDFILE="${SLOVNIK_TSV%.*}.wordfile"
@v4lli
v4lli / fish.cpp
Created October 10, 2017 08:28
ZNC Fish Module with OpenSSL 1.1 patches (10/10/2017)
#include "znc/main.h"
#include "znc/User.h"
#include "znc/Nick.h"
#include "znc/Modules.h"
#include "znc/Chan.h"
#include "znc/IRCNetwork.h"
#include <string.h>
using std::pair;
using std::map;
@istepanov
istepanov / Configuration.h
Last active June 26, 2025 05:54
Marlin Anet A8 config
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@Chandler
Chandler / slack_history.py
Last active March 27, 2025 01:16
Download Slack Channel/PrivateChannel/DirectMessage History
print("UPDATE AUG 2023: this script is beyond old and broken")
print("You may find interesting and more up to date resources in the comments of the gist")
exit()
from slacker import Slacker
import json
import argparse
import os
# This script finds all channels, private channels and direct messages