Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
| IMPORTANT | |
| Please duplicate this radar for a Safari fix! | |
| This will clean up a 50-line workaround. | |
| rdar://22376037 (https://openradar.appspot.com/radar?id=4965070979203072) | |
| ////////////////////////////////////////////////////////////////////////////// | |
| (Now available as a standalone repo.) |
| # | |
| # CORS header support | |
| # | |
| # One way to use this is by placing it into a file called "cors_support" | |
| # under your Nginx configuration directory and placing the following | |
| # statement inside your **location** block(s): | |
| # | |
| # include cors_support; | |
| # | |
| # As of Nginx 1.7.5, add_header supports an "always" parameter which |
Data Down / Actions Up
Plain JSBin's
Ember Version Base JSBin's
| #!/bin/bash | |
| version=1.0.1 | |
| versionDate="2014-02-14" | |
| function showHelp() { | |
| echo "watchfile - monitor file(s)/command and perform action when changed | |
| Possible ways of usage | |
| ---------------------------------------- |
| %%% | |
| %%% ejabberd configuration file | |
| %%% | |
| %%% The parameters used in this configuration file are explained in more detail | |
| %%% in the ejabberd Installation and Operation Guide. | |
| %%% Please consult the Guide in case of doubts, it is included in | |
| %%% your copy of ejabberd, and is also available online at | |
| %%% http://www.process-one.net/en/ejabberd/docs/ |
| # servers to proxy to | |
| upstream servers { | |
| server 10.0.0.1; | |
| server 10.0.0.2; | |
| } | |
| server { | |
| listen 80; | |
| server_name www.domain.com; | |
| server_name www2.domain.com |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\