Skip to content

Instantly share code, notes, and snippets.

View jontey's full-sized avatar

Jonathan Tey jontey

View GitHub Profile
FROM alpine:latest
RUN apk add --no-cache openssh-client
COPY ./entrypoint.sh /bin/
ENTRYPOINT [ "/bin/entrypoint.sh" ]
@jontey
jontey / How to use Tolgee Translation Management System.md
Last active March 18, 2023 02:56
How to use Tolgee Translation Management System
@jontey
jontey / README - Managing dkim keys with postfixadmin.md
Last active March 10, 2023 15:14
Managing dkim keys with postfixadmin

How to generate dkim signing key for a domain

  1. Launch LISH console image

  2. Enter username and password

  3. Enter the following commands to create. Replace domain

export DOMAIN=<change to domain>
@jontey
jontey / hosts
Last active December 15, 2022 11:28
192.168.0.154 local.airasia.com
@jontey
jontey / traefik-auth.conf
Created December 6, 2022 09:41 — forked from acundari/traefik-auth.conf
Traefik fail2ban
# /etc/fail2ban/filter.d/traefik-auth.conf
[Definition]
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) .+\" 401 .+$
@jontey
jontey / rsync_parallel.sh
Created April 15, 2020 01:44 — forked from reijovosu/rsync_parallel.sh
Parallel-ise an rsync transfer when you want multiple concurrent transfers happening,
#!/bin/bash
set -e
# Usage:
# rsync_parallel.sh [--parallel=N] [rsync args...]
#
# Options:
# --parallel=N Use N parallel processes for transfer. Defaults to 10.
#
# Notes:

Keybase proof

I hereby claim:

  • I am jontey on github.
  • I am jtey1 (https://keybase.io/jtey1) on keybase.
  • I have a public key whose fingerprint is 47C0 AB26 B730 CEFC ADFF 6078 B8A1 9C7E 8F62 3300

To claim this, I am signing this object:

# If your catapult node crash with some missing blocks, due to the way catapult broker works, the catapult index.dat is updated and buffered in memory before the block is saved to the disk.
# On the event of a node crashing, this will cause the block to be unable to recover
To start,
vim index.dat
:set binary !
:%!xxd
@jontey
jontey / install_docker.sh
Last active February 10, 2020 15:00
Install the latest docker + docker-compose
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[v]?[0-9]+\.[0-9][0-9]+\.[0-9]+$" | tail -n 1`
sudo sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
sudo chmod +x /usr/local/bin/docker-compose
sudo sh -c "curl -L https://raw.githubusercontent.com/docker/compose/${COMPOSE_VERSION}/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"
@jontey
jontey / mojave.xml
Last active December 17, 2019 15:28 — forked from trongthanh/mojave.xml
macOS Mojave dynamic background re-implement as GTK+ background slideshow. Background images are changed to reflect the time of the day.
<!-- Instructions:
- Download and unzip Mojave dynamic background here: https://files.rb.gd/mojave_dynamic.zip
- Rename the extracted folder as "mojave-background" (Excuse the trouble but I renamed it on my machine and already use that path in the XML file)
- Save this xml file next to the Mojave background files
- Fix the path to the background images below (better using absolute path)
- Lastly, either:
+ GNOME: Use gnome-tweaks tool to select this XML as wallpaper (as default wallpaper settings won't let you choose wallpaper from custom path)
+ MATE: Go to background setting (in Appearance) > Choose +Add... > make sure **All files** filter is selected at the bottom right > Then choose mojave.xml
-->
<background>