create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| var mongoObjectId = function () { | |
| var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
| return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
| return (Math.random() * 16 | 0).toString(16); | |
| }).toLowerCase(); | |
| }; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| ffmpeg -f gif -i infile.gif outfile.mp4 |
| user web; | |
| # One worker process per CPU core. | |
| worker_processes 8; | |
| # Also set | |
| # /etc/security/limits.conf | |
| # web soft nofile 65535 | |
| # web hard nofile 65535 | |
| # /etc/default/nginx |
| <?php | |
| namespace UserFrosting\Uploader; | |
| // add require "codeguy/upload":"*" to composer | |
| use Sirius\Upload\Handler as UploadHandler; | |
| // Register CSS and JS includes for the pages | |
| $app->hook('includes.css.register', function () use ($app){ | |
| // Register common CSS files |
| <?php | |
| namespace App\Events; | |
| use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
| use Illuminate\Queue\SerializesModels; | |
| class NewMessage extends Event implements ShouldBroadcast | |
| { | |
| new Date(seconds * 1000).toISOString().substr(11, 8) |
| /** | |
| * Generate signature for ZoomMtg JSSDK. | |
| * | |
| * @param string $api_key You REST API Key | |
| * @param string $api_secret You REST API Secret | |
| * @param int $meeting_number The meeting number you are creating the signature for | |
| * @param int $role Role that this signature is for; 0 for participant, 1 for host | |
| * | |
| * @return string Returns the signature string | |
| * |
NB;
| const { setContext } = require('apollo-link-context'); | |
| const { HttpLink } = require('apollo-link-http'); | |
| const { introspectSchema, makeRemoteExecutableSchema } = require('graphql-tools'); | |
| const fetch = require('node-fetch'); | |
| module.exports = function(api) { | |
| api.createSchema(async function(graphql) { | |
| const http = new HttpLink({ | |
| uri: 'http://example.com/api', | |
| fetch |