Migrating my Inspircd server

0) Install inspircd on newbox 1) from oldbox: scp -r /etc/inspircd root@newbox:/etc 2) from oldbox: scp -r /home/irc root@newbox:/home 3) on the newbox: chown -R irc /home/irc 4) edit the motd to make it unique 5) Install gnutls-bin libcurl3-gnutls libgnutls26 libgnutls-dev libneon27-gnutls 6) Copy over the old m_ssl_gnutls.so file because apparantly the new one doesn’t work. (this is more for my own personal thing…not for you exactly.)


Because we can...

telnet towel.blinkenlights.nl dig ch whois.cloudflare @emma.ns.cloudflare.com traceroute 216.81.59.173


Fixing nodejs packages from cloned repo

Went through this with Dillinger, a live markdown converter that makes it easy to write markdown! cd rm -rf node_modules npm install Here’s where I found the fix: https://github.com/lefnire/habitrpg/issues/781


Trying to flash your NAND by booting to Xell/Xellous

Just dump your updflash.bin at the root a fat32 (msdos) formatted usb stick and do the following….this should work with any version of xell/xellous:: For best results of getting the usb device detected. Remove the power plug from the console after running the MS dashboard. Then reinsert the power plug, insert usb device and then boot into XeLLous. More on this whole Xell process stuff here from xbox scene


Understanding sessions/windows/panes in tmux

OK YOU READY?!??? When you run tmux, you create a new Session. In that session, you are put into a Window (usually 0) In that window, you can create panes (usually [prefix]+” and [prefix]+% depending on horizonal or vertical) To create a new window, [prefix] + c So each window will have a statusbar at the bottom, yet each window will share the same list of available windows in the session looking like:

Continue reading ↦

iTerm2 tmux integration

So I experienced tmux last week for not the first time but the “definitive time” where I actually played/studied it and configured it to my liking. One of the key things I loved about it was the epic mouse integration for scrolling, selecting panes, and resizing panes: #enable mouse support setw -g mode-mouse on set -g mouse-select-pane on set -g mouse-resize-pane on set -g mouse-select-window on I also enabled the tmux plugin for oh-my-zsh which adds a few nice features, primarily allowing you to not have to type “attach”.

Continue reading ↦

Seriously managing ssh forwarding in virtual terminals and beyond...

Ok so this gets a little intense to think about but its something you might run into if you are using virtual terminals with ssh keys and agent forwarding etc.. NOTE: All code involved here is stored and updated at my github here!! for all intents and purposes, tmux = screen for the rest of the article. My first problem: When leaving a tmux session running on a server, logging out of that server and going home, logging back in and pulling up my tmux session (tmux attach), my key forwarding doesn’t work anymore.

Continue reading ↦

Multiple expression if statements in bash

Because I always forget how to do this: if [ “$1” == “help” -o “$1” == “-h” -o “$1” == “?” ]; then echo “don’t forget!” else echo “aww dude you forgot” fi thanks crazed monkey


Utilizing lftp for super fast sftp downloads (parallel and segmented!!)

Don’t know what lftp is? Look here. (it’s only the most feature rich, fastest, most epic file transfer program for linux:) So lftp is a little tricky when trying to use it in scripts etc.. since its meant as an interactive ftp application/client. However, it is possible to use it with one command and also to utilize ssh keys. Here’s an example: lftp -u username,placeholder -e “set sftp:connect-program ‘ssh -a -x -i /home/username/id_rsa.

Continue reading ↦

Automatically providing ssh with a password

So at work, I log into a lot of test boxes that share a common password (most of the time). Now while the password isn’t too long, I still would prefer to not type it every single time i log in to these boxes. Ohh and the installed OS is always changing (part of our testing) so ssh keys isn’t an option. So I needed a way to ssh via providing a plaintext password on the cli (or through a variable/file, etc.

Continue reading ↦