Skip to content

Instantly share code, notes, and snippets.

View astrotars's full-sized avatar
⛰️

Nick Parsons astrotars

⛰️
View GitHub Profile
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);
};
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'
aws iam --region us-east-1 create-role --role-name ecsTaskExecutionRole --assume-role-policy-document task-execution-assume-role.json
{
"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": [
$ 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! 🚀
$ 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.
module github.com/StreamSocial/go-passwordless-social
go mod init github.com/StreamSocial/go-passwordless-social
mkdir go-passwordless-social
cd go-passwordless-social
go build -o passwordless-social .
./passwordless-social