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
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBINwJ9IXjBsLwpuK+8m8AeVd1lZltgEdAMoqauYh43UuApQS+ePjoa5k9twdQMv7qKbIF0MpdE5CKsrqUtqll30= |
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 the guest, always kill the adb server. If it's mac, it's located on ./Library/Android/sdk/platform-tools/adb | |
./Library/Android/sdk/platform-tools/adb kill-server | |
On the host, setup a reverse forward ssh: | |
ssh -R localhost:5037:localhost:5037 [email protected] | |
# Attention: on macOS setup SSH by seacrhing "remote login" then enable it, but dont forget to do ˋsudo nano /etc/ssh/sshd_configˋ | |
# and disable password authentication, enable public key authentication. Reboot. Copy host's public key | |
# to the VM by a shared folder, but on .ssh/authorized_keys |
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 |
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 \ |
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 |
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 |
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 | |
[email protected] && 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 | |
[email protected] && ssh $HOST -L 5900:localhost:5900 -L5901:localhost:5901 -L5902:localhost:5902 -L5903:localhost:5903 "x11vnc -listen localhost" |
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/bootstrap.sh | |
set -x | |
set -e | |
#asks for sudo earlier | |
sudo touch a && sudo rm a | |
sudo apt update |
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 |
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 |
NewerOlder