Skip to content

Instantly share code, notes, and snippets.

View adiesner's full-sized avatar

Andreas Diesner adiesner

  • Germany - Stuttgart
View GitHub Profile
@adiesner
adiesner / pia-random-connect.sh
Created February 26, 2023 07:46
Private Internet Access / PIA - connect to random region via CLI
#!/bin/bash
#
# Connect to random PIA region
#
RANDOMREGION=$(piactl get regions | shuf -n 1)
piactl background enable
piactl set region $RANDOMREGION
piactl connect
@adiesner
adiesner / clone_wordpress.sh
Created January 18, 2019 16:19
Clone your wordpress installation and rewrite domain name
#!/bin/sh
# This script clones your wordpress installation.
#
# Purpuse: Sometimes you want to experiment with your wordpress installation and test certain stuff.
# Then it is pretty handy to simply create a separate copy which can be used to experiment.
#
# Steps taken:
# - Copy all files to new directory
# - Update wp-config.php (Path, Domain, Database)

Keybase proof

I hereby claim:

  • I am adiesner on github.
  • I am adiesner (https://keybase.io/adiesner) on keybase.
  • I have a public key ASDgjCbQh-jy2KQ-IrRqHOMyXZjWx_O-uoXABrctJnzT1Ao

To claim this, I am signing this object: