Skip to content

Instantly share code, notes, and snippets.

View viteo's full-sized avatar

Viktar viteo

  • Belarus
  • 08:29 (UTC +03:00)
View GitHub Profile
@viteo
viteo / rust-epub.md
Last active October 19, 2023 13:28
Rust book generate EPUB

Source: atc0005/notes#20 (comment)

Directions:

  1. cargo install mdbook
  2. cargo install mdbook-epub
  3. git clone https://github.com/rust-lang/book rust-book or any other rust-book
  4. cd rust-book
  5. Modify book.toml (add "[output.epub]" at the end)
  6. mdbook build
@viteo
viteo / readme.txt
Last active February 8, 2021 12:27
Windows 10 20h2 settings
1. Change Account picture
Determine your account's SID in PowerShell:
$user = New-Object System.Security.Principal.NTAccount("USERNAME")
$sid = $user.Translate([System.Security.Principal.SecurityIdentifier])
echo $sid.Value
This should produce the SID which looks something like this: S-1-5-21-999999999-999999999-9999999999-9999
Create 40x40, 96x96, 200x200, 240x240, 448x448 jpg images and place them somewhere. e.g. "C:\Users\Public\AccountPictures\USERNAME"
@viteo
viteo / timetracking.bat
Last active May 21, 2024 01:01
Godot Engine time tracking for Steam
echo OFF
set godotexe=godot.windows.opt.tools.64.exe
dir %godotexe% | find "<SYMLINK>" && (
echo Already fixed.
goto FIN
)
if exist %godotexe% (
ren %godotexe% godot.exe