Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar
🤕
è

Valorad the Oneiroseeker valorad

🤕
è
View GitHub Profile
@valorad
valorad / openssh-setup.md
Last active August 27, 2023 18:06
SSH Private key set-ups on Linux and on Windows
View openssh-setup.md

Linux

ssh-keygen -t ed25519

cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 400 ~/.ssh/authorized_keys
chmod 400 ~/.ssh/id_ed25519
@valorad
valorad / windows11-post-installs.md
Last active August 27, 2023 17:36
Post Installation steps for Windows 11
View windows11-post-installs.md

Activation

Activate with money or with your favorite tools.

Create folders

  • _staging (or M:) downloadCenter
  • (Shortcut) %HOME%\Downloads\localDownloadCenter

Personalization

  • Change host name (with powershell Rename-Computer)
@valorad
valorad / fcos-post-installs.md
Last active August 19, 2023 21:30
Fedora Core OS post installation steps
View fcos-post-installs.md
@valorad
valorad / promox-ct-mount.md
Last active August 2, 2023 20:42
Proxmox Container Mounting
View promox-ct-mount.md
@valorad
valorad / config.txt
Last active November 6, 2022 23:07
SSH Config Examples
View config.txt
# Linux: /home/me/.ssh/config
# macOS: /Users/me/.ssh/config
# Windows: C:\Users\me\.ssh\config
# macOS - localhost - fish shell
HOST localhost
Hostname localhost
User me
Port 22
IdentityFile /Users/me/.ssh/id_ed25519
@valorad
valorad / getRandomNumberBetween.apex
Created July 21, 2022 18:26
Salesforce Apex get a random Integer number ∈ [minValue, maxValue)
View getRandomNumberBetween.apex
/**
* get a random Integer number ∈ [minValue, maxValue)
*/
public Integer getRandomNumberBetween(Integer minValue, Integer maxValue) {
if (minValue > maxValue) {
// swap position
Integer tmp = minValue;
minValue = maxValue;
maxValue = tmp;
@valorad
valorad / proxmox-replace-disk.md
Created June 5, 2022 15:04
Proxmox use existing disk image
View proxmox-replace-disk.md

use existing disk image

  • create a vm
  • note down the vm id, disk location and disk size.
  • enter directory and make sure size is correct
  • replace the disk.raw file
  • enter command: qm rescan
@valorad
valorad / Powershell-set-alias.md
Last active June 5, 2022 13:53
Powershell set alias
View Powershell-set-alias.md

destroyVBox

e.g. Destroy VirtualBox (With Chocolatey already installed)

set-alias -name destroy -value "cuninst"
destroy virtualbox

@valorad
valorad / mount-cifs-smb.md
Last active June 5, 2022 15:21
linux mount cifs (smb share)
View mount-cifs-smb.md
@valorad
valorad / openSSH-instructions.md
Created June 5, 2022 13:41
OpenSSH Instructions
View openSSH-instructions.md

Linux

ssh-keygen -t ed25519

cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 400 ~/.ssh/authorized_keys