This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import User from '../controllers/user'; | |
module.exports = api => { | |
api.route('/users').get(User.list); | |
api.route('/users/:userId').get(User.get); | |
api.route('/users).post(User.post); | |
api.route('/users/:userId').put(User.put); | |
api.route('/users/:userId').delete(User.delete); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import * | |
# host | |
env.hosts = ['104.248.51.33'] | |
# username | |
env.user = 'root' | |
# or, specify path to server public key here: | |
env.key_filename = '~/.ssh/id_rsa.pub' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws iam --region us-east-1 create-role --role-name ecsTaskExecutionRole --assume-role-policy-document task-execution-assume-role.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "example", | |
"version": "1.0.0", | |
"description": "Building and Publishing a React Based Electron App From Scratch", | |
"private": false, | |
"author": "Nick Parsons <nparsons08@gmail.com>", | |
"license": "MIT", | |
"homepage": "./", | |
"main": "public/electron.js", | |
"keywords": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ stream config:set | |
$ ✔ What is your full name? · Nick Parsons | |
$ ✔ What is your email address associated with Stream? · nick@getstream.io | |
$ ✔ What is your Stream API key? · foo | |
$ ✔ What is your Stream API secret? · *** | |
$ Your Stream CLI configuration has been generated! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ stream chat:channel:create | |
$ ✔ What is the unique identifier for the channel? · stream-chat | |
$ ✔ What type of channel is this? · messaging | |
$ ✔ What is the absolute URL to the channel image? · https://avatars3.githubusercontent.com/u/8597527 | |
$ Channel stream-chat has been created. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module github.com/StreamSocial/go-passwordless-social |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go mod init github.com/StreamSocial/go-passwordless-social |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir go-passwordless-social | |
cd go-passwordless-social |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go build -o passwordless-social . | |
./passwordless-social |
NewerOlder