This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ### | |
# | |
# Officially, this is not recommended. YMMV | |
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/ | |
# | |
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit | |
# | |
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 3 | |
# In this scenario, it is assumed that each user will have a home folder, including 3 sub-folders as a template. | |
# The tree can be visualized like below: | |
# | |
# Home | |
# |_ user1 | |
# |_ user2 | |
# |_ user3 | |
# |_ user4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ `nvram get https_enable` -gt 0 ] ; then | |
# get the absolute directory of the executable | |
SELF_PATH=$(cd -P "$(dirname "$0")" && pwd -P) | |
echo SELF_PATH: ${SELF_PATH} | |
# extract the mount path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -RunAsAdministrator | |
#requires -Version 5 | |
<# | |
For the PowerShell Desired State Configuration 101 Workshop you will need | |
the following: | |
1. A Windows 2016 virtual machine. This can be any hypervisor you have | |
available e.g. Hyper-V, VMware Workstation or VirtualBox. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ `nvram get https_enable` -gt 0 ] ; then | |
# get the absolute directory of the executable | |
SELF_PATH=$(cd -P "$(dirname "$0")" && pwd -P) | |
echo SELF_PATH: ${SELF_PATH} | |
# extract the mount path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo dpkg-reconfigure tzdata | |
sudo apt-get -y install console-data locales | |
sudo dpkg-reconfigure console-data | |
sudo dpkg-reconfigure locales |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Canonical redirect for Apache | |
# BEGIN Canonical Redirect | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] ## will match any domain that's not our main domain | |
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] | |
</IfModule> | |
# END Canonical Redirect |