Skip to content

Instantly share code, notes, and snippets.

View ThomasSousa96's full-sized avatar
🤙

Thomás Sousa Silva ThomasSousa96

🤙
View GitHub Profile
@ThomasSousa96
ThomasSousa96 / install-vnc-client
Last active March 20, 2020 21:25
Remote Desktop
#!/bin/bash
sudo apt-get install vinagre
sudo apt-get -y install remmina remmina-plugin-*
@ThomasSousa96
ThomasSousa96 / History|-132d2487|6VNE.json
Last active April 23, 2024 23:28
Visual Studio Code Settings Sync Gist
{
"_type": "export",
"__export_format": 4,
"__export_date": "2022-10-01T06:27:39.755Z",
"__export_source": "insomnia.desktop.app:v2022.6.0",
"resources": [
{
"_id": "req_wrk_acd8aa32135847978c79ffa97ab5cabb23acbe44",
"parentId": "fld_wrk_acd8aa32135847978c79ffa97ab5cabb1b034c38",
"modified": 1664605601135,
@ThomasSousa96
ThomasSousa96 / dns
Created January 11, 2020 17:49
DNS
Google
8.8.8.8
8.8.4.4
Cloudflare
1.1.1.1
1.0.0.1
OpenDNS
208.67.222.222
@ThomasSousa96
ThomasSousa96 / Surge
Last active June 3, 2019 00:43
Surge
# Get token
surge login
surge token
# Deploy
surge --token "$SURGE_TOKEN" --domain example.surge.sh --project build
# Undeploy
#get token
firebase login:ci --no-localhost
Copy and paste the token in the console
Copy and save the new token
# Deploy
@ThomasSousa96
ThomasSousa96 / gpg commands
Last active January 21, 2022 20:19
GPG Key
# Export public and private gpg key to text file
gpg2 --export --armor your@email.com > ~/Desktop/gpg-key.asc
gpg2 --export-secret-keys --armor your@email.com >> ~/Desktop/gpg-key.asc
# Import gpg key from environment variable
gpg2 --import --batch --passphrase "$GPG_PASSPHRASE" <<< "$GPG_KEY"
# Clear session cache
gpgconf --reload gpg-agent
#Download the Eclipse IDE
http://www.eclipse.org/downloads/
#Configure the Workspace
https://github.com/InfinityRefactoring/java-eclipse-workspace
#Menu icon
Add the alacarte-made-5c042584-9eb8-11e8-8824-541379fdd14f.desktop file in the below folder:
/home/thomas/.local/share/applications
[Desktop Entry]
Name=TeamSpeak
Exec=/home/thomas/TeamSpeak3/ts3client_runscript.sh
Comment=
Terminal=false
Type=Application
@ThomasSousa96
ThomasSousa96 / copy.sh
Created June 4, 2018 03:57
Template Copy
#!/bin/bash
templateRootDirectory="$1";
case "$1" in
*/) templateRootDirectory="$1";;
*) templateRootDirectory="$1/";;
esac
case "$2" in
#Remove all containers
docker container rm $(docker container ls -a -q)
#Build with args
docker build -t [tagname] --build-arg ARG2=value1 --build-arg ARG2=value2 .