The LampStealer app for Hue does not work with newer versions of the bridge, as the API has changed. This shell script works with fewer dependencies and achieves the same. Install jq and run the shell script after pushing the big button on the bridge.
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/sh | |
export LC_CTYPE="UTF-8" | |
$(git show -s --format=%B $@ | pbcopy) |
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/sh | |
export LC_CTYPE="UTF-8" | |
reverse() { | |
local result= | |
for word in $@; do | |
result="$word $result" | |
done | |
echo "$result" | |
} |
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/sh | |
reverse() { | |
local result= | |
for word in $@; do | |
result="$word $result" | |
done | |
echo "$result" | |
} | |
SHA=$(reverse $@) | |
echo $SHA |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
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
%% IEEEtranUrldate.bst | |
%% BibTeX Bibliography Style file for IEEE Journals and Conferences (unsorted) | |
%% Merged GQMJr + Ian Oois versions on 2017.02.14 | |
%% | |
%% Edited on 2013.05.18 by GQMJr | |
%% Added ISBN, ISSN, DOI support | |
%% | |
%% Edited by Ian Ooi | |
%% Added urldate field, with accompanying default and CTLname variables to | |
%% allow for last accessed date on urls |
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 | |
comm_msg="$(cat $1)" | |
if [ "$comm_msg" = "wtc" ]; then | |
curl -L whatthecommit.com/index.txt > $1 | |
fi |