Skip to content

Instantly share code, notes, and snippets.

View NF1198's full-sized avatar

Nicholas Folse NF1198

  • Albuquerque, NM
View GitHub Profile
@NF1198
NF1198 / Samsung 900X4D-A58 Gamma Calibration - ICC.cal
Created October 12, 2017 01:01
Display calibration profile for Samsung 900X4D-A58 laptop
CAL
DESCRIPTOR "Argyll Device Calibration State"
ORIGINATOR "vcgt"
CREATED "Tue Oct 10 19:21:51 2017"
KEYWORD "DEVICE_CLASS"
DEVICE_CLASS "DISPLAY"
KEYWORD "COLOR_REP"
COLOR_REP "RGB"
#!/usr/bin/env sh
# A shortcut function that simplifies usage of xclip.
# - Accepts input from either stdin (pipe), or params.
# from: https://madebynathan.com/2011/10/04/a-nicer-way-to-use-xclip/
# author: Nathan Broadbent
#
# usage:
# -$ cd ~
# -$ wget <raw file link>
# then add to .bashrc:
@NF1198
NF1198 / bashrc.sh
Created February 24, 2017 21:59
genpasswd
# add to bashrc
#genpasswd <num_chars>
# generates a password of the specified length
genpasswd() {
local l=$1
[ "$l" == "" ] && l=20
tr -dc [:alnum:]\*\&\^\%\$\#\@\_ < /dev/urandom | head -c ${l} | xargs
}
@NF1198
NF1198 / debug-util.js
Last active October 14, 2016 20:31
node.js line number debug utility script - returns call site info for debugging purposes - compatible with TypeScript & ES5+
/*
* Copyright (c) 2016 Nicholas Folse -- All Rights Reserved
*
* debug-util.js -- Call site info for debugging javascript
*
* requires node 'source-map' (npm install source-map)
*
* usage:
*
* const debug_line = require("../debug-util");
@NF1198
NF1198 / epkowa.conf
Created June 13, 2016 23:57
Epson L210 scanner config linux (epkowa.conf / dll.conf)
#Make the following updates to sane configration to enable Epson 210 scanner to function properly
# Add user to "lp" group then logout-login
#epkowa.conf
line: 10
-scsi
+#scsi
line: 26