Skip to content

Instantly share code, notes, and snippets.

@stvhwrd
stvhwrd / coderunner.sh
Last active February 17, 2017 21:58
Compile and Run Code on Remote Server - Credit to Amanda Dash for this
#!/bin/bash
#Usage: ./example.sh <local dir> "<cmd to run remotely>"
# ./example.sh . "./hello.out 5"
#Run the command date and save the output to the variable ts
#this is the Unix epoch seconds, this is the name of the folder
#we'll create
ts=$(date +%s)
@stvhwrd
stvhwrd / advanced
Last active February 16, 2017 03:01
Sample Makefiles for C language
TARGET = solution
LIBS = -lm
CC = gcc
CFLAGS = -g -Wall
.PHONY: default all clean
default: $(TARGET)
all: default
Verifying that "stvhwrd.id" is my Blockstack ID. https://onename.com/stvhwrd

Keybase proof

I hereby claim:

  • I am stvhwrd on github.
  • I am stvhwrd (https://keybase.io/stvhwrd) on keybase.
  • I have a public key whose fingerprint is B43F 1381 C3AB 6045 26FA 834C 4B72 000F B3AD 0603

To claim this, I am signing this object:

@stvhwrd
stvhwrd / PantheonColors.md
Created September 30, 2016 03:25
Elementary OS (https://elementary.io) has a great-looking terminal right off the bat. This is its colour settings.

This the colour scheme of Elementary OS' terminal, pantheon:

foreground (text color): #94A3A5
background: #252E32

color palette:
#073642:#dc322f:#859900:#b58900:#268bd2:#ec0048:#2aa198:#94a3a5
#586e75:#cb4b16:#859900:#b58900:#268bd2:#d33682:#2aa198:#6c71c4
@stvhwrd
stvhwrd / applications-list.md
Last active December 14, 2016 03:05
Homebrew installed applications

Adium.app

Alfred 3.app

App Store.app

AppCleaner.app

Atom.app

module.exports={
"config": {
"fontSize": 12,
"fontFamily": "Menlo, \"DejaVu Sans Mono\", \"Lucida Console\", monospace",
"cursorColor": "rgba(248,28,229,0.75)",
"cursorShape": "UNDERLINE",
"foregroundColor": "#fff",
"backgroundColor": "#000",
"borderColor": "#333",
"css": "",
set nocompatible " disable backward compatibility with Vi
filetype plugin indent on " filetype detection ON, plugins enable, indent ON
set t_Co=256 " enable 256-color mode.
syntax enable " enable syntax highlighting, previously 'syntax on'.
set number " show line numbers
set laststatus=2 " last window always has a statusline
set nohlsearch " Don't continue to highlight searched phrases.
set incsearch " But do highlight as you type your search.
set ignorecase " Make searches case-insensitive.
set ruler " Always show info along bottom.
@stvhwrd
stvhwrd / generate-icns.sh
Created August 1, 2016 20:08
[WIP] Generates .icns package for Mac from one 1024x1024 PNG file.
#!/bin/bash
# Converts a single 1024px PNG image to a .ICNS file for best use with Mac applications
# Required: Icon to be converted must be on the desktop and named "icon2convert"
echo ""
ls ~/Desktop/*.png
echo ""
echo "Icons to be converted must be on the desktop."
echo "Which icon would you like to convert?"

GFSA (Given-Find-Solution-Answer) Format

General Format Requirements:

  • Green engineering paper (GEP), 1-sided
  • Each problem on new page (or no more than 2 problems per page, separated by double line if 2 problems on a page)
  • Header: name, course #, lecture division, problem #, date