Skip to content

Instantly share code, notes, and snippets.

# Node
## Install n
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y git
sudo chown -R veggiemonk:veggiemonk /usr/local
git clone https://github.com/tj/n.git ~/code/n
cd ~/code/n && make install
n 5.9.1
npm -g i diff-so-fancy npm pure-prompt npm-check caniuse-cmd
@veggiemonk
veggiemonk / 50-marblemouse.conf
Last active August 2, 2019 04:10
Ubuntu X11 xorg config for marble mouse logitech
## SOURCE: https://help.ubuntu.com/community/Logitech_Marblemouse_USB#Example_Configuration_.231:_add_wheel_emulation_feature
## SOURCE: https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse#Sample_configuration
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
# Physical button #s: A b D - - - - B C
@veggiemonk
veggiemonk / echoServer.js
Created April 20, 2016 07:40
Node.js ECHO server utility to test front-end code depending on the server response.
'use strict';
/**
* HELP! I am not the author of this, I don't remember where I got this file, it was in es5 at the time.
* If you know who the author is, please get in touch with me to set the record straight.
* Thank you and thank to the anonymous original author!
*/
const VERSION = '0.1.0';
@veggiemonk
veggiemonk / all-lein-templates.txt
Created November 24, 2016 04:28 — forked from anonymous/all-lein-templates.txt
for i in {1..28} ; do lein search lein-template $i ; done | grep '^\[' | perl -pe 's,^\[,,; s,/.*?],:,' | sort | uniq -c | tee all-lein-templates.txt
1 acorn: A Leiningen template for a ClojureScript setup with Figwheel, Austin, Om.
8 amp: Leiningen template for AMP (Alfresco Module Package) projects.
1 angular-cl2: A Leiningen template for using AngularJS and ChlorineJS
1 angular: Clojure and AngularJS in perfect harmony.
6 angular: Clojure and AngularJS in perfect harmony. $ lein new angular <name>
2 angularjs-app: Leiningen template for web application with http-kit and angularjs
5 angular-simple: Clojure and AngularJS $ lein new angular-simple <name>
1 aperiodic-cljs: My cljs development starting point. Basically ripped from lein-cljsbuild.
1 apijr: clojurescript project template
1 appfgo: 'lein new' template for Funcgo application
@veggiemonk
veggiemonk / vpn_psk_bingo.md
Created November 29, 2016 03:57 — forked from kennwhite/vpn_psk_bingo.md
Most VPN Services are Terrible
;;;;;;;;;;;;;;;;;;;
;; Collections in Clojure
;;;;;;;;;;;;;;;;;;;
;; Distinctive characteristics
;;;;;;;;;;;;;;;;;;;
;; * They are mainly used in terms of abstractions, not the details of concrete implementations.
;; * They are immutable and persistent.
;;;;;;;;;;;;;;;;;;;
@veggiemonk
veggiemonk / email-address-syntax-validation-let-the-browser-do-it.md
Created December 7, 2016 03:03 — forked from nepsilon/email-address-syntax-validation-let-the-browser-do-it.md
Email address syntax validation? Let the browser do it (without regexp) — First published in fullweb.io issue #77

Email address syntax validation? Let the browser do it (without regexp)

Here is a simple and robust way to check for the validity of an email address syntax directly in the browser. No need for crazy regular expressions.

e = document.createElement('input')
e.type = 'email'
// check some email addresses
e.value = 'hi@'
@veggiemonk
veggiemonk / release.js
Created December 25, 2016 07:54
release with node.js and git
/* eslint-env node */
/* eslint-disable strict, no-console */
'use strict';
const version = require('../package.json').version;
const prompt = require('prompt');
const exec = require('child_process').exec;
const dryRun = process.env.DRY_RUN || false;
const schema = {
properties: {
@veggiemonk
veggiemonk / .gitconfig
Last active February 19, 2024 16:49
simple zshrc config file with Oh-My-ZSH
[user]
name = Julien Bisconti
email = ******
[core]
excludesfile = ~/.gitignore
pager = diff-so-fancy | less --tabs=1,5 -R
editor = /usr/bin/vim
[alias]
wow = log --all --graph --decorate --oneline --simplify-by-decoration
@veggiemonk
veggiemonk / allaboard.md
Last active January 19, 2017 11:52
todo unity on boarding

Onboarding schedule / tasklist / progress-o-meter. This is not meant for anything definitive, but rather a guideline to get an idea of what newjoiners should go through to gather basic knowledge of our working habits and systems.