Skip to content

Instantly share code, notes, and snippets.

View danielnbalasoiu's full-sized avatar
🥷
🛡️

danielnbalasoiu

🥷
🛡️
View GitHub Profile

Installing Harbor with Trivy

  1. Grab Harbor online or offline installer from https://github.com/goharbor/harbor/releases
  2. Create a directory to store Trivy config:
    mkdir -p ./common/config/trivy-adapter
    
  3. Create the env file with environment variables:
    cat << EOF > ./common/config/trivy-adapter/env
    
@danielnbalasoiu
danielnbalasoiu / attributes.rb
Created December 15, 2021 08:05 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@danielnbalasoiu
danielnbalasoiu / sources.list
Created November 19, 2021 15:48 — forked from ishad0w/sources.list
Debian 10 (Buster) -- Full sources.list
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
deb http://deb.debian.org/debian buster-backports main contrib non-free
deb-src http://deb.debian.org/debian buster-backports main contrib non-free
deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
@danielnbalasoiu
danielnbalasoiu / WireGuard_Setup.txt
Created November 15, 2021 14:56 — forked from chrisswanda/WireGuard_Setup.txt
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@danielnbalasoiu
danielnbalasoiu / proxmox-cli-and-tips.md
Last active November 8, 2021 13:50 — forked from dragolabs/proxmox-cli-and-tips.md
Useful proxmox commands

Find next free VM ID

pvesh get /cluster/nextid

Create containter with external and internal nets

pct create 100 \
@danielnbalasoiu
danielnbalasoiu / helm-cheatsheet.md
Created November 5, 2021 07:35 — forked from tuannvm/cka.md
#Helm #Kubernetes #cheatsheet, happy helming!
@danielnbalasoiu
danielnbalasoiu / k8s-using-talos-in-vms.md
Created November 2, 2021 15:15 — forked from cyrenity/k8s-using-talos-in-vms.md
Setup kubernetes cluster using Talos (Lab)

Setup Kubernetes cluster in minutes using Talos

1. Get talosctl

Download and install talosctl binary

wget https://github.com/talos-systems/talos/releases/download/v0.8.1/talosctl-linux-amd64
@danielnbalasoiu
danielnbalasoiu / Activate Office 2019 for macOS VoL.md
Created October 26, 2021 07:54 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@danielnbalasoiu
danielnbalasoiu / asciiquarium-linux.md
Created October 1, 2021 12:01 — forked from diegopacheco/asciiquarium-linux.md
How to install Linux asciiquarium?
wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
tar -zxvf asciiquarium.tar.gz
cd asciiquarium_1.1/
chmod +x asciiquarium
sudo cp asciiquarium /usr/local/bin/asciiquarium
sudo cpan Term::Animation
asciiquarium
@danielnbalasoiu
danielnbalasoiu / watermarker
Created August 23, 2021 11:13 — forked from umrashrf/watermarker
How to watermark text over images using Python with PIL
#!/usr/bin/python
__author__ = 'umair'
FONTS = (
"/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf",
"/usr/share/fonts/truetype/droid/DroidSerif-Regular.ttf",
"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf",
"/home/umair/Downloads/Dosis/Dosis-ExtraBold.ttf"
)