content top

Make permanent swap file in Linux

In Linux you can create a swap FILE that performs pretty much the same function as a separate swap PARTITION, but not with the problem that if later you need to resize some partitions you have to dick around with a partition that's in the way. Yes, I know you can delete it and fix things later but to me it just seems easier to not have to worry about it. Again, this little cheat sheet is something that's mostly for myself, a quick...

Read More

Self-hosted alternatives to DropBox

Why an alternative? I've tried a number of alternatives to Dropbox, to run your own Cloud system. I know there are people that say that things like LiveDrive and DropBox are great already, but often you have to pay money to get space. There are also the horror stories out there, some of which I have experienced through colleagues of mine that have found their LiveDrive account suddenly blocked and wiped because it 'violates the terms of...

Read More

Solution to Windows 7 preview pane size problem

Short answer: Yes, there is a solution! You probably went through the entire internet looking for a solution for the nasty problem in Windows 7 where the preview pane magically grows in width seemingly randomly. Today it annoyed me so much that I made a solution, and it is easier than it looks. Basically all you need to do is DENY the 'Set Value' permission for your user account to this registry key, preventing Windows Explorer from writing...

Read More

MySQL command-line cheat sheet

As we all know, the hallmark of a good technician is the balance between laziness and productivity, where the important thing to note is that we are usually only productive about something that we want to be lazy about. I don't know if that makes much sense but I do know I have to keep looking up these simple commands online on how to do simple MySQL tasks on the command line, so I made a collection of commands I often use and put them on...

Read More

Passwordless SSH login with keypair

Yeah, shitloads of these guides are already out there. This is just a note more for personal use. This is useful for running rsync over SSH in an automated script.   Generate key on client side and secure it: mkdir ~/.ssh;cd ~/.ssh;ssh-keygen -t rsa;cat id_rsa.pub >> authorized_keys;chmod 600 authorized_keys   Use ssh-copy-id utility to copy public key to target machine: /usr/bin/ssh-copy-id -i ~/.ssh/id_rsa.pub...

Read More
content top