Skip to content

Instantly share code, notes, and snippets.

View joshwiens's full-sized avatar

Joshua Wiens joshwiens

View GitHub Profile
@joshwiens
joshwiens / gist:f3fb4e49af6619fdb084
Last active August 29, 2015 14:25
Ubuntu 14.04 Oracle Java 7 JDK Install
#Adds the PPA from webupd8team and allows apt-get access to the oracle Java 7 JDK
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
#Installs Oracle Java 7 JDK
sudo apt-get install oracle-java7-installer
#Note the system path for java-7-oracle
sudo update-alternatives --config java
@joshwiens
joshwiens / keyboard-shortcuts-atom-editor.md
Created January 31, 2016 23:57
Atom Editor OSX Shortcuts for noobs like me :)

Atom Key Shortcuts

Symbol / Key Mapping

Symbol Key Definition Symbol Key Definition
Command key Delete key
Control key Left arrow key
Option or Alt key Down arrow key
Shift key Right arrow key
Return or Enter key Up arrow key
@joshwiens
joshwiens / styles.less
Created February 25, 2016 15:50
Atom italic attribute names
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
border-color: #7797e9;
border-width: thin;
}
// Changes attribute names to display in italics
// Be sure to use a font that has an italic font style ( Source Code Pro for instance)
atom-text-editor::shadow .entity.other.attribute-name {
font-style: italic;
@joshwiens
joshwiens / nginx.conf
Created April 22, 2016 23:14 — forked from chrisallenlane/nginx.conf
This is an nginx configuration that does the following: - Implements a RESTful API using CORS between `example.com` and `api.example.com` - Uses SSL - Reverse-proxies SSL traffic from port 443 to a NodeJS application running on port 8000 Adapted from this page, with thanks to the original author: http://enable-cors.org/server_nginx.html
# Configure the reverse-proxy on port 443
server {
# general configs
keepalive_timeout 30;
listen 127.0.0.1:443 ssl;
server_name api.example.com;
# ssl configs
ssl_certificate /path/to/api.crt;
ssl_certificate_key /path/to/api.key;
/* Sidebar - Explorer items - HEIGHT CHANGE NOT WORKING */
.monaco-tree .monaco-tree-rows > .monaco-tree-row {
/* height: 30px !important;
padding-top: 4px;
padding-bottom: 4px; */
cursor: default;
}
/* Editor - Scrollbar */
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>author</key>
<string>d3viant0ne</string>
#!/bin/bash
# Stop all running containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@joshwiens
joshwiens / styles.less
Created October 28, 2016 04:10
Atom Stylesheet
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content {
background-color: #2B2E31 !important;
}
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: #2B2E31 !important;
}
.tab.active, .tab {
border-right: 0px !important;
/* A melding of my custom vscode style with the one published by Scott Moss */
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content {
background-color: #2B2E31 !important;
}
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: #2B2E31 !important;
}