Skip to content

Instantly share code, notes, and snippets.

View Node.js Security Checklist
Security - the elephant in the room. Everyone agrees that it is very important but few takes it seriously. We at RisingStack want you to do it right - this is why we have put together this checklist to help you guide through the must have security checks before your application is enabled to thousands of users/customers.
Most of these items are general and applies to all languages and frameworks not just Node.js - however some of the tools presented are Node.js specific. You should also check our introductory Node.js security blogpost.
Configuration Management
Security HTTP Headers
There are some security-related HTTP headers that your site should set. These headers are:
@gaboesquivel
gaboesquivel / gist:58e8ca9f70a10e02cf63
Last active Jun 23, 2020
convert all keys a of javascript object to lowercase with lodash
View gist:58e8ca9f70a10e02cf63
_.transform(obj, function (result, val, key) {
result[key.toLowerCase()] = val;
});
@gaboesquivel
gaboesquivel / cloudSettings
Created Jun 16, 2020 — forked from elkevinwolf/cloudSettings
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-06-14T05:55:09.813Z","extensionVersion":"v3.4.3"}
View android.txt
tsc-react-native git:(Sprint5_DEV) npm run android
> ConsumerApp_V1@0.0.1 android /Users/gaboesquivel/Code/tsc-react-native
> react-native run-android
warn Your project is using deprecated "rnpm" config that will stop working from next release. Please use a "react-native.config.js" file to configure the React Native CLI. Migration guide: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
warn The following packages use deprecated "rnpm" config that will stop working from next release:
- react-native-video: https://github.com/react-native-community/react-native-video#readme
- realm: https://realm.io
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
@gaboesquivel
gaboesquivel / aplicaciones-eos.md
Last active Jan 19, 2020
Guía para el webinar de desarrollo de aplicaciones sobre la plataforma EOS.
View aplicaciones-eos.md

Introducción al desarrollo de aplicaciones en EOS

Alt text

Descripción del Webinar

Es una gentil introducción a la programación de aplicaciones en eosio blockchains dirigida a desarrolladores de software.

  • No es indispensable conocer c++, sin embargo conocimientos de programación son requiridos para comprender los contenidos de este webinar.
  • Haremos un recorrido general por el diseño, historia y ecosistema de eosio.
View web_audio_stuff.md
View keybase.md

Keybase proof

I hereby claim:

  • I am gaboesquivel on github.
  • I am gaboesquivel (https://keybase.io/gaboesquivel) on keybase.
  • I have a public key whose fingerprint is F03B 0771 6E99 1DCA 5D27 05E4 9DD6 21A6 89FC DFF9

To claim this, I am signing this object:

View chooseWallet.tsx
import * as React from "react";
import { Button } from "semantic-ui-react";
import { getWallet } from '../services/wallet';
import { useGlobalState } from '../services/global-state';
const WalletView: React.SFC = () => {
const setWallet = useGlobalState('wallet')[1];
const connectWallet = async (walletIndex: number) => {
const wallet = await getWallet(walletIndex);
View getblockproducer.js
const EosApi = require('eosjs-api')
const get = require('lodash.get')
const fetch = require('node-fetch')
// gets data from mainnet
const getBlockProducersData = async () => {
const eos = EosApi({
httpEndpoint: process.env.EOS_API_ENDPOINT,
verbose: false
@gaboesquivel
gaboesquivel / deploy_with_ebcli3_on_circleci.md
Created Jul 19, 2016 — forked from RobertoSchneiders/deploy_with_ebcli3_on_circleci.md
Settings to deploy to AWS Elastic Beanstalk on CircleCi (EB Cli 3)
View deploy_with_ebcli3_on_circleci.md

This is how I configured the deploy of my rails apps to AWS Elastic Beanstalk through CircleCI.

Configure Environments Variables

On Project Settings > Environment Variables add this keys:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
    The aws user must have the right permissions. This can be hard, maybe, this can help you.

Create a bash script to create the eb config file