Skip to content

Instantly share code, notes, and snippets.

View jcarter62's full-sized avatar

Jim Carter jcarter62

  • Sacramento CA
  • 19:09 (UTC -07:00)
View GitHub Profile
@jcarter62
jcarter62 / 55-bytes-of-css.md
Created September 26, 2022 15:09 — forked from JoeyBurzynski/55-bytes-of-css.md
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@jcarter62
jcarter62 / install virtualenv ubuntu 16.04.md
Created August 1, 2019 23:56 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@jcarter62
jcarter62 / gist:28c1392a43d5750fe2c9
Created December 11, 2015 06:50 — forked from reidransom/gist:6042016
Auto-starting VirtualBox VMs on OS X

Auto-starting VirtualBox VMs on OS X

After finding a lot of other posts on the topic that didn't work out for me this one did the trick so I'm reposting for my own sense of self preservation.

Link to original article.

Copy the Virtualbox autostart plist template file to your system's LaunchDaemons folder.

sudo cp \

/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist \

@jcarter62
jcarter62 / node-deploy-as-upstart-service.md
Created November 16, 2015 00:58 — forked from learncodeacademy/node-deploy-as-upstart-service.md
Deploy Node.js app on Ubuntu as Upstart Service - instead of using Forever

Deploying a node app with Forever is great...until your server restarts unexpectedly. Then your app stops running and you have to re-deploy.

To get around this, we're going to run our node app as an Upstart service. Upstart services are great, because, once started, the system auto-restarts them if they fail, or if the server restarts.

###Step 1: Create a service for your node app

  • ssh in as root ssh root@youripaddress
  • Create a node-app.conf file in /etc/init
    IMPORTANT: whatever filename you pick is what you will use to start|stop|restart your service i.e. service node-app start
@jcarter62
jcarter62 / ubuntu-survival-guide.md
Last active May 20, 2018 17:40 — forked from tsaqib/ubuntu-survival-guide.md
Ubuntu Survival Guide