No problem,
run
git filter-branch --msg-filter "cat - && echo && echo 'Signed-off-by: Your Name <[email protected]>'" HEAD~2..HEAD
To sign-off the last two commits.
Then force to push them to the remote repo with the -f
option:
<# | |
.SYNOPSIS | |
This script configures the PowerShell environment for removing Visual C++ Redistributables. | |
It installs the NuGet package provider and the VcRedist module, and then removes specific versions of Visual C++ Redistributables. | |
.DESCRIPTION | |
The script sets the execution policy to Bypass for the current process, installs NuGet and VcRedist modules, and uninstalls specific versions of Visual C++ Redistributables (2005, 2008, 2010, 2012). It ends by listing all installed Visual C++ Redistributables. | |
.NOTES | |
Requires administrative permissions |
#https://serverfault.com/questions/1018220/how-do-i-install-an-app-from-windows-store-using-powershell | |
#Usage: | |
# > Download-AppxPackage "https://www.microsoft.com/p/dynamic-theme/9nblggh1zbkw" "$ENV:USERPROFILE\Desktop" | |
# C:\Users\user\Desktop\55888ChristopheLavalle.DynamicTheme_1.4.30233.0_neutral_~_jdggxwd41xcr0.AppxBundle | |
# C:\Users\user\Desktop\55888ChristopheLavalle.DynamicTheme_1.4.30234.0_neutral_~_jdggxwd41xcr0.AppxBundle | |
# C:\Users\user\Desktop\Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x64__8wekyb3d8bbwe.Appx | |
# C:\Users\user\Desktop\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x64__8wekyb3d8bbwe.Appx | |
# C:\Users\user\Desktop\Microsoft.Services.Store.Engagement_10.0.19011.0_x64__8wekyb3d8bbwe.Appx | |
# C:\Users\user\Desktop\Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.Appx |
No problem,
run
git filter-branch --msg-filter "cat - && echo && echo 'Signed-off-by: Your Name <[email protected]>'" HEAD~2..HEAD
To sign-off the last two commits.
Then force to push them to the remote repo with the -f
option:
#!/bin/bash | |
# add_ssh_key - A script to move ssh key and set permissions | |
##### Constants | |
SSH_DIR=~/.ssh/ | |
# Check for path |
This exemplary initial setup uses two devices /dev/sdb
and /dev/sdc
but can be applied to any amount of devices by following the steps with additional devices.
Create keyfile:
dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey
I've moved this to a repo as it's easier to see what's going on:
#!/sbin/openrc-run | |
description="Caddy web server" | |
description_reload="Reload configuration" | |
extra_started_commands="reload" | |
: ${CADDY_CONF:=/etc/caddy/Caddyfile} | |
: ${CADDY_PIDFILE:=/var/run/caddy.pid} | |
: ${CADDY_USER:=caddy} |
#!/usr/bin/env bash | |
# WARNING!! | |
# This will obliterate all the data in your partition!! (not actually true, but act as if it was) | |
# Do NOT execute this script if you don't fully understand it! | |
# a few vars | |
amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' ) | |
# create directories |
[[inputs.exec]] | |
commands = ["/usr/local/libexec/telegraf/gateways.py"] | |
timeout = "5s" | |
data_format = "influx" |