Galleries

  • Linux Cheat-sheet

    Linux Cheat-sheet

    As I get into Linux a little more and learn some handy commands, I’m going to document them here.

    ssh user@server -m [algorithm] Sometimes when reaching from Windows into Linux you need to force agreement on the security algorithm both sides are using

    ssh -Q mac to query what security algorithm are available

    nano –linenumbers [file name] text editor

    df -h to get list of folders and space in Linux

    fdisk -l to get disk info

    du -ah to get disk usage for all files and directory

    du -sh for current directory

    chmod 755 [file_name] grant most everything rights

    Ln -s [file or dir name] make symbolic link

    unlink [file or dir name] remove symbolic link

    rm -d to remove directory

    rm -dr to remove not empty directory

    history | grep [search term] -A 10 -B 10 ### search history and show the 10 lines before and after

    ls -a or -ll to list all files and folders with more details, or hidden ones

    ip -c a to get a list of network interfaces in color!

    sudo ip addr add [server IP]/24 dev [interface name] set the interface to use given IP, needs the following to turn on

    ip link set dev [interface name] up or down, to turn on or off a network interface

    ip route add default via [gateway IP] dev [interface name] sets default route to gateway

    sudo nano /etc/systemd/resolved.conf, scroll down and un-comment or amend “DNS=” line to add the DNS servers you need. Will have to restart service with sudo systemctl restart systemd-resolved

    sudo nano .bashrc (from home directory), scroll down to line 46 or so and un-comment the force_color_prompt line to get colored terminal output. You will have to logout/login to get the change.

  • Lucky 13 Racing

    Lucky 13 Racing

    I got the kids an Xbox for Christmas and started enjoying Forza Horizon 4 myself. The driving is simplistic with a joystick but I don’t want to commit enough to justify a $400 steering wheel for the console.

    That said, the game has a fantastic way of adding your own graphics to the vehicles. I picked the bright pink for no reason, I suppose. The Boy disavows it and the Girl thinks pink is too girly, so to annoy both of them? Anyway with that out of the way, I was able to add my racing number all over like Colnago labels his bikes. The Ford was the first, as I got new cars or trucks I added more yellow graphics to the sides.

  • A better way to cheat at voting

    I was flipping thru Facebook a little while ago and a few things popped up together: this is actually what america would look like without gerrymandering and Schwarzenegger rips gerrymandering congress.

    This got me to thinking, what could I do? I reached out to my local representative and am waiting a response. In the meantime I started looking at what’s out there on the internet and found these –

    I agree that using computers vs. people to make districts can produce unfair outcomes without any trouble. I’ll have to try the game and see what I can learn. After all, you put bad values into a computer program you will get bad output. And what is fair anyway?

    All this led me back to a series of videos from C.G.P. Grey where he covers this a few different ways. Perhaps the issue isn’t Gerrymandering but ‘winner takes all’?

    Something to ponder.