Drive Type | Form Factor | Connections | Key Type | Socket Type |
---|---|---|---|---|
SATA HDDs | 3.5-inch, 2.5-inch | SATA3 ports | N/A | N/A |
SATA SSDs | 2.5-inch | SATA3 ports | N/A | N/A |
mSATA SSDs | Mini-SATA | mSATA ports | B key | B socket |
M.2 SATA SSDs | M.2 | M.2 SATA ports | B key | B socket |
M.2 NVMe SSDs | M.2 | M.2 NVMe ports | M key | M socket |
M.2 SATA/NVMe SSDs | M.2 | M.2 SATA/NVMe ports | B+M key | B+M socket |
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
<# | |
. Create Self Signed Cert and export for portability and import to trusted root certificate store | |
. | |
#> | |
$pwd = ConvertTo-SecureString -String (Read-Host -Prompt 'Enter Password' ) -Force -AsPlainText | |
$domain = Read-Host -Prompt 'Enter Domain (eg: contoso.com)' | |
$certpath = 'cert:\LocalMachine\My' | |
$CertDetails = @{ |
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
<# This is a list of commands not a script, to be run line-by-line: | |
# ------------------------------------------------------------------- | |
#> | |
# Create self signed cert: | |
New-SelfSignedCertificate -Type Custom -Subject "CN=TUD" -KeyUsage DigitalSignature -KeyAlgorithm RSA -KeyLength 2048 -CertStoreLocation "cert:\LocalMachine\My" -FriendlyName "wvd" | |
$password = ConvertTo-SecureString -String "tGWu9tzQy#l0hr" -Force -AsPlainText | |
# note the fingerprint value for the key created in this: | |
gci cert:\LocalMachine\My | |
# create a working directory somewhere |
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
# Sets up Ansible and demonstrates some basic functionality | |
# Run as root, if using sudo amend script accordingly, edit hosts file before running | |
install-ansible () { | |
echo deb "http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys | |
apt update;apt install ansible | |
# basic test | |
ansible localhost -m ping --ask-pass | |
read -p "[ctrl] & [c] if this failed" |
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
#Remove a node from cluster: | |
systemctl stop pve-cluster corosync | |
pmxcfs -l | |
rm /etc/corosync/* | |
rm /etc/pve/corosync.conf | |
killall pmxcfs | |
systemctl start pve-cluster | |
# install guest agent for linux |
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 "Windows Server Backup from Roles" & Features | |
wbadmin start backup -backuptarget:\\ipaddress\share -systemstate -vsscopy | |
Boot DSRM on command line: | |
bcdedit /set safeboot dsrepair | |
shutdown /r /f /t 5 | |
Exit DSRM: | |
bcdedit /deletevalue safeboot |
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
{ | |
"combos": [ | |
{ | |
"creationDateTime": "2019-02-05T12:15:49.613", | |
"enabled": true, | |
"keyword": "//reg", | |
"modificationDateTime": "2020-10-07T10:37:08.869", | |
"name": "registration-or-fees", | |
"snippet": "Hi,\n\nAccording to our view of the campus database you are not currently registered as a student and I cannot access your full details in my view of the database in order to create your account.\nI would recommend you contact the Registrars/Part Time/Finance office and clarify if there is a delay, or if there is something outstanding that they require from you.\n\nAccording to our records there is an outstanding issue with your account such that the Finance/Registrars/Part Time Office has requested it to be put on hold. You will need to contact the Registrars/Part Time office to resolve this and they will then be in a position to remove the hold. Your login credentials will then become active again automatically. \n\nPart time student |
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
esxcli system syslog config set --loghost "tcp://<ipaddress-syslog-server>:514" | |
esxcli system syslog reload | |
esxcli network firewall ruleset set --ruleset-id=syslog --enabled=true | |
esxcli network firewall refresh | |
nc -z <ipaddress-syslog-server> 514 | |
esxcli system syslog config get |
Put the output from a dialog box into a bash variable:
termux-dialog outputs data in json format so we need to parse that. One way is to use jq which needs to be installed: apt install jq -y
Then because we're going to pipe the output into jq we'll need to enclose everything in double quotes before assiging to a variable. This is is a good example:
myvariable="$(termux-dialog -t "Please enter some text" | jq '.text' -r)"
NewerOlder