This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Base stuffs | |
alias la='ls -ah' | |
alias ll='ls -lh' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias ~='cd ~' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
main () | |
{ | |
local dest=${1:-REPORT} | |
mkdir -p $dest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
openssl speed | |
# See: https://openwrt.org/docs/guide-user/perf_and_log/benchmark.openssl | |
# https://openwrt.org/docs/techref/hardware/cryptographic.hardware.accelerators | |
cryptsetup benchmark | |
# See: https://possiblelossofprecision.net/?p=2255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tooling: Debian | |
# apt install smartmontools sysstat hdparm | |
# Sata infos | |
# SATA revision 1.0 => 1.5 Gbit/s, 150 MB/s | |
# SATA revision 2.0 => 3 Gbit/s, 300 MB/s | |
# SATA revision 3.0 => 6 Gbit/s, 600 MB/s | |
# SATA revision 3.2 => 16 Gbit/s, 1969 MB/s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Other | |
# ========= | |
# See .bashrc config: https://gist.github.com/mrjk/fdb73dc33cbc1c23e21010efc451cbdd | |
# See: .vimrc config: https://gist.github.com/mrjk/1d146a701b201e77279ea4e7c5d075a5 | |
# See: bash library utils: https://gist.github.com/mrjk/31a2fb90c445fe516b0ae41eea7297ea | |
# Shell/Bash | |
# ========= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logging and User interactions | |
# ============== | |
_log () | |
{ | |
local lvl=${1:-DEBUG} | |
shift 1 || true | |
local msg=${*} | |
if [[ "$msg" == '-' ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: https://gist.github.com/mrjk/ | |
# License: MIT | |
IODINE_PASS=mypass | |
IODINE_DOMAIN=t.mydomain.org | |
IODINE_GW=10.18.0.1 | |
IODINE_FORWARD=true | |
IODINE_SERVER=w.x.y.z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tooling: Debian | |
# apt install smartmontools sysstat hdparm | |
# Sata infos | |
# SATA revision 1.0 => 1.5 Gbit/s, 150 MB/s | |
# SATA revision 2.0 => 3 Gbit/s, 300 MB/s | |
# SATA revision 3.0 => 6 Gbit/s, 600 MB/s | |
# SATA revision 3.2 => 16 Gbit/s, 1969 MB/s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Libvirt Hook Wrapper | |
# ========================= | |
# Little tool to manage libivrt hooks in an easy way. | |
# | |
# Documentation: | |
# --------------- | |
# - https://libvirt.org/hooks.html | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# Migrated to: https://github.com/mrjk/python_components/blob/main/helpers/slack_notify.py | |
# | |
# Documentation | |
# ============================= | |
# | |
# This little script to easily send slack notifications. | |
# Tiger's team webhooks are configured here: https://XXX.slack.com/apps/YYY-incoming-webhooks | |
# |