tail -f /var/log/user-data.log
sudo cat /var/lib/cloud/instance/user-data.txt
aws autoscaling describe-auto-scaling-groups
--filters Name=tag:Environment,Values=Production
--query 'AutoScalingGroups[].AutoScalingGroupName'
--output text
| for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do ( | |
| %windir%\System32\tscon.exe %%s /dest:console ) | |
| pause |
| # update and install XFCE + XRDP | |
| sudo apt update && sudo apt upgrade -y | |
| sudo apt install -y xfce4 xfce4-goodies xrdp xvfb python3-pip | |
| # configure XRDP to use XFCE | |
| echo "xfce4-session" > ~/.xsession | |
| sudo adduser xrdp ssl-cert | |
| sudo systemctl restart xrdp | |
| # install chrome |
| // ==UserScript== | |
| // @name Social Media Blocker - Instagram Reels & Facebook Newsfeed | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Blocks Instagram Reels and Facebook Newsfeed with temporary disable option | |
| // @author https://github.com/kntjspr | |
| // @match https://www.instagram.com/* | |
| // @match https://instagram.com/* | |
| // @match https://www.facebook.com/* | |
| // @match https://facebook.com/* |
| #!/bin/bash | |
| # "Things To Do!" script for a fresh Fedora Workstation installation | |
| # Check if the script is run with sudo | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Please run this script with sudo" | |
| exit 1 | |
| fi |
| # Free and Non-Free repos | |
| sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm | |
| sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
| sudo dnf install ffmpeg gstreamer1-libav gstreamer1-plugins-ugly gstreamer1-plugins-bad-free --allowerasing |
| #!/bin/bash | |
| # --- INSTALL WRAPPER --- | |
| INSTALL_DIR="$HOME/.local/bin" | |
| INSTALL_PATH="$INSTALL_DIR/git-setup" | |
| BASHRC="$HOME/.bashrc" | |
| mkdir -p "$INSTALL_DIR" | |
| if [ "$(basename "$0")" != "git-setup" ]; then |
| #!/bin/bash | |
| set -e | |
| # Change this based on your preference | |
| printf '\ncd /mnt/c/Users/user0/Desktop\n' >> ~/.bashrc # Sets terminal on launch to navigate to that directory | |
| echo 'alias desktop="cd /mnt/c/Users/user0/Desktop"' >> ~/.bashrc | |
| echo 'alias py="python3"' >> ~/.bashrc # set alias py to python3 | |
| source ~/.bashrc |
| #!/bin/bash | |
| # THIS SCRIPT IS FOR PUSHINGGGGGGG!! | |
| # ✅PUSHING SCRIPT | |
| # ❌PULL❌ | |
| # Fix GPG signing in WSL | |
| export GPG_TTY=$(tty) | |
| # Parse command line arguments |