Category SSH

Using Sed in Bash scripts

Let me start out by saying I am NOT a script girl. I’ve worked with PHP for a decade and love my use of spacing. I’ve written 1 bash script that clones a database on a remote server and saves…

CPU 100%

Not something you want to see in an email when you’re on “vaca” (ie. teething baby). At least it didn’t crash the server several times. The database was up to 400% usage too. Wheee. I will be the first to…

Refresh local db bash script

Before my new job, I was used to having a script that would automatically pull a fresh copy of the production database at my command using AWS. With the current setup at work, it’s more of a manual deal which…

Editing the host file on a Mac

This is pretty basic in the dev world–editing a host file– but I’ve had to type up these instructions waaaaaay too often to send to our Marketing department. This post is purely just for me to send to them and…

Global .gitignore file

This is so simple I wish I knew it before. In every git project, there seems to be a set of local files that always get added to the .gitignore file. For example, PHPStorm users always get an .idea file…

mysqldump via ssh

Ever since I moved from the Heidi to DataGrip as a database GUI, I feel like some of the most basic things I was doing with mySQL was lost or it’s slow as heck. One of those exporting the database…

The SSH Clipboard

I have a confession: my memory sucks. Especially with the wedding right around the corner, it’s even worse. There are a bunch of random SSH commands that I don’t use all that often (even less with Docker now). Just wanted…

WordPress Command Line Interface

OMG it's been a year since my last update. So bad of me and so much has changed! Personal life is for a different post. This is all about the developer part.  Two years ago, I was working on a customed plugin that made calls to NASDAQ. There were a LOT of cron commands making API calls for updates. I found out pretty early that the 'Run now' button doesn't do what it says if there are 2 minutes or so before the next scheduled run. This became really annoying really quickly. Then, I had the most recent updates to plugins, I could turn on debug just fine and get errors to log just fine and dandy.

SCP (copy) folder/file from server to local

Anyone who has tried to update their local box or moved sites to a different server will notice that it's just not updating the database that is required. In my most recent scenarios, I'm trying to pull a fresh copy of a staging to my local and I'm missing all the uploads so it still looks weird.

SSH and Putty color schemes

I've been using Putty for SSH for over a year now. I really haven't changed the default settings since using it. After having to live in SSH the last couple of weeks, I got seriously tired of the black background and dark blue colors. SO annoying. I tried to do a lot of research on how to change it via SSH and profiles and .dircolors. It just wasn't working. I could get it to work temporarily when I sourced a file once but it never stuck. Tried it through Putty as well, but again, it never worked or the color scheme was replaced when I logged out and logged in. I was finally able to figure out what buttons to push and in what order thanks to one ServerFault thread that kind of shed light on it.

SSH and aliases

I've had one heck of a week at work. I was given a fresh server and was told to install PHP, mysql, GIT, and everything on it that's required for my application so my app could function and be secure. I had to do this via SSH. One thing that I'm not very good at. Thank god I am surrounded by guys who rock at it and have more SSH experience than me. One thing I quickly learned: Aliases are freakin' awesome.