Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
cd ~
echo REMOVING SOURCE DIRECTORY...
rm -rf ~/plex-media-server-plexpass
echo USING GIT TO GET UPDATE...
git clone https://aur.archlinux.org/plex-media-server-plexpass.git
cd plex-media-server-plexpass
echo STOPPING PLEX MEDIA SERVER...
sudo systemctl stop plexmediaserver
echo BUILDING UPDATE USING MAKEPKG
@Taurolyon
Taurolyon / create-ovpn.sh
Last active June 13, 2018 06:41 — forked from Morley93/openvpn.md
This is how you can take an openvpn .ovpn config file and extract the certificates/key required to import the profile into NetworkManager.
#!/bin/sh
./build-key client
touch client.ovpn
echo client >> client.ovpn
# replace the following with your external address
echo remote mysite.mydomain.com >> client.ovpn
echo port 1194 >> client.ovpn
echo proto udp >> client.ovpn
echo dev tun >> client.ovpn
echo dev-type tun >> client.ovpn
@Taurolyon
Taurolyon / skeleton-daemon.sh
Created March 27, 2016 14:25 — forked from shawnrice/skeleton-daemon.sh
A template to write a quick daemon as a bash script
#!/bin/sh
# This is a skeleton of a bash daemon. To use for yourself, just set the
# daemonName variable and then enter in the commands to run in the doCommands
# function. Modify the variables just below to fit your preference.
daemonName="DAEMON-NAME"
pidDir="."
pidFile="$pidDir/$daemonName.pid"