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
var cssRules = function(){ | |
var filter = Array.prototype.filter; | |
var map = Array.prototype.map; | |
var rules = map.call(document.querySelectorAll('*'), function(element){ | |
return element.ownerDocument.defaultView.getMatchedCSSRules(element,''); | |
}); | |
var items = rules.map(function(list){ | |
list = list || []; | |
return map.call(list, function(rule){ |
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
echo "ExitNodes {US}" >> /Applications/TorBrowser.app/TorBrowser/Data/Tor/torrc |
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
# prints the list | |
drush ups | |
# wraps the same command but to return pass/fail exit code | |
[ `drush ups --pipe | wc -l` -eq 0 ] |
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
cat sometext | jq '.offering.product[].productCharacteristics.productCharacteristic[].name' | sort | uniq | tr "\\n" "," | |
produces comma-separated list |