Friday, August 31, 2018

Wednesday, February 22, 2017

A better git log

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
git lg

Everything here is shamelessly copied from this article: https://coderwall.com/p/euwpig/a-better-git-log

Sunday, September 18, 2016

Shoelacing

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/

Keep your ubuntu-gnome from waking up at random

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.

~ acpitool --help

Then you can list all your devices (small w)

~ acpitool -w
   Device    S-state      Status   Sysfs node
  ---------------------------------------
  1. SBAZ      S4    *disabled  pci:0000:00:14.2
  2. PS2K      S3    *disabled
  3. PS2M      S3    *disabled
  4. UAR1      S4    *disabled  pnp:00:06
  5. P0PC      S4    *disabled  pci:0000:00:14.4
  6. UHC1      S4    *enabled   pci:0000:00:12.0
  7. UHC2      S4    *enabled   pci:0000:00:12.2
  8. UHC4      S4    *enabled   pci:0000:00:13.2
  23. PE21      S4    *disabled
  24. PE22      S4    *disabled
  25. PE23      S4    *disabled
  26. USB3      S4    *enabled   pci:0000:00:13.0
  27. USB5      S4    *enabled   pci:0000:00:16.0
  28. PWRB      S4    *enabled   platform:PNP0C0C:00

Then it's just a matter of disable all the devices you don't want to wake up the computer (large W).

~ sudo acpitool -W 6

Don't disable everything, then you can't wake the computer again :)

I keep the power button enabled. And have configured the computer to hibernate when it's pressed, giving me a nice symmetry.

Saturday, August 27, 2016

Non recursive file searching in Nautilus

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

Friday, August 26, 2016

Revert google+ to a standard blogger profile on blogger

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.

Folders before files in ubuntu

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.

Windows 10 wakes up from sleep at random


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.

First post - improving the internet

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!