Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View pcarion's full-sized avatar

Pierre Carion pcarion

View GitHub Profile
@pcarion
pcarion / setup_tunnel_host.sh
Created January 26, 2020 18:30
setup an ec2 server as a ssh tunner - see: https://www.pcarion.com/ssh-tunnel
BASE_DOMAIN_NAME=yourdomain
LETE_EMAIL=you@mail.com
REMOTE_REDIRECT_PORT1=8080
SUBDOMAIN1=auth
REMOTE_REDIRECT_PORT2=8090
SUBDOMAIN2=api
echo "### refresh server setup..."
sudo apt-get update
sudo add-apt-repository -y ppa:certbot/certbot
@pcarion
pcarion / scaffolding
Last active February 8, 2020 15:56
This gist contains a lit of scaffolding path
# This is an example of a gist file used to define the scaffolding for a new project
# the header (before the definition of $separator) defines a couple of variables
name: test scaffolding
version: 1.0
$separator: ===>
===> hello.txt
Hello World!
---
Description: AWS AppSync Notes API
Parameters:
APIName:
Type: String
Description: Name of the API - used to generate unique names for resources
MinLength: 3
MaxLength: 20
AllowedPattern: '^[a-zA-Z][a-zA-Z0-9_]*$'

Keybase proof

I hereby claim:

  • I am pcarion on github.
  • I am pcarion (https://keybase.io/pcarion) on keybase.
  • I have a public key ASBVqWMBpl6qVkGb7c6yvw3umfgzMCDAeF_a8y9uIZehsAo

To claim this, I am signing this object:

@pcarion
pcarion / setup_node_app.js
Last active September 9, 2017 18:16
setup a node app git repo
yarn add --dev babel-cli babel-plugin-transform-object-rest-spread babel-preset-es2015
cat > .babelrc << EOF
{
"presets": ["es2015"],
"plugins": [
"transform-object-rest-spread"
]
}
EOF
(function() {
"use strict";
// this is a default implementation of a jouvence notification
// you can copy and paste this code to use as a starting point for
// an application specific implementation
var jouvenceNotification = {
startOfDocument: function() {
console.log("startOfDocument");