Skip to content

Instantly share code, notes, and snippets.

View nothub's full-sized avatar
💭
̵̨̹̜̹̭̥̘̫̱̭̭̯̣̯̳̝̫̝͔̀̅ͫͫͦ̍̏ͧ̂̅̓ͩ̑̿̇̄͜͟᙭̷̣͙͕͒͒ͪ̓̀̃ͯͬ̿͆̍̿̐͂̎̃̀͢

Florian Hübner nothub

💭
̵̨̹̜̹̭̥̘̫̱̭̭̯̣̯̳̝̫̝͔̀̅ͫͫͦ̍̏ͧ̂̅̓ͩ̑̿̇̄͜͟᙭̷̣͙͕͒͒ͪ̓̀̃ͯͬ̿͆̍̿̐͂̎̃̀͢
View GitHub Profile
@nothub
nothub / postman-install.sh
Last active March 3, 2021 05:16 — forked from Bobmajor/gist:319e89e9c876cccdb1b77f1783e9a820
install postman without snap
#!/usr/bin/env bash
set -e
wget -O /tmp/postman.tar.gz https://dl.pstmn.io/download/latest/linux64
sudo rm -rf /opt/Postman/ && sudo tar xvf /tmp/postman.tar.gz -C /opt/
sudo ln -sf /opt/Postman/app/Postman /usr/bin/postman
rm /tmp/postman.tar.gz
@nothub
nothub / .gitconfig
Created December 6, 2020 21:16
directory based gitconfig
[user]
name = a
email = a@foo.bar
[includeIf "gitdir:~/work/"]
path = ~/work/.gitconfig-work
# ignore all files
*
# but include directories
!*/
# git
!/**/.gitkeep
!/.gitattributes
!/.gitignore
@nothub
nothub / .editorconfig
Last active March 8, 2022 13:09
editorconfig
# https://editorconfig.org
[*]
charset = utf-8
end_of_line = lf
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{gradle, java}]
@nothub
nothub / tinylog.properties
Created January 25, 2021 02:51
tinylog2 settings with iso8601 / rfc3339 compliant timestamps
# suppress inspection "UnusedProperty" for whole file
# date is ISO 8601 / RFC3339 compliant
locale = en_US
charset = UTF-8
autoshutdown = false
writer_console = console
writer_console.level = info
writer_console.format = {date: yyyy-MM-dd'T'HH:mm:ssXXX} {level}: {message}
@nothub
nothub / focal-init-setup.sh
Created January 27, 2021 22:50
ubuntu focal standalone initial setup
#!/usr/bin/env bash
# MANDATORY options
SETUP_HOSTNAME="" # full domain that is pointed to this box
SETUP_USERNAME="" # admin user
SETUP_SSH_PUBKEY="" # admin users ssh public key
SETUP_FORWARD_EMAIL="" # root and user mails gonna be forwarded to this
# OPTIONAL options
SETUP_DISABLE_IPV6=true
@nothub
nothub / docker@.service
Created January 30, 2021 01:14
docker-compose systemd unit template
[Unit]
Description=%i (docker-compose)
Requires=docker.service
After=docker.service
[Service]
Restart=always
TimeoutStartSec=300
# restart twice a day to pull image updates
@nothub
nothub / citag.sh
Last active February 15, 2023 19:22
when ci scheduler is big meanie
#!/usr/bin/env bash
# Github is a big meanie disabling your scheduled workflows?
# Not a problem, just schedule ci jobs by pushing git tags!
# echo git@github.com:user/repo-c.git git@github.com:user/repo-d.git | ./citag.sh git@github.com:user/repo-a.git https://github.com/user/repo-b.git
# 42 */12 * * * /foo/bar/citag git@github.com:user/repo.git
set -o errexit
set -o nounset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
import argparse
import json
import select
import socket
import sys
from urllib import request as urllib_request
if __name__ == '__main__':