Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am andreaseger on github.
  • I am egera (https://keybase.io/egera) on keybase.
  • I have a public key ASDKb_dYVs6dIIslEsn43ndpU2B-2xY2dVHwfIkcfAWSjwo

To claim this, I am signing this object:

#!/usr/bin/env bash
set -e
pushd ~/bin
rm VSCode-linux-x64.old/ -rf
mv VSCode-linux-x64 VSCode-linux-x64.old
wget "https://go.microsoft.com/fwlink/?LinkId=723968" -O vscode-insider.tar.gz
tar -xzf vscode-insider.tar.gz
ln -sf ~/bin/VSCode-linux-x64/bin/code-insiders ~/.local/bin/code
popd
@andreaseger
andreaseger / example.rb
Created January 20, 2021 15:40
memory example
#!/usr/bin/env ruby
@list = []
allocate_memory = 50
Thread.new {
counter = 0
loop do
if counter > 15
@list = []
@andreaseger
andreaseger / backup.sh
Created May 22, 2022 14:32
incremental system backup via rsync
#!/bin/bash
# Title: Incremental Back-up script
# Description: Create back-ups of dirs and dbs by copying them to Perfacilis' back-up servers
# We strongly recommend to put this in /etc/cron.hourly
# Version: 0.5
# Usage: bash /etc/cron.hourly/backup
readonly BACKUP_LOCAL_DIR=/ext/local-backup
readonly BACKUP_DIRS=(/etc /home /ext $BACKUP_LOCAL_DIR)