View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

View gist:534630b8c3ba3cd267574592654b5d15
View README.md

Basic manual babel latests + webpack boilerplate.

npm init -y

Install npm modules

npm install --save-dev babel babel-core babel-loader babel-preset-latest-node6 json-loader webpack 

copy the webpack.config.js file to your project.

The webpack.config.js is in this same gist.

View login.css
body {
padding-top: 120px;
padding-bottom: 40px;
background-color: #eee;
}
.container {
width: 50%;
}
.btn
{
View refactoring-react-views.md

Refactoring view general checkpints

1. Insert // @flow

in the header of the file, in this way the flowtype binary will not ignore the file, and will statically analise it.

2. Add props types to you view.

Proptypes is deprecated in react-native, the way Facebook team is going forward is using flowtype. To specify the types of properties

View docker-for-mar-login
27d
I found a solution,thanks to this topic https://forums.docker.com/t/change-docker-for-mac-engine-etc-files/20102/222 , the only thing I needed to do to access the docker host was use this command:
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
username:root
password:[empty]
close session:Ctrl+a d
To change the swap size for oracle xe installation:
dd if=/dev/zero of=/var/swap.file count=2000000 bs=1024
View postgrest_compilation.sh
# prerequisites:
sudo su
yum groupinstall "Development Tools" -y
yum install git gmp-devel postgresql-devel zlib-devel -y
# installing stack:
curl -sSL https://get.haskellstack.org/ | sh
# Download and build postgrest.
git clone https://github.com/begriffs/postgrest.git
cd postgrest
stack build --install-ghc --allow-different-user
View install-ffmpeg-amazon-linux.sh
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF
View README.md

https://github.com/numo-labs/aws-lambda-deploy

mkdir lambda-test && cd lambda-test git init echo 'node_modules' >> .gitignore npm init

maybe some of these are not need , need to clean up

npm install --save-dev babel-core babel-plugin-transform-object-rest-spread babel-plugin-transform-regenerator babel-polyfill babel-preset-es2015 babel-preset-react babel-preset-stage-0 dpl

babel-polyfill as prod package

npm install babel-polyfill

create babelrc with stage-0 enabled for async/await support

View httpStatus.js
// Status code list borrowed from https://golang.org/src/net/http/status.go
var http: {
100: 'CONTINUE' ,
101: 'SWITCHING_PROTOCOLS' ,
200: 'OK' ,
201: 'CREATED' ,
202: 'ACCEPTED' ,
203: 'NON_AUTHORITATIVE_INFO' ,
204: 'NO_CONTENT' ,
205: 'RESET_CONTENT' ,