View gist:f4c99fd4f9f0f6877c707b74a078385a
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
# Asks for sudo password early | |
sudo touch a | |
# sudo apt update && sudo apt-get install -y wget curl git | |
# Installs vagrant | |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
sudo apt update && sudo apt install vagrant |
View gist:ac47e45d8b781d06e0c777b626951df6
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
# Install gitlab dockerized | |
export GITLAB_HOME=/srv/gitlab | |
sudo docker run --detach \ | |
--hostname gitlab.example.com \ | |
--publish 443:443 --publish 80:80 --publish 23:22 \ | |
--name gitlab \ | |
--restart always \ | |
--volume $GITLAB_HOME/config:/etc/gitlab \ |
View gist:0040c1d29606c7a8f34c3b5b78814fdb
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
# On Host | |
socat tcp-listen:5037,bind=192.168.122.1,reuseaddr,fork tcp:localhost:5037 | |
# On virtual machine | |
socat tcp-listen:5037,bind=localhost,reuseaddr,fork tcp:192.168.122.1:5037 |
View emulator_init.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
# Installs Android Emulator standalone, and creates a default emulator. You shouuld be able to | |
# re-run this script if it fails, everything should be redone | |
set -x | |
sudo apt-get update && sudo apt-get install -y openjdk-11-jdk | |
export ANDROID_SDK_ROOT=/home/$USER/android_sdk_root | |
rm -rf $ANDROID_SDK_ROOT | |
mkdir -p $ANDROID_SDK_ROOT | |
CMD_LINE_TOOLS_URL=https://dl.google.com/android/repository/commandlinetools-linux-8092744_latest.zip | |
CMD_LINE_TOOLS_SHA256=d71f75333d79c9c6ef5c39d3456c6c58c613de30e6a751ea0dbd433e8f8b9cbf | |
wget -O command_line_tools.zip $CMD_LINE_TOOLS_URL |
View gist:1ecd3f4554924ac104b205513551150b
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
# First run setup | |
HOST=lz@192.168.1.11 && ssh $HOST "sed -i 's/[#WaylandEnable=false]/[WaylandEnable=false]/' [/etc/gdm3/custom.conf] && sudo -S apt-get update && sudo -S apt-get install -y x11vnc && sudo reboot" | |
# Connect and forward ports | |
HOST=lz@192.168.1.11 && ssh $HOST -L 5900:localhost:5900 -L5901:localhost:5901 -L5902:localhost:5902 -L5903:localhost:5903 "x11vnc -listen localhost" |
View bootstrap.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 | |
# Clone and cat to inspect and chmod +x: | |
# wget https://gist.githubusercontent.com/lattice0/292d7234498ffacb4e76903b4d8ed769/raw/8f2ec51f8a5d8a2c564f9394102827b9d02dd9ef/bootstrap.sh | |
set -x | |
set -e | |
#asks for sudo earlier | |
sudo touch a && sudo rm a | |
sudo apt update |
View 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDEhU8Fvn57jx3SgH2i88sF4473n/ugZfe7gsmUdMkSA/MzT9o3q4C66lfLcEgAVjXOs9N1XVHQ1ycoGJXsyRHDO8ijs3XuAmRWW/9/e+fph4Rpeh04ESjKQqpXuGXQHPCiMyn3A5QhDGerochwAy+rLDAi02FRqNU83OPls9sk8uV67gJK52PrB5nX/c9AIm2HldlswRzxaatCeCkq5bwW7C7b47wXbWZ2qLj7V+9NXuM37uWUGdX6a5G0FteNPH9QjImcEfrIoPDH58SpIbyTx0ZmRn785rFvbETTHpcmU5VwjA+XzFTAOqC6ZKN0za9nZrapv5Pn/MVuVVR77rHAFqXDsuWHYP3Sh08bANur/loGLH+5b9eF7XYbYDMRz4uj03USI4Ca4VjjudKWHi2NOJZN6d7BQvPulkskD/5rHGnIBSARvOa/o2uBbQrBJjybbNoG2XxxfYxvZXhB/TagtIrHZDLwW6/I7qpPoaVudTOSIiZT7HI9x309z13XkzBEtNK43ImdpbE8MPsNuFIIBa0iinJdrWZ60cP3fbhVzrwBtmfmIcRy+T0PziSPp0hbuC5DTAm32imXfTEblGPNehFI+rK+FjXZ2mtQjA7cus4J4DcVPVLSEtXPLaQMzfqPx6IlIoYERrxvdsFNC6Q5f8/sLAtP6sjO9G+pYZJ6BQ== cardno:000616358784 |
View gist:5bd5725e6d3db4aeb3f78eac17a424fd
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
https://datatracker.ietf.org/doc/html/rfc6184#section-8.1 | |
https://www.itu.int/rec/T-REC-H.264-202108-I/en |
View gist:b98db2f439443209cff7b3753aaba9db
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
#https://forums.developer.nvidia.com/t/how-do-i-change-the-device-tree/154431/6 | |
#Install kernel deps | |
set -x | |
set -e | |
sudo apt update && sudo apt-get install -y build-essential bc git curl wget xxd kmod libssl-dev | |
#Gets the kernel |
View gist:240380170575ae9aa753fb6523ddf78e
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
https://en.wikipedia.org/wiki/Xvfb |
NewerOlder