Skip to content

Instantly share code, notes, and snippets.

View valorad's full-sized avatar
🤕
è

Valorad the Oneiroseeker valorad

🤕
è
  • SCET
  • Dhirim
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

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 November 6, 2023 17:59
Post Installation steps for Windows 11

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 September 29, 2024 17:27
Fedora Core OS post installation steps

Podman sucks at this stage. Please enable docker

  1. Enable docker
systemctl enable docker
  1. Add yourself to docker group. Log out and log back in to take effect
@valorad
valorad / proxmox-ct-mount.md
Last active October 24, 2023 16:52
Proxmox Container Mounting

Need to login as root

Host: /etc/pve/lxc/XXX.conf

arch: amd64
cores: 1
features: nesting=1
hostname: MY_HOST_NAME
memory: 512
@valorad
valorad / config.txt
Last active November 6, 2022 23:07
SSH Config Examples
# 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
Last active February 2, 2024 19:45
Salesforce Apex get a random Integer number ∈ [minValue, maxValue)
/**
* 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

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

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)

Create credentials

=> /etc/samba/credentials

username=myuser123
password=xxxxxxxx
@valorad
valorad / openSSH-instructions.md
Created June 5, 2022 13:41
OpenSSH Instructions

Linux

ssh-keygen -t ed25519

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