# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button
# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 1T 0 part
View Wireguard-client-config
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
# Requis | |
# 1) prepare the tunnel config file Ex: /etc/wireguard/nameofconfig.conf | |
# 2) On debian or ubuntu install | |
sudo apt install resolvconf | |
sudo apt install wireguard | |
# 3) start up the vpn tunnel | |
wg-quick up nameofconfig |
View create ssh ed25519 key
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/env bash | |
EMAIL_ENV="mail@mail.com" | |
KEY_PATH_ENV="$HOME/.ssh/id_github_ed25519" | |
ssh-keygen -t ed25519 -C $EMAIL_ENV -f "$KEY_PATH_ENV" | |
eval "$(ssh-agent -s)" | |
ssh-add "$KEY_PATH_ENV" |
View .editorconfig
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
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = false | |
max_line_length = 100 | |
tab_width = 2 | |
ij_continuation_indent_size = 4 | |
ij_formatter_off_tag = @formatter:off |
View create-cloud-template.sh
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 | |
set -o errexit | |
clear | |
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n" | |
### HOW TO USE | |
### Pre-req: | |
### - run on a Proxmox 6 server | |
### - a dhcp server should be active on vmbr1 |
View proxmox-lxc-resize.sh
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 | |
pct stop <id> | |
vzdump <id> -storage <storage> -compress lzo | |
pct destroy <id> | |
pct restore <id> /path/to/storeage/vzdump-lxc-<id>....tar.lzo --rootfs local:<newsize> |
View README.md
View vscode_shortcuts.md
VSCode Shortcuts
List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
Official List of all commands
View trelloinstall.sh
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 | |
# Your system should be 64 bits and check if the last version at https://github.com/danielchatfield/trello-desktop/ is 0.19 | |
# If the current version is not 0.19 change the file name below accordingly | |
wget https://github.com/Racle/trello-desktop/releases/download/v0.2.0/Trello-linux-0.2.0.zip -O trello.zip | |
sudo mkdir /opt/trello | |
sudo unzip trello.zip -d /opt/trello/ | |
sudo ln -sf /opt/trello/Trello /usr/bin/trello | |
echo -e '[Desktop Entry]\n Version=1.0\n Name=Trello\n Exec=/usr/bin/trello\n Icon=/opt/trello/resources/app/static/Icon.png\n Type=Application\n Categories=Application' | sudo tee /usr/share/applications/trello.desktop |