Skip to content

Instantly share code, notes, and snippets.

Its me. Mario

Henrique Breim breim

Its me. Mario
Block or report user

Report or block breim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View schema.rb
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
View gist:7b095dfa575507468572e2e33513d520
user(id: "1"){
View instagram.rake
1) Primeiro temos que listar as páginas vinculadas a conta do usuário. Após isso temos que pegar o ID da página e ver se ela tem uma conta do instagram vinculada a ela.
Nesse caso teria que entrar página por página e pegar o ID do instagram para ver qual delas é vinculada a algum pefil.
No meu caso tenho o ID 1322789317880339
View Database Query node
# Entrar no console
$ adonis repl
# Inciar database
database = use('Database')
# Rodar a query
# Update
View gist:d5e4c17fb8f0b5a8af850a6668993657
pip3 install cmake
pip3 install py-postgresql face_recognition opencv-python
View JSExample.js
"use strict";
async function main(){
const AWS = require('aws-sdk'),
fs = require('fs'),
util = require('util'),
exec = util.promisify(require('child_process').exec),
s3 = new AWS.S3()
View gist:7e7079f4bc0d4d1b123d00c347a79f6a
wget -O dsd.tar.gz
tar -xzf dsd-master.tar.gz
cd dsd-master
mkdir build
cd build
sudo make install
View gist:91ba64a546410de55031511317f31593
curl -SL | tar xJv
View gist:464d5d0aa432bd747b9ed45ee8258369
user ubuntu;
worker_processes 1;
#error_log /home/ubuntu/logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/;
breim / deploy sh
Last active Mar 4, 2019
Quiz deploy
View deploy sh
sudo apt-get update -y
sudo apt-get upgrade -y
# General dependencies
sudo apt install git curl openssl libcurl4-openssl-dev autoconf nodejs libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libffi-dev libgdbm-dev
# Rvm
curl -sSL | gpg --import -
curl -L | bash -s stable
source ~/.rvm/scripts/rvm
You can’t perform that action at this time.