This is not much related to the project itself, but I don't like this recent trend of implementing command line tools in Node. Command line tools are minimal and should be usable on bare-bones systems, without requiring a whole cutting edge runtime to be installed, be it Python or Node or whatever.<p>I understand many don't agree with this, but this is my preference / opinion.
In Mercurial:<p>hg log --rev "date(yesterday)" --template "{shortest(node, 6)} - {desc|firstline} ({date|age}) <{author|person}>\n"<p>This shows off both revsets (the language parsed by the --rev option) and templates (the language parsed by the --template option). The revset can be modified into "date(yesterday) and user(jordi)" to limit it to only a particular user.<p>As it stands, this revset+template combination won't colourise the output. For that we need to add labels to the template:<p>hg log -r "date(yesterday)" -T "{label('changeset.{phase}', shortest(node, 6))} - {label('log.summary', desc|firstline)} ({label('log.date', date|age)}) <{label('log.user', author|person)}>\n"<p>At this length, it starts to look unwieldy, but it should go into your hgrc anyway, where you can easily split it into multiple lines without having to worry about shell quoting. Here are more details about the general method:<p><a href="http://jordi.inversethought.com/blog/customising-mercurial-like-a-pro/" rel="nofollow">http://jordi.inversethought.com/blog/customising-mercurial-l...</a>
I know you can expect the source code, but this trend of pasting things into the terminal with sudo is crazy:<p>> curl -L <a href="https://raw.githubusercontent.com/kamranahmedse/git-standup/master/installer.sh" rel="nofollow">https://raw.githubusercontent.com/kamranahmedse/git-standup/...</a> | sudo sh
`$ curl -L <a href="https://raw.githubusercontent.com/kamranahmedse/git-standup/master/installer.sh" rel="nofollow">https://raw.githubusercontent.com/kamranahmedse/git-standup/...</a> | sudo sh
`<p>nice. this shit again
Plain old `git log` can handle most of this, if you care less for a nice interface.<p>git log --author="tlbonnette@gmail.com" --since=1.days<p>You can of course tweak the way that git log outputs too, to make it more readable.<p>Something like:<p>git log --pretty=format:%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset --abbrev-commit<p>can make it quite pretty.
My much less polished bash script:<p><pre><code> $ tt 2017-03-21
repo1 author date
commit desc
commit desc
repo2 author date
commit desc
function tt {
local day=$1;
local d=$PWD;
local buf="";
echo $day;
cd $GR;
for i in *; do
local p=$GR/$i;
if [ -d "$p/.git" ]; then
cd "$p"; whatup $day
fi
done
cd $d;
}
function whatup {
local day="$1"
if [ "$day" = "" ]; then
day=`date +'%Y-%m-%d'`
fi
local author="$2"
if [ "$author" = "" ]; then
author="amichal"
fi
local dir=`basename $PWD`;
local msg=`git log --all --author $author --oneline --since="$day 00:00:00" --until="$day 23:59:59.999"`
if [[ ! -z "${msg// }" ]]; then
echo "$dir $author $day"
echo "$msg"
echo "----------"
fi
}</code></pre>
Security policies don't sound right.<p>Leaving first employer: Sit in a windowless room with a newspaper and several other people also with feet on desks also reading newspapers, riding out 90 days of resignation notice looking forward to next job. Fully paid, needing to turn-up 4 hours per day mainly centered around lunch, which included a break and had social time with soon-to-be former-colleagues. Cannot in any way be associated with future employer during these 90 days: meetings, personal interaction, emails, visits, anything.<p>Edit: For those that think this doesn't sound right, think of your access to market-sensitive information, and a loyalty exists with the soon-to-be former employer. Mitigation of ourselves and the organisation.<p>I, and others in the windowless room were completely OK with this set-up of arrangements, as were our future employers who knew this on signing us. Not a non-complete clause in any way, simple prudence.