Skip to content

Instantly share code, notes, and snippets.

View hacksalot's full-sized avatar

hacksalot hacksalot

  • United States
View GitHub Profile
@hacksalot
hacksalot / index.md
Last active January 28, 2018 21:32
Install HackMyResume on Ubuntu 16.04 LTS

Clone and install HMR...

git clone https://github.com/hacksalot/HackMyResume.git
cd HackMyResume
npm install

Install Mocha and Grunt...

sudo npm install -g mocha

sudo npm install -g grunt-cli

@hacksalot
hacksalot / install-wkhtmltopdf-travis.md
Last active May 10, 2021 13:01
Install wkhtmltopdf on Ubuntu 16.04 LTS

Install the [latest wkhtmltopdf binary][1], extract it, and copy the wkhtmltopdf and wkhtmltoimage executables to /usr/bin/.

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xf  wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cd ./wkhtmltox/bin/
sudo cp -R ./* /usr/bin/
wkhtmltopdf -V
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "FRESH Resume Schema",
"type": "object",
"additionalProperties": true,
"properties": {
"name": {
"type": "string",
@hacksalot
hacksalot / Example FRESH-format resume for Jane Doe (JSON) (FRESCA).json
Last active November 22, 2015 09:53
Exemplar resume for Jane Doe in FRESH/FRESCA format.
{
"name": "Jane Doe",
"meta": {
"format": "FRESH@0.1.0",
"version": "0.1.0"
},
"info": {
@hacksalot
hacksalot / gist:746c3290a7c2e077ed91
Last active February 25, 2019 15:39
Install Ruby/DevKit + Jekyll on Windows

Install Ruby 2.1.5

  1. Install [Ruby 2.1.5 for Windows (x64)][1] from [RubyInstaller.org][2].

    • Set Install Tcl/Tk support.
    • Set Add Ruby executables to your path
    • Set Associate .rb and .rbw files with this Ruby installation.
    • Do NOT include whitespaces in the destination folder.
  2. Run ruby -v to verify command line access and version.

@hacksalot
hacksalot / gist:72517b9b1c145116e89e
Created March 17, 2015 02:01
Delete GitHub wiki revisions
# Delete prior revisions from a GitHub wiki so that only the most-recent
# version of the content is available.
# Clone the wiki.
git clone https://github.com/[user]/[repo].wiki.git
# Remove the .git folder.
rm -rf .git
# Reconstruct the local repo with only latest content
@hacksalot
hacksalot / gist:30e071961b6dabf3c1be
Created March 16, 2015 04:00
Assign UVs in three.js.
function assignUVs( geometry ) {
geometry.computeBoundingBox();
var max = geometry.boundingBox.max;
var min = geometry.boundingBox.min;
var offset = new THREE.Vector2(0 - min.x, 0 - min.y);
var range = new THREE.Vector2(max.x - min.x, max.y - min.y);
var faces = geometry.faces;
geometry.faceVertexUvs[0] = [];