Category: Linux

  • Quickly find that new Raspberry Pi’s address

    Saw this the other day, and I wanted to post it, so that I can remember it. How to find a Raspberry Pi’s DHCP address:

  • vim: How to stop the tab annoyingness when you paste

    vim: How to stop the tab annoyingness when you paste

    This is a NoteToSelf. Often I paste into VI/VIM, and the tabs go crazy and fly across the screen, leaving the text starting in the middle of the line. Then next line is even further! I can never remember how fix the issue. To fix: :set paste

  • Note to self: cURL with data-urlencode for GET/QuerySting values

    I know I would loose this if I didn’t blog it. With cURL, you can use “–data-urlencode” with query string params and a GET if you include the “-G” parameter. Of course you still have to escape things out, I just found it easer to add all the QueryString params separately. All the examples I…

  • My WSL/BASH setup

    Not sure if this a “Bootstrap” or not, but I wanted to have my WSL/Bash home directory match my windows home directory. This is the code that I use when I setup a new WSL/BASH instance. This will find your home directory via PowerShell and put it in a variable “$WINHOME”. Then I make make…

  • My SSL/Certificate Cheatsheet

    Whenever a certificate needs to be renewed, I always have to scramble to remember how to update/renew. I finally put a cheat sheet together. I decided I will do all cert related stuff form Linux. Here are some commands: To request a new csr with a new key: To request a new csr with an…

  • Using Let’s Encrypt, cerbot-auto with Apache on CentOS 6

    There are plenty of better documented examples out there, so this is more of a note to self. The name on the cert will be the first domain you list int he command above. All the other names will be part of the SAN cert. And to renew, cron this up: /opt/YourDir/certbot-auto renew

  • Raspberry Pi, Raspbian Jessie (based on Debian Jessie) disable AutoLogin GUI & Console

    I did NOT want my Raspbian Jessie install to automatically boot into the GUI, and I did Not want it to autologin. I know I can run raspi-config to change it, but I like to script things! I finally tracked down the code for the new raspi-config that supports systemd. It can be found here . Here are…

  • BASH script to change the Security Keys and SALTs in a wp-config.php file

    I wanted to automatically change the Security Keys/SALTS when provisioning a new WordPress site. WordPress.com has a service that spits back random values. (https://api.wordpress.org/secret-key/1.1/salt/). The script below CURLs the values and then modifies a wp-config.php file with the new random values. Don’t remember where I got the pieces of this, but here it is, I…

  • My git notes

    Been playing around with git to manage my “Environment”. This is a note to self. May add more at some point List files that have been “staged” git diff –name-only –cached To create a “Centro repo” To setup an empty central repo: mkdir /your/path/folder/project.git cd /your/path/folder/project.git git init –bare –shared To add files to the…

  • My Debian/Raspberry Pi cheat sheet (translations from CentOS)

    I have worked on Solaris and RedHat/CentOS (although Solaris was many years ago, so I  should just admit that I no longer know where anything is). I find Debian to be a different dialect than RedHat. This post is going to serve as my translation cheat sheet. I use the  bash complete string below with…