[go: up one dir, main page]

Skip to content

Instantly share code, notes, and snippets.

View fabbrito's full-sized avatar

Fabrício fabbrito

  • Brazil
  • 08:38 (UTC -03:00)
View GitHub Profile
@fabbrito
fabbrito / README.md
Created May 1, 2023 01:10
Setting up the default Ubuntu 20.04 LTS VNC server
@fabbrito
fabbrito / ts3.yml
Created November 4, 2022 05:18
TS3: Docker compose
version: '3.1'
services:
teamspeak:
image: teamspeak
restart: always
ports:
- 9987:9987/udp
- 10011:10011
- 30033:30033
environment:
@fabbrito
fabbrito / putsnapshot.sh
Last active November 4, 2022 05:10
TS3: uploads a snapshot to the server
#!/bin/bash
########################################################################################
# From https://forum.teamspeak.com/threads/66796-Using-Snapshot-scripts-for-daily-backup
########################################################################################
set -e
set -u
#set -x
@fabbrito
fabbrito / pullsnapshot.sh
Last active November 4, 2022 05:08
TS3: Downloads a snapshot of the server
#!/bin/bash
########################################################################################
# From https://forum.teamspeak.com/threads/66796-Using-Snapshot-scripts-for-daily-backup
########################################################################################
set -e
set -u
#set -x
@fabbrito
fabbrito / makebackup.sh
Last active November 5, 2022 19:23
TS3: local backup of the server (using pullsnapshot.sh)
#!/bin/bash
FILE=snapshot_`date +%Y_%m_%d`.txt
if [[ -f "$FILE" ]]; then
echo "The $FILE already exists!"
exit
fi
LOGIN=`grep -oP 'loginname=..\K[[:alnum:]]+' ts3_server.txt`
PASSWD=`grep -oP 'password=..\K([[:alnum:]]|\+){8}' ts3_server.txt`
#!/usr/bin/env bash
sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
sudo reboot
#!/usr/bin/env bash
# Check existence/ Creates the .ssh directory
[ -d ~/.ssh ] || mkdir ~/.ssh
# Generate an ED25519 key and display the public key
ssh-keygen -o -a 100 -t ed25519
echo 'Your ED25519 key'
cat ~/.ssh/id_ed25519.pub