Skip to content

Instantly share code, notes, and snippets.


Shrikrishna Holla shrikrishnaholla

View GitHub Profile
tanaikech /
Last active Jul 26, 2020
Benchmark: Loop for Array Processing using Google Apps Script with V8

Benchmark: Loop for Array Processing using Google Apps Script with V8

- February 9, 2020 - Published. - March 15, 2020 - Results of "for of" and "for of with iterator" were added.
Vovan-VE / fix-lists.js
Created Jun 20, 2019
Quill Lists Fix (redux ready)
View fix-lists.js
* Quill 1.* cannot next block elements inside <li> including nested <ul>,<ol>.
* To achieve nested lists it uses flat linear lists with CSS class `ql-indent-\d+` on <li>.
* Nesting <ul> inside <ol> or vice-versa cause topmost list to break in two adjacent lists.
* There is the only solution: fix bad HTML after getting it from Quill and break it back before
* passing to Quill again for editing.
const mkNode = (tagName = 'div') => document.createElement(tagName);
lizthegrey / attributes.rb
Last active Nov 28, 2020
Hardening SSH with 2fa
View attributes.rb
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
gurudeb / bootstrap-3-right-offset.css
Created Aug 11, 2016
Bootstrap 3 offset on right
View bootstrap-3-right-offset.css
.col-xs-offset-right-12 {
margin-right: 100%;
.col-xs-offset-right-11 {
margin-right: 91.66666667%;
.col-xs-offset-right-10 {
margin-right: 83.33333333%;
.col-xs-offset-right-9 {
rauchg /
Last active Sep 29, 2020
m-ou-se / replace-debian-with-arch.txt
Last active Aug 29, 2020
Instructions to replace a live Debian installation with Arch
View replace-debian-with-arch.txt
# Download latest archlinux bootstrap package, see
wget '*-x86_64.tar.gz'
# Make sure you'll have enough entropy for pacman-key later.
apt-get install haveged
# Install the arch bootstrap image in a tmpfs.
mount -t tmpfs none /mnt
cd /mnt
tar xvf ~/archlinux-bootstrap-*-x86_64.tar.gz --strip-components=1
wkjagt /
Last active Jun 28, 2020
How I built an audio book reader for my nearly blind grandfather

#How I built an audio book reader for my nearly blind grandfather

Tweet this - Follow me

Last year, when visiting my family back home in Holland, I also stopped by my grand-parents. My grand-father, now 93 years old, had always been a very active man. However, during the presceding couple of months, he'd gone almost completely blind and now spent his days sitting in a chair. Trying to think of something for him to do, I suggested he try out audio books. After finally convincing him -- he said audio books were for sad old people -- that listening to a well performed recording is actually a wonderful experience, I realized the problem of this idea.

####The problem with audio devices and the newly blind. After my first impulse to jump up and go buy him an

View promise-abort.js
var DIR = '/tmp/test',
FILE_PATTERN = /test/,
fs = require('q-io/fs');
.then(function (files) {
var matched = files.filter(function (item) {
return item.match(FILE_PATTERN);
if (matched.length !== 1) {
lelandbatey /
Last active Nov 2, 2020
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!


This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"


You can’t perform that action at this time.