Skip to content

Instantly share code, notes, and snippets.

Karl Glaser KarlGl

View GitHub Profile
@KarlGl
KarlGl / VPS
Last active Aug 29, 2015
Steps to setup a VPS for general web stuff
View VPS
In these examples my username is k
* Gain ssh access via "serial console" in the control pannel for one hour.
* Change root password with control pannel.
* useradd -s /bin/bash -m -d /home/k -g ssh k
on local machine:
* ssh-keygen -t rsa
* cat ~/.ssh/id_rsa.pub
on remote (as root):
@KarlGl
KarlGl / pre-commit
Created Aug 4, 2015
Rubocop Pre-Commit Hook
View pre-commit
#!/usr/bin/env ruby
# Put this file in .git/hooks/pre-commit
require 'english'
require 'rubocop'
ADDED_OR_MODIFIED = /A|AM|^M/.freeze
changed_files = `git status --porcelain`.split(/\n/).
select { |file_name_with_status|
View npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/kg/.nvm/versions/node/v4.0.0/bin/node',
1 verbose cli '/Users/kg/.nvm/versions/node/v4.0.0/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save-dev',
1 verbose cli 'browser-tabs' ]
2 info using npm@2.14.2
3 info using node@v4.0.0
4 verbose install initial load of /Users/kg/hobby/node/my-electron-app/package.json
5 verbose installManyTop reading scoped package data from /Users/kg/hobby/node/my-electron-app/node_modules/babel-core/package.json
@KarlGl
KarlGl / # opencv3 - 2016-10-07_13-51-28.txt
Created Oct 7, 2016
opencv3 (homebrew/science/opencv3) on macOS 10.12 - Homebrew build logs
View # opencv3 - 2016-10-07_13-51-28.txt
Homebrew build logs for homebrew/science/opencv3 on macOS 10.12
Build date: 2016-10-07 13:51:28
You can’t perform that action at this time.