Skip to content

Instantly share code, notes, and snippets.

View brra's full-sized avatar

brra brra

  • Sweden
View GitHub Profile
@vpnwall-services
vpnwall-services / TERRAFORM-PROXMOX-101.md
Last active November 6, 2023 22:17
[TERRAFORM x PROXMOX 101] Terraform x Proxmox 101 #debian #bash #proxmox #terraform

https://blog.levassb.ovh/post/terraform/

  • Create apiuser on proxmox Datacenter => Storage => Create user => terraform apitokens => root @pam / new_token / privesc: no

  • Snippets folder Storage => snippets / /storage/snippets /Snippets

  • Add permissions to apiuser Permissions =>

/ root@pam!new_token PVEVMAdmin
@heri16
heri16 / README.md
Last active March 29, 2024 02:43
Openwrt: Uses CAKE's diffserv4 classifications: Bulk, Best Effort, Video, Voice in combination with act_ctinfo and CONNMARK --set-dscpmark to restore DSCP classifications on ingress.

Smart Queue

Initial Setup

opkg update
opkg install luci-app-sqm kmod-sched-ctinfo iptables-mod-hashlimit ipset nano

# Install modified layer_cake to sqm-scripts
wget https://gist.githubusercontent.com/heri16/06c94b40f0d30f11e3a82166eca718f3/raw/layer_cake_ct.qos -O /usr/lib/sqm/layer_cake_ct.qos
@triangletodd
triangletodd / README.md
Last active July 6, 2024 01:03
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@eunsukimme
eunsukimme / Dockerfile.app
Last active July 2, 2024 18:12
Configuration Files for Logging System wigh Docker-elk, Filebeat and Node.js
FROM node:12
WORKDIR /app
COPY ./package*.json ./
RUN npm install
ENV PORT=4000
COPY . .
CMD ["npm","run","start"]
@DonRichards
DonRichards / multithread_rsync.sh
Created March 20, 2020 22:15
Multi-thread Rsync. Don't forget to $ chmod +x multithread_rsync.sh and change the paths & server. And then run it like: $ ./multithread_rsync.sh
#!/usr/bin/env bash
# RSYNC /usr/local/bin/rsync
RSYNC_PROG=$(which rsync)
# Note the important use of --relative to use relative paths so we don't have to specify the exact path on dest
RSYNC_OPTS="-aP --numeric-ids --progress --human-readable --exclude=.git --relative --compress"
export RSYNC_RSH="ssh -T -c aes128-ctr -o Compression=no -x"
@OleksandrKucherenko
OleksandrKucherenko / configureMyMac.sh
Last active June 29, 2024 08:53
Pre-configure My mac
#!/usr/bin/env bash
set -x # uncomment to debug
# required for Homebrew
xcode-select —-install
sudo xcodebuild -license accept
# install https://brew.sh/
which brew || (/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" )
@dineshbhagat
dineshbhagat / configure-iterm2.sh
Last active June 21, 2023 17:50
Shell script to configure iterm2 with oh-my-z, nerd font, powerlevel10k
brew install zsh;
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)";
cd $ZSH/custom/plugins;
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git && git clone https://github.com/zsh-users/zsh-autosuggestions && git clone https://github.com/zsh-users/zsh-completions;
# from now on your default shell is zsh, customize by editing ~/.zshrc file
brew tap homebrew/cask-fonts;
brew install --cask font-hack-nerd-font;
brew install coreutils
cd ~/Desktop;

"Knowledge is powerful, be careful how you use it!"

A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools, and more.

@jmk2142
jmk2142 / .eslintrc.json
Last active August 22, 2020 14:45
MSTU5013 Sync-Settings
{
"parserOptions": {
"ecmaVersion": 6
},
"plugins": ["html"],
"settings": {
"html/html-extensions": [".html", ".tag"]
}
}