Feel free to Add/modify anything
Here we are using digitalocean Debian 11 droplet ($5/month)
#Install WinGet | |
#Based on this gist: https://gist.github.com/crutkas/6c2096eae387e544bd05cde246f23901 | |
$hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller' | |
if (!$hasPackageManager -or [version]$hasPackageManager.Version -lt [version]"1.10.0.0") { | |
"Installing winget Dependencies" | |
Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' | |
$releases_url = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest' | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 |
#!/bin/bash | |
# Inspired on https://david-kerwick.github.io/2017-01-04-combining-zsh-history-files/ | |
set -e | |
history1=$1 | |
history2=$2 | |
merged=$3 | |
echo "Merging history files: $history1 + $history2" | |
test ! -f $history1 && echo "File $history1 not found" && exit 1 |
ENCRYPTING YOUR DRIVE(S) CAN RESULT IN PERMANENT DATA LOSS IF YOU DON'T KNOW WHAT YOU ARE DOING OR YOU FORGET THE PASSWORD. IT IS YOUR (THE READER'S) RESPONSIBILITY TO HAVE BACKUPS SHOULD ANYTHING GO WRONG. Additionally, I am not responsible for any damage you cause to your system by following this guide. You are completely and solely responsible for any changes made and potential damage caused.
I am not an expert on this topic in any way! I just read some wiki pages, had done a dual-boot Arch install before, got inspired by
# This File consists of API calls for the GPS Parsing Functionality.This section parse the GPS values from the GPS Module. | |
# pynmea2 is Python library for parsing the NMEA 0183 protocol (GPS). To get that thing : pip install pynmea2 | |
import threading | |
import pynmea2 | |
import os | |
class Message: | |
def __init__(self): | |
self.msg ='' |
#!/bin/bash | |
############################################################################## | |
# An rclone backup script by Jared Males (jaredmales@gmail.com) | |
# | |
# Copyright (C) 2018 Jared Males <jaredmales@gmail.com> | |
# | |
# This script is licensed under the terms of the MIT license. | |
# https://opensource.org/licenses/MIT | |
# |
#!/usr/bin/env python | |
import os | |
import shutil | |
import subprocess | |
# global variables | |
SYNC_DIRS = [ | |
{ | |
'src': "/Volumes/PhotoArchive/Lightroom", |
[user] | |
name = Julien Bisconti | |
email = ****** | |
[core] | |
excludesfile = ~/.gitignore | |
pager = diff-so-fancy | less --tabs=1,5 -R | |
editor = /usr/bin/vim | |
[alias] | |
wow = log --all --graph --decorate --oneline --simplify-by-decoration |
<VirtualHost *:80> | |
ServerName forum.example.com | |
Redirect permanent / https://forum.example.com | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName forum.example.com |
rsync (Everyone seems to like -z, but it is much slower for me)