Skip to content

Instantly share code, notes, and snippets.

:shipit:
Its me. Mario

Henrique Breim breim

:shipit:
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"){
name
pictureUrl
purchases{
id
totalValue
createdAt
products{
name
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.
"https://graph.facebook.com/v3.2/me/accounts?access_token={access-token}"
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
(await database.select('*').from('influencers'))
# 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 https://github.com/szechyjs/dsd/archive/master.tar.gz -O dsd.tar.gz
tar -xzf dsd-master.tar.gz
cd dsd-master
./travis_deps.sh
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/mbelib -DCMAKE_INSTALL_PREFIX=$HOME/itpp ..
make
sudo make install
View gist:91ba64a546410de55031511317f31593
curl -SL https://github.com/csete/gqrx/releases/download/v2.9/gqrx-2.9-linux-armv6.tar.xz | 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/nginx.pid;
@breim
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 https://rvm.io/pkuczynski.asc | gpg --import -
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
You can’t perform that action at this time.