Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Variables
DATABASE_NAME="local_finanssoreal"
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <container-id> <database-file-location>"
exit 1
fi
@alanfzf
alanfzf / dropbox-install.sh
Last active July 1, 2024 04:13
Dropbox Install
wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - -C $HOME
sudo tee /etc/systemd/system/dropbox@.service > /dev/null <<EOF
[Unit]
Description=Dropbox as a system service
After=local-fs.target network.target
[Service]
Type=simple
ExecStart=/usr/bin/env "/home/%i/.dropbox-dist/dropboxd"
#!/bin/bash
GAME_DIR="/home/steam/cs2/game/csgo"
SERVICE_NAME="cs2-server"
curl -Lo metamod.tar.gz https://mms.alliedmods.net/mmsdrop/2.0/mmsource-2.0.0-git1284-linux.tar.gz
curl -Lo sharp.zip https://github.com/roflmuffin/CounterStrikeSharp/releases/download/v202/counterstrikesharp-with-runtime-build-202-linux-696ecad.zip
tar -xvf metamod.tar.gz
unzip sharp.zip
#!/bin/bash
# System variables
PROFILE=finanssoreal
BUCKET=s3://finanssoreal/database/
OBJECT="$(aws s3 ls --profile $PROFILE $BUCKET | sort | tail -n 1 | awk '{print $4}')"
FULL_PATH="$HOME/$OBJECT"
aws s3 cp "$BUCKET$OBJECT" "$FULL_PATH" --profile $PROFILE
@alanfzf
alanfzf / autoexec.cfg
Last active November 27, 2023 22:43
Alan's CS:GO Config
# ALIAS
alias "+jumpaction" "+jump;"
alias "+throwaction" "-attack; -attack2"
alias "-jumpaction" "-jump"
bind t "+jumpaction;+throwaction;"
# BINDS
unbind mwheelup
unbind mwheeldown
bind "r" "+reload"