Skip to content

Instantly share code, notes, and snippets.

@timofeika
timofeika / GW2.cmd
Last active April 17, 2019 14:00 — forked from JelaMiraj/GW2.cmd
Automatically update ArcDps and BuildTemplates from deltaconnected for Guild Wars 2
::[CmdletBinding(SupportsShouldProcess)]
::param
::(
::# Update these values to where you have GW2 installed and named
:: [Parameter(Position = 0)]
:: [System.String]
:: $Gw2Path = "D:\Games\Guild Wars 2\Gw2-64.exe",
::
::# This line can be removed if you don't want to pass any arguments
::# It does not get used if you already have a "%APPDATA%\Guild Wars 2\Settings.json" file
@timofeika
timofeika / getXML.go
Created April 16, 2020 01:38 — forked from james2doyle/getXML.go
Use HTTP to GET and parse XML in golang
// tweaked from: https://stackoverflow.com/a/42718113/1170664
func getXML(url string) ([]byte, error) {
resp, err := http.Get(url)
if err != nil {
return []byte{}, fmt.Errorf("GET error: %v", err)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return []byte{}, fmt.Errorf("Status error: %v", resp.StatusCode)
@timofeika
timofeika / vmdk_vhdx.md
Created May 27, 2020 22:10 — forked from rahilwazir/vmdk_vhdx.md
Convert VMWare to Hyper-V (vmdk to vhdx)

VMDK to VHDX

Follow [steps][1]:

  • Download: http://www.microsoft.com/en-us/download/details.aspx?id=42497
  • Open Powershell as administrator and run Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
  • And after ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath d:\scratch\vmx\VM-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat vhdx -destination c:\vm-disk1
@timofeika
timofeika / Arch_Linux_Root_On_ZFS.md
Last active April 27, 2021 05:17 — forked from p7cq/Arch_Linux_Root_On_ZFS.md
Install Arch Linux with Root on ZFS

Arch Linux Root on ZFS

Installation steps for running Arch Linux with root on ZFS using UEFI and systemd-boot. All steps are run as root.

In live environment

// Not needed

  • Set a bigger font if needed:
// setfont latarcyrheb-sun32
@timofeika
timofeika / Fedora_Root_On_ZFS.md
Created May 7, 2021 13:27 — forked from p7cq/Fedora_Root_On_ZFS.md
Fedora with Root on ZFS - installation notes
@timofeika
timofeika / archtweaks.md
Created October 8, 2021 10:32 — forked from lbrame/archtweaks.md
Tweaks I've made to my Arch Linux installation

Arch Linux tweaks

This is a collection of the tweaks and modification I've made to my Arch Linux installation over the months. These may be applicable to other distros, but please check first before doing anything. I also included Arch Wiki references for all the procedures I mentioned. My recommendation is not to blindly follow this gist but to always check with the Arch Linux wiki first. Things move fast and by the time you're reading this my gist may be out of date. Lastly, the golden rule: never execute a command you don't understand.

Installing the KDE Plasma desktop

My current DE of choice is KDE's Plasma. I find it just about perfect.

There are various ways to install it on Arch. The most popular one is to install plasma and plasma-applications, but I don't like doing that because it comes with too many programs I'll never use. I, instead, install the base plasma group, remove the few extra packages that come with it, then I finish off by installing a few KDE apps that don't come with th

Install ZSH on Linux and make it your default Shell

Bash (Bourne Again Shell) is the default command-line shell on many distributions. Zsh (Z Shell) is a powerful shell that operates as both an interactive shell and as a scripting language interpreter.

🚀 Installation

1. Install the zsh package:

  • Ubuntu/Mint:

sudo apt install zsh
  • Fedora:

@timofeika
timofeika / archlinuxzbm.md
Last active September 7, 2024 21:48 — forked from Adito5393/archlinuxzbm.md
Arch Linux with ZFS root, zfs-dkms, ZFSBootMenu, and Secure Boot enabled (nothing changed compared to the upstream - last merged upstream revision 2024-02-22)

Install Arch Linux with ZFS root filesystem, zfs-dkms, ZFSBootMenu, Pacman Auto-snapshots, Secure Boot enabled

Configure system BIOS

Disable Secure Boot. ZFS modules can not be loaded if Secure Boot is enabled.

ZFS automated install script

Before moving on I need to point out that there exists a script that can automate the configuration and install of a ZFS root system. However as convenient as it sounds the script is limited in flexibility and scope. These limitation cannot be overcome unless one has the time and compacity to edit the script to their liking. If you want to install a ZFS root system as quickly as possible and don't care about any particulars than take a good look at this github page.

@timofeika
timofeika / Arch-Install-SED-Luks-Btrfs.md
Created September 23, 2024 14:46 — forked from s3rgeym/Arch-Install-SED-Luks-Btrfs.md
Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs

image

Вся суть харча™ (на самом деле все далеко не так...)

Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs