Jump to content
  • entries
  • comments
  • views

About this blog

linux & windows & any other popular os:

tips tricks and general observations on any hardware,os,software and other it related stuff.

-stuff i wish i had come across years ago as it would have made life easier 

-stuff i think everyone knows but proves me wrong everytime

-stuff that is but shouldnt be

-stuff that seems like a nobrainer to me but isnt 

Entries in this blog

Only in Python ...

Not to take a piss on python , i actually like the languagee , especially the development speed you get with it. but... only in python are things that are an order of magnitude faster in other languages actually much much slower:   Branching logic vs Branchless Logic: import random from time import perf_counter_ns,sleep testnrs = [random.randrange(0,5,1) for _ in range(2**20)] def branch(nr,idx,result): if nr < 1 : result|=int((str(abs(result))*9)[1:3]) elif nr ==


Herr.Hoefkens in complaints

VI Improved(vim) and everything wrong with it!

so after postponing for 15years i finally decided to give vim a go.... these are my issues with it most of them are applicable to the out of the box fesh installation of it.   lets start with the first couple: for a keyboard oriented editor (everything availeble from commands and functions without your hands needing to change positions ~ everything availeble from homerow) , to the point wer navigating a document (usually arrows) is duplicated to the keys hjkl , you do have

pacman is dumb really dumb from time to time

here is another thing that really sucks hairy monkeyballs in any arch based distro: so apparently pacman knows these two packages are actually the same as they occupy the same slot (conflict): :: ki18n and ki18n-git are in conflict. Remove ki18n-git? [y/N] (=>both answers haave the same effect the process exits)  but even if sees the conflict it doent actually know these are the same packages, since the -git version is installed lets check what version of the package is curren

Everything is a file is maby not always the best

sometimes the "everything is a file"  approach on *nix systems is great sometimes its not really especially when programming its not. the filesystem structure of certain  " special/magic" directories and there files is maybe unlikely to change in the near future. but filepaths tend to be just strings most of the time. even when they arent at first glance if you follow the trail down to where they are actually constructed they usually end up being just a collection of hardcoded str

Some nice BAT (b-cat) functionallity:colorize [pattern] to STDOUT on the fly [oneliner|script]

#!/usr/bin/env sh READFROM=$1 MATCH=$2 COLOR=$[ 29 + 0$3 ] printf "\nPress \033[1;32m[ctrl]+[c]\033[0m to quit.\n\n" function help() { echo 'USE: $ bwatch [PATH] [STR] [INT]' echo 'PATH : file to watch' echo 'STR : string to watch for' echo 'INT : {0..16} Color (ANSI 29+)' echo ' : eg: 2 = RED 3 = GREEN ,... ' echo 'TIP: use in Terminal with miniview/minimap to quickly spot highlighted content;eg http://terminolo.gy' exit } [[ $1 == -h ]] && help tail -n 5 -f $READFROM | bat

bootable windows setup usb on linux , that is capable of  booting in EFI mode and with secureboot enabled

making a bootable windows setup usb on linux , that is capable of  booting in EFI mode and with secureboot enabled :   01. Connect your USB Flash drive. Please note that you will be erasing all the data on it. 02. Open a disk manament app capable of setting efi guids (cgdisk gdisk parted ,...). 03. Delete all partitions on the USB drive 04. Create a new, 1GB partition and give it a GUID for ESP (EF00 in gdisk). and NAME it "ESP" (this will be  its partlabel) 05. Create a second

first entry linux programs and tools i wish i had known about 10 years ago

Commandline: ccat : a colorized version of cat  use : $cat /etc/fstab # flags = --bg="dark" # has nice feature to output html with --html=true $sensors | ccat --bg="dark" # reading from stdin # notes : to be usefull you should put it as an alias in your ~/.bashrc (or your aliases.bashrc): alias ccat="ccat --bg='dark' -G Decimal='*green*' -G Keyword='blue' -G Punctuation='*yellow*' -G Plaintext='reset' -G String='brown' -G Type='*white*' -G Literal='fuchsia'" $mic