Skip to content

Instantly share code, notes, and snippets.

View adriangrigore's full-sized avatar
💭
Working on https://mkws.sh

Adrian Emil Grigore adriangrigore

💭
Working on https://mkws.sh
View GitHub Profile
function fetchTree(url, key, entityId, cb, parent) {
var tree;
var done = function(dst, src) {
for (var i = 0; i < src.length; i++)
if (dst[i].entities.length !== src[i].entities.length)
return false;
return true;
};
@adriangrigore
adriangrigore / Makefile
Last active September 9, 2015 10:59 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
#!/bin/sh
if [ $# -lt 1 ]; then
echo "usage: .bootstrap login [fullname]"
exit 1
fi
useradd -vm -k /var/empty -c "$2" -G wheel -G operator -s /bin/sh -L staff $1
passwd $1
echo 'permit nopass keepenv { PATH PS1 } :wheel' > /etc/doas.conf