Tag Archives: Linux

Download and Backup Digital Ocean Snapshot Images

Download and Backup Digital Ocean Snapshot Images NOTE!: I haven’t had time to test going back and restoring. I am hesitant to remove my images from DigitalOcean until I can confirm the backup is working properly. I’ve been holding back on posting this until then, but I’m tired of sitting on this and hope it […]

Posted in Hosting| Also tagged , , , , , , , , , | Leave a comment

RVM is not a function in VSCode

RVM is not a function While trying to change my ruby version with rvm use in VSCode with RVM I kept getting this error: RVM is not a function. Login Shell I found out that VSCode was not using a login shell for the terminal. In turn, this was not loading up the proper bash profile. […]

Posted in Mac| Also tagged , , , , , | Leave a comment

How to resize a VirtualBox drive vdi

I was setting up some software on my VirtualBox OS that said it needed 20 GB of free room. The problem was that I only had 6GB of free room; I should have just made a large dynamic sizing drive to start with, but I didn’t… Without further ado here’s how to resize a VirtualBox drive vdi […]

Posted in Virtual Machines| Also tagged , , , , , , , | 2 Responses

Fix “502 Bad Gateway” error on NGINX with PHP, ISPConfig, and WordPress

The Error I recently added a new site through ISPConfig and I was receiving 502 Bad Gateway errors when trying to access a WordPress install I was trying to set up. Diagnosis This error is due to the PHP endpoint not existing when the server tries to access it. I noticed that the web .sock in […]

Posted in Web Development| Also tagged , , , , | 1 Response

Linux Find Out How Much Each Folder Is Taking Up

NCurses Disk Usage This tool will allow you to see how much disk space each directory is using. It will run from which ever current directory you are running it from. It is really useful to find out where your disk space is going and what is using it. From the site http://dev.yorhel.nl/ncdu Ncdu is […]

Posted in Linux| Also tagged , , , , , , , , | 1 Response

Linux Delete Directories or Files By Name

The Code Explanation We use the find command in the current directory(.) to search for a name starting with 2013- followed by anything, which is of type d for directory. We then pipe (|) the found directories over to the xargs command which runs the remove command (rm) with the options of recursive (r) and forced […]

Posted in Interesting Finds| Also tagged , , , , , , , , , , | 1 Response

Linux Tar, Zip, Gzip Matching Files In Current Directory

The Code   Explanation We use the find command with “.” as the current directory we’re in, so I used “cd” – change directory to where I wanted to zip up files. The -name parameter is then finding any thing starting with “2013-“ followed by anything else via the “*” wildcard.  The “-type d” restricts the […]

Posted in Interesting Finds| Also tagged , , , , , , , , , , | 1 Response

Linux Ubuntu 12.04 “Waiting for network configuration”

For some reason my machine decided to just kick the bucket over at Digital Ocean. I think it happened after some settings I changed in ISPConfig for the server IP information. I was trying to update the information because this was an image I used at an earlier time, and the IP changed. I hopped […]

Posted in Interesting Finds, Linux| Also tagged , , , , , , , , , , , , | Leave a comment