blog

This blog is me talking about my stuff, what I do and from time to time, in order to improve the state of the internet and promote better content and google hits for other people, I will also post solutions to various other problems I’ve found.

Enjoy!

Restarting Alsa
23 July 2017

Sometimes after I wake up my computer after a hibernate I notice that sound is not playing. A simple fix for this seems to be to restart alsa:

$ pulseaudio -k && sudo alsa force-reload

Found on Stack overflow

I recently got a notice that my SSD C: drive was getting low on space and after a quick check with WinDirStat I noticed that spoitfy was filling it up with loads of weird files in the AppData\Local\Spotify\Data folder, even after I have moved my cache location. It turns out the “cached location” is only the saved playlists, and the Data folder is the cached songs that arent in a playlist.

Read the rest...

A better git log
22 February 2017

I’ve just changed my git log command from the standard: to the more compact and colorful: It’s simple to get this log. Just type in: $ git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit I guess that’s a bit too long, eh? Let’s just make an alias. Copy and paste the line below on your terminal: $ git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" And every time you need to see your log, just type in

Read the rest...

 #git  #code or (all)
Shoelacing
18 September 2016

I recently bought new shoes and needed to lace them, hence it’s time to google how to lace shoes again. Ians shoelace site is my favorite and I’ve been visiting it for what it seems like an eternity. I don’t know much about the competition, but I can’t find anything missing from it. It’s the best!

http://www.fieggen.com/shoelace/

I have tried using /proc/acpi/wakeup and I’ve tried looking in /sys/bus/usb/devices/SOMETHING/power/wakeup for devices that will wake up the computer, however I finally fixed my random wakeup problems with a tool called acpitool. It is really quite simple. First you need to install it, unless you already have it installed: $ sudo apt-get install acpitool Once it’s installed you can list what you can do with it, and to make it works.

Read the rest...

Recursive search is the default in nautilus (search in subfolders), but I prefer type ahead search(only search in current folder).

This is easy to change, but not very obvious. In dconf-editor navigate to org > gnome > nautilus > preferences and set the enable-interactive-search value to what you’d like to use.

http://www.webupd8.org/2014/01/nautilus-type-ahead-find-feature.html

It turns out google has removed it from various links, so I don’t know how long this link will last, but here it goes:

http://www.blogger.com/revert-profile.g 

Pretty simple but it took far too long to find it.

I like to view folders before my files with Files/Nautilus, and here is how to enable it :

In dconf-editor navigate to: org.gnome.nautilus.preferences key and set sort-directories-first to true.

After upgrading to Windows 10, my computer started randomly waking up. This extensive guide on superuser has proven time and time again to be a perfect guide to keep windows from waking up.

Test markdown
20 February 2015

Here’s a code chunk with syntax highlighting: var foo = function(x) { return(x + 5); } foo(3) $ echo $EDITOR vim $ git checkout master Switched to branch 'master' Your branch is up-to-date with 'origin/master'. $ git push Everything up-to-date $ echo 'All > done!' All done! You can write regular markdown here and Jekyll will automatically convert it to a nice webpage. I strongly encourage you to take 5 minutes to learn how to write in markdown - it’ll teach you how to transform regular text into bold/italics/headings/tables/etc.

Read the rest...