03 July 2018

Weather via command line

I don't remember where I got this info, but visit the site for more info.

As the title say, you can view a weather forecast via command-line interface with this (white spaces should be changed to _ as usual):

curl wttr.in/<your city>

I've created an stupid script to make things more.. uh.. fancy.
It's available here

04 June 2018

Microsoft aquired github

That's right, you can read about here.

I was on the verge to migrate my repos to gitlab, now I have another good reason to do it. My new git repo is available here.

25 January 2018

Using Logical Volumes as disk images for virtualization

      In most scenarios, using raw devices can increase the performance. Of course, the application should know how to deal with that. Why? Because you take away the overhead that the file system can cause (again, if the application know how to deal with that).
     I see in my entire life databases having more performance because are using raw devices (disregard what the dumb people says in tongues without any proof).

What I've tested

Linux and FreeBSD Virtual machines have a significant increase of I/O performance.

What I didn't tested

Windows VMs (well windows do a shitload of I/O, probably it's a good idea if you're into this crap)
BSD VMs (not yet)
Resizing (I don't know if it's possible, I'll test later and update this post)

05 January 2018

Privacy repository

I've created a repo on github to pull together all the privacy stuff and how to fix it (disregard the operating system). 
So don't do anything stupid, read the scripts before executing, specially because we're talking about windows and one of them are about flashing your bios (IntelME). I'm not responsible if your house goes in orbit because you did something wrong without read first.



04 December 2017

Prevent apple OS from creating .DS_Store and other bullshits

I don't think I have to explain about that. Everyone that had to admin an ecosystem that have one or more apple users know how this can be a nightmare in many different scenarios (specially because at some point, MacOS doesn't care even to hide the files anymore when dealing with network shares, external drives and so on, how nice).

Well... this needs to be applied with the MacOS:

Prevent MDS from attempting to Index
sudo touch /Volumes/volume_name/.metadata_never_index

Disable Indexing AND Searching of Volumes (if necessary)
sudo mdutil -i off -d /Volumes/volume_name

Delete existing Spotlight Index (if necessary, to start over, whatever fits you)
sudo rm -rfv /Volumes/volume_name/.Spotlight-V100
sudo rm -rfv /.Spotlight-V100

Disable creating '.DS_Store' bullshit on USB volumes
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

Disable creating '.DS_Store' bullshit on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

Now that you've cleaned the mess, remove this bullshit from your drives:
find /path/you/want/to/clean/ -name ".DS_Store" -depth -exec rm {} \;

12 October 2017

Fixing the network device names

     If you are struggled with a distro with systemd for a random reason, you can fix this dumb nonsense of network devices with this command:

ln -s /dev/null /etc/systemd/network/99-default.link

     I don't know what will break doing this, but since I'm testing this crap using a VM, I don't really care (but you should, so beware where are you doing this). I've tested on Debian and Arch.
     Some people reported that most problems with network manager can be fixed when doing this. 

Update: You can also fix this in non-systemd distros using this in your boot: 

 net.ifnames=0 biosdevname=0

09 October 2017

Sensors for ASUS P8H61-M LX2 R2.0

     It's just a configuration for sensors of this motherboard (since lm_sensors website is long gone and I never find anything about the sensors for this motherboard). After reading a lot of stuff, I think I figure out to be more readable. Pay attention to some ignored values since some of them is just because I don't have it enabled/present (like case fan, intrusion, etc). Don't mind the way i've formated, blogger doesn't let me use damn tabs (it's on my github).