Skip to content

Instantly share code, notes, and snippets.

View jcarter62's full-sized avatar

Jim Carter jcarter62

  • Sacramento CA
  • 22:26 (UTC -08: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 / gist:998ee21f1ae296f970c0e8973f6c1ebc
Last active February 21, 2020 19:59
Ubuntu 18.04 - Python Setup

#Ubuntu Server Setup

Things to do:

[ ] Update Available Package Lists:

# sudo apt-get update

Upgrade installed packages:
# sudo apt-get upgrade

@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:1149195a1dfc543feb0e83af3328533f
Last active July 23, 2019 22:12
deploy python app to linux
Things to do:
Update Available Package Lists:
# sudo apt-get update
Upgrade installed packages:
# sudo apt-get upgrade
Other Tasks:
# sudo apt-get autoremove
@jcarter62
jcarter62 / gist:b6522cfd1fcc9ba7ecfd535ac4329d04
Last active July 17, 2019 10:34
vim configuration - default colors
The following link shows how to change default color settings in for ubuntu vim.
https://unix.stackexchange.com/questions/88879/better-colors-so-comments-arent-dark-blue-in-vim
@jcarter62
jcarter62 / calculator.cpp
Created June 14, 2018 22:56
simple c++ calculator
//
// main.cpp
// calculator
//
// Created by Jim Carter on 6/14/18.
//
#include <iostream>
using namespace std;
@jcarter62
jcarter62 / vi info.md
Last active September 11, 2016 07:18
vi information
Vi Tutorial / Info
I have used vi on and off for about 35 years.
With the introduction of docker & linux server distros, small efficent editors are needed once again.
I use only a few of the many vi commands, so I went looking for a quick reference. Here is one I found.
Reference: http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Editors/ViIntro.html
<title>An Extremely Quick and Simple Introduction to the Vi Text Editor</title>
@jcarter62
jcarter62 / win10fixstartmenu
Last active February 11, 2016 22:52
windows 10, fix start menu issue
Youtube describing this issue:
[https://www.youtube.com/watch?v=eIwiTJhNFrs](https://www.youtube.com/watch?v=eIwiTJhNFrs)
Here is the powershell command:
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"­}
---
Another method:
open c:\users\username\appdata\local\ and rename TileDataLayer, and then restart.
@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 \