Skip to content

Instantly share code, notes, and snippets.

@M-D-M
M-D-M / update_plex.sh
Created September 19, 2021 17:43
Update Plex Server Manually
#!/bin/bash
##
## PLEX_URL change 2016/08/01
## LATEST_URL change to python script
##
EXIT_CODE=0
LATEST_URL=
PLEX_URL="https://plex.tv/api/downloads/1.json?_=1470076305698"
Change Group Policy:
Computer Configuration > Administrative Templates > Windows Components > Bitlocker Drive Encryption > Require Additional Authentication at Startup
Check "Enabled"
Select "Require Startup PIN with TPM"
Launch command window as Admin:
manage-bde -status
manage-bde -protectors -add c: -TPMAndPIN
manage-bde -status
@M-D-M
M-D-M / convertIcalToCSV.py
Created February 8, 2019 15:51
Converts Google Ical Format to CSV, with local timezones
#!/usr/bin/env python3
from datetime import datetime
from pytz import timezone
from csv_ical import Convert
import sys
import csv
LOCAL_TZ = timezone('US/Eastern')
convert = Convert()
@M-D-M
M-D-M / update_ARK_server.sh
Created September 18, 2015 03:21
Script to download ARK dedicated server on linux to avoid "0x402" error
#!/bin/bash
steamcmdloc="/storage/steamcmd/steamcmd.sh"
arkinstallloc="/storage/ARK"
updateArkCmd="${steamcmdloc} +login anonymous +force_install_dir ${arkinstallloc} +app_update 376030 validate +quit"
$updateArkCmd
while [ $? -ne 0 ]
do
#!/bin/bash
remote_hosts_file="http://winhelp2002.mvps.org/hosts.txt"
hosts_file_loc="/etc/hosts"
main() {
printf "Downloading file...\n"
wget -q -O /tmp/hosts.new $remote_hosts_file
printf "Removing windows line breaks...\n"