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 | |
# Variables | |
DATABASE_NAME="local_finanssoreal" | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: $0 <container-id> <database-file-location>" | |
exit 1 | |
fi |
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
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" |
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 | |
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 |
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 | |
# 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 |
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
# ALIAS | |
alias "+jumpaction" "+jump;" | |
alias "+throwaction" "-attack; -attack2" | |
alias "-jumpaction" "-jump" | |
bind t "+jumpaction;+throwaction;" | |
# BINDS | |
unbind mwheelup | |
unbind mwheeldown | |
bind "r" "+reload" |