I decided instead of springing for a monthly github payed account I’dinstall git on a server and use a decent web interface that could beeasily installed.
After browsing the web for ages to find a decent solution to backup myserver to amazon s3 I finally came across one and I’m just throwing itup here. So basically all I need it to do was backup my sites(filesystem and mysql databases) and some config for lighttpd.
I use an absolute ton of awesome tools my various linux distros. Theproblem is I tend to forget a lot of the time how to use the tools, so Igot a list of frequently used command with and a few examples of how touse them from here.
My servers started getting unusably slow at peak hours lately and Idecided, midst panic to vaguely attempt to document the various things Ihad to go through to narrow down the problem, anyway I’m sticking themup here so a) I don’t lose the list and b) it might be of use to someone…
I’ve created a little command line diary script for anyone whose interested. It stores your diaries in separate txt files so you know all of your memories will always be accessible to you in a format you’ll always be able to read. It’s super quick and easy to use. It’s…
Quick script to setup a new virtualhost entry for apache. Works for meon archlinux.
#!/usr/bin/python import sys, os, subprocess
vhosts_file = “/etc/httpd/conf/extra/httpd-vhosts.conf” hosts_file = “/etc/hosts”