This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}; |