Skip to content

Instantly share code, notes, and snippets.

View valorad's full-sized avatar
🤕
è

Valorad the Oneiroseeker valorad

🤕
è
  • SCET
  • Dhirim
  • 05:41 (UTC -04:00)
View GitHub Profile
@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 / 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 / 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 / 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
@valorad
valorad / changeDriveLetter.ps1
Created June 5, 2022 13:28
Change the drive letter in PowerShell
Get-Disk
Get-Partition
Remove-PartitionAccessPath -DiskNumber YOUR_DISK_NUMBER -PartitionNumber YOUR_PARTITION_NUMBER -Accesspath CURRENT_DRIVE_LETTER:
@valorad
valorad / dism-repair-image.md
Created June 5, 2022 13:26
dism repair image

online (meaning repairing current running system):

Admin powershell:

Repair-WindowsImage -Online -ScanHealth
Repair-WindowsImage -Online -RestoreHealth

offline:

@valorad
valorad / GRUBBootLoader.md
Created June 5, 2022 13:21
GRUB boot loader

Ubuntu set grub timeout

/etc/default/grub should contain: GRUB_RECORDFAIL_TIMEOUT=10

@valorad
valorad / fedora-LXQT-install-xrdp.md
Last active June 5, 2022 13:19
Fedora LXQT set up Remote Desktop (xrdp)
@valorad
valorad / arch-KDE-install-rdp.md
Last active June 5, 2022 13:18
Arch Linux KDE set up Remote Desktop (RDP)