The Blog of Someone Who Builds Things on the Internet

I google how to do things, then post the answers here cause I'll probably forget. Maybe someone else finds it useful.

Make a zip of files in PHP

Published February 23, 2017
There is this form that people enter a bunch of info and attached 1 to 7 files too. The files get uploaded to a web server directory and the form responses are stored in a mysql table. I wanted to create a script that would let me download all responses including the uploaded files, as having to SS…
Read more →

Terminal Command Shortcuts

Published February 22, 2017
Typing long commands out in the terminal can be a pain, like SSHing into a server you use daily. To make a shortcut, edit your bash_profile nano ~/.bash_profile Then add the shortcut by adding this line to the bottom of the file alias someservername='ssh -p 1234 username@sshserver.com' Then all you…
Read more →

Using virtualenv

Published February 21, 2017
I always forget how to activiate the virtualenv when working with Django source newenv/bin/activate To close it when done deactivate
Read more →

Using wordpress to post about coding

Published February 21, 2017
There's a good post on CSS-Tricks about using wordpress to post code, which is all I plan to use this blog for. Here is a summary of what I did. Post Using Markdown This makes it easier to post code without having to worry about the editor messing up your post. Sidenote: I think Wordpress is great,…
Read more →