Skip to content

Instantly share code, notes, and snippets.

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

Florian Hübner nothub

💭
̵̨̹̜̹̭̥̘̫̱̭̭̯̣̯̳̝̫̝͔̀̅ͫͫͦ̍̏ͧ̂̅̓ͩ̑̿̇̄͜͟᙭̷̣͙͕͒͒ͪ̓̀̃ͯͬ̿͆̍̿̐͂̎̃̀͢
View GitHub Profile
@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 / .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}]
# ignore all files
*
# but include directories
!*/
# git
!/**/.gitkeep
!/.gitattributes
!/.gitignore
@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
@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 / samizdat
Last active October 14, 2020 20:38
samizdat (PoC||GTFO) - for a post "The Lawful Access to Encrypted Data Act" and "EARN IT Bill" future
I write it myself, edit it myself, censor it myself, publish it myself, distribute it myself, and spend time in prison for it myself.
Bukovskiĭ, Vladimir - 1942
@nothub
nothub / replace-audio.sh
Last active September 21, 2020 23:21
ffmpeg
#!/bin/bash
set -e
EXAMPLE_USAGE="$(basename $0) video.mp4 audio.mp3 merged.mp4"
if [ -z "$1" ]; then
echo "please specify input video file"
echo "$EXAMPLE_USAGE"
exit 1
#!/bin/bash
set -e
if [ -z "$1" ]; then
echo "please provide dir path containign repos"
exit 1
fi
cd "$1"
@nothub
nothub / scrup
Last active June 21, 2021 14:03
poor mans screenshot upload
#!/usr/bin/env bash
set -e
SSH_USER=''
SSH_HOST=''
SSH_PATH='' # relative
BASE_URL='' # http
LOCAL_ARCHIVE_PATH="$HOME/scrup"
@nothub
nothub / UnboxingEquals.java
Last active August 13, 2020 18:35
found somewhere on stackoverflow
package not.hub.test;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
class UnboxingEquals {
@Test
void sanity_check() {
// noinspection NumberEquality,SimplifiableAssertion,SimplifiableAssertion