Skip to content

Instantly share code, notes, and snippets.

Verifying that +siddolo is my blockchain ID. https://onename.com/siddolo
@siddolo
siddolo / 371.conf
Created November 20, 2018 20:35 — forked from ckhung/371.conf
/etc/pve/lxc conf file for a proxmox lxc to be used as a docker host
# https://newtoypia.blogspot.com/2018/09/proxmox-lxc-storage.html
# 幫 proxmox 的 lxc 擴充硬碟
arch: amd64
hostname: whale
memory: 1024
mp0: local-zfs:subvol-371-disk-2,mp=/var/lib/docker,size=10G
net0: bridge=vmbr35,hwaddr=ff:ff:ff:ff:ff:71,ip=192.168.35.99/24,name=eth0,type=veth
onboot: 0
ostype: debian
rootfs: local-zfs:subvol-371-disk-1,size=4G
@siddolo
siddolo / freeotp_backup.md
Created August 26, 2019 10:07 — forked from kontez/freeotp_backup.md
A guide to back up and recover 2FA tokens from FreeOTP (Android)

Backing up and recovering 2FA tokens from FreeOTP

Backing up FreeOTP

Using adb, create a backup of the app using the following command:

adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp
@siddolo
siddolo / sonarqube.md
Last active February 13, 2020 11:06
Persistent dockerized Sonarqube installation and usage example with dockerized maven

SonarQube

Persistent SonarQube installation with Docker.

First Installation

Install docker:

sudo apt update
@siddolo
siddolo / bettercap.md
Last active September 5, 2024 22:21
bettercap webui from docker

bettercap webui from docker

create volume

docker volume create bettercap

bootstrap/update

Only run caplets.update the first time as every time the entire system caplets folder is replaced with the downloaded contents from github, overwriting your changes, such as the credentials, with default values. You can either backup your changes and restore them later in the system folder, or simply copy the changed caplet files in bettercap’s working directory, in which case they’ll be loaded before the ones installed system wide. https://www.bettercap.org/usage/

@siddolo
siddolo / policy.json
Created December 30, 2020 18:26
Minimum permission policy for Synology CloudSync s3 source backup job
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSepcificBucket",
"Effect": "Allow",
"Action": [
"s3:Get*",
"s3:List*"
],
@siddolo
siddolo / git-gource-mp4.md
Created February 10, 2021 23:00
Gource to mp4

Gource to mp4

gource \
  --auto-skip-seconds .1 \
  --multi-sampling \
  --seconds-per-day .06 \
  --hide filenames,progress \
  --highlight-users \
 --user-scale 4 \
@siddolo
siddolo / README.md
Last active May 5, 2024 19:45
Raspberry Pi 4 arm64 + Docker + Portainer on USB3 storage

Raspberry Pi 4 arm64 + Docker + Portainer on USB3 storage

assume that /dev/sda1 is USB3 storage

Install docker and stop daemon

curl -sSL https://get.docker.com | sh
usermod -aG docker pi
service docker stop
@siddolo
siddolo / myservice.service
Created March 30, 2021 10:16
Systemd start script after docker service startup
#/etc/systemd/system/myservice.service
[Unit]
Description=My Scipt Description
After=docker.service
BindsTo=docker.service
#ReloadPropagatedFrom=docker.service
[Service]
ExecStart=/path/to/script.sh
@siddolo
siddolo / matrix.js
Created September 10, 2021 16:13
Enter the matrix (thechoiceisyours.whatisthematrix.com reverse engineering)
function stringToBytes(t) {
for (var e = [], i = 0; i < t.length; i++) e.push(255 & t.charCodeAt(i));
return e;
}
function bytesToString(t) {
for (var e = [], i = 0; i < t.length; i++) e.push(String.fromCharCode(t[i]));
return e.join('');
}