- Create or find a gist that you own.
- Clone your gist (replace
<hash>with your gist's hash):# with ssh git clone [email protected]:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
| wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
| var commentSchema = new Schema({ | |
| postId: { | |
| type: String, | |
| hashKey: true | |
| }, | |
| id: { | |
| type: String, | |
| rangeKey: true, | |
| default: shortId.generate |
<hash> with your gist's hash):
# with ssh
git clone [email protected]:<hash>.git mygist
# with httpsgit clone https://gist.github.com/.git mygist
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
Portable
| # enable ES6 | |
| parserOptions: | |
| ecmaVersion: 6 | |
| sourceType: "module" | |
| ecmaFeatures: | |
| jsx: true # enable React's JSX | |
| # register plugins | |
| plugins: | |
| - meteor |
| ffmpeg -i input.mp4 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 output.mp4 |
| docker.image('cloudbees/java-build-tools:0.0.6').inside { | |
| sshagent(['github-ssh-credentials']) { | |
| sh """ | |
| git version | |
| git config --local user.email \\"[email protected]\\" | |
| git config --local user.name \\"Cyrille Le Clerc\\" | |
| git clone [email protected]:cyrille-leclerc/a-test-repo.git | |
| date &> now.txt |
| @echo off | |
| set ALIASES=%CMDER_ROOT%\config\aliases | |
| setlocal | |
| :: handle quotes within command definition, e.g. quoted long file names | |
| set _x="%*" | |
| set _x=%_x:"=% | |
| :: check command usage | |
| if ["%_x%"] == [""] echo Use /? for help & echo. & goto :p_show |
| // Thanks @trusktr | |
| var requestSync = Meteor.wrapAsync(function(url, callback) { | |
| request(url, function(error, response, body) { | |
| callback(error, {response: response, body: body}) | |
| }) | |
| }); | |
| var result = requestSync("http://google.com"); | |
| console.log(result.response, result.body); |