I know this may be old news, and I know that busy box has most of the things that shadow utils already does BUT there are a few very useful things like usermod that it doesn't. After searching around I figured I would add some useful info here. I spent about an hour fumbling around with it so I hope this helps anyone else out there that wants it. First of all you have to have the tool chain installed. Normally it's hard to find this code for shadow-utils but it is downloadable here: http://ftp.pld-linux.org/software/shadow On a quick side note - There are many other utilities and their code downloadable here: http://www.happy-monkey.net/architect/minimalist/cmd-util.html I found that there was a small error in the make'ing of this code, so I fixed that (more on that in a moment.) and built it successfully on the latest cooking. wget ftp://ftp.pld-linux.org/software/shadow/shadow-4.0.3.tar.gz tar zxvf shadow-4.0.3.tar.gz cd shadow-4.0.3 vi libmisc/xmalloc.c # comment out the following line with C style com
This file contains hidden or 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
<?php | |
/** | |
* This is an example of a practical encoder and decoder for base-62 data in PHP | |
* It differs from the majority of examples in that it's fast enough for moderate data sizes, unlike multiprecision converters | |
* To be practical, base-62 encoding needs to use internal chunking and padding because base-62 does not fit exactly into any integral number of bits | |
* This means the output is not quite compatible with multiprecision conversions, | |
* but the encoded data retains all the desirable properties of base-62, so (unlike any base-64 encoding) it's URL, DNS, email address and pathname safe | |
* @author Marcus Bointon <[email protected]> | |
* @copyright 2011 Marcus Bointon | |
* @license http://www.opensource.org/licenses/mit-license.html MIT License |
This file contains hidden or 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
#from: http://stackoverflow.com/a/1139797 | |
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
This file contains hidden or 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
/* name | |
* description | |
* (c) 2013 David (daXXog) Volm ><> + + + <>< | |
* Released under Apache License, Version 2.0: | |
* http://www.apache.org/licenses/LICENSE-2.0.html | |
*/ |
This file contains hidden or 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
//fs.exists support for older node versions | |
if(typeof fs.exists != 'function') { | |
fs.exists = path.exists; | |
} | |
if(typeof fs.existsSync != 'function') { | |
fs.existsSync = path.existsSync; | |
} |
This file contains hidden or 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
var isArray = function(obj) { | |
return (typeof obj == 'object') && (obj instanceof Array); | |
}; |
This file contains hidden or 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
var hopt = function(key, what, level) { //redis hash optimizer | |
var _what = what.toString(); | |
return [key + _what.substr(0, _what.length - level), _what.substr(_what.length - level, _what.length)]; | |
}; |
This file contains hidden or 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
git add -u | |
git commit -m "Cleaned up old files." |
This file contains hidden or 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/bash | |
#curl -L https://gist.github.com/raw/4597895/noip-install.sh | sh | |
#get gcc toolchain | |
sudo apt-get update | |
sudo apt-get install make gcc -y | |
#make a dev directory and switch to it | |
cd ~ | |
mkdir dev |
OlderNewer