%systemroot%\system32\drivers\etc\
/lib/systemd/system/docker.service
| var whatever = (function(that){ | |
| return function(){ | |
| //do stuff and enjoy access to the passed context via 'that' | |
| } | |
| }(this)); |
| var http = require('http'); | |
| var req = http.request({host:'www.google.com',port:80,method: 'GET'}, | |
| function(res){ | |
| console.log('Status Code : %s', res.statusCode); | |
| res.setEncoding('utf8'); | |
| res.on('data', function(chunk){ | |
| console.log(chunk); | |
| }); | |
| }); |
| static void StubKeyInConfig(string appSettingsKey, string appSettingsValue) | |
| { | |
| var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); | |
| config.AppSettings.Settings.Add(appSettingsKey, appSettingsValue); | |
| config.Save(); | |
| ConfigurationManager.RefreshSection("appSettings"); | |
| } |
| var pSlice = Array.prototype.slice; | |
| function createSpy(fn) { | |
| function spy() { | |
| // clone and coerce arguments into an array | |
| var spiedArgs = pSlice.call(arguments); | |
| // remember the arguments the spy was called with | |
| spy.calls.push(spiedArgs); | |
| // call the "behaviour" function passed when creating this |
| SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'YOUR_NAME_HERE' |
| python -m SimpleHTTPServer |
| :w !sudo tee % |
| C:\Users\william\AppData\Roaming\npm |
| find . -name "*.py" ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \; |