Skip to content

Instantly share code, notes, and snippets.

View gabfr's full-sized avatar

Gabriel Ferreira Rosalino gabfr

View GitHub Profile
@gabfr
gabfr / README.md
Created March 9, 2020 22:45
DS4A course repository - tooling files

DS4A - Workspace

This repo was created to store all my productions and notes throughout the Data Science for All course.

Folders structure

ds4a/
└── week1/
 │ case_1.1_student/
@gabfr
gabfr / index.gs
Last active November 19, 2019 14:23
Google script to fetch Trello data and save on Google Sheets
// trello variables
/**
The spreadsheet sheet with the raw data from trello is called 'Raw'
List prefixes:
(P) = Product Backlog
(S) = Sprint Backlog
(U) = Urgente/volta de homologação - Não planejado!!
(F) = Feito - pronto para homologação/em homologação/em produção
*/
var api_key = "z2x1c65a1c3z1x65c1a61c32z1xc561a6s5c1";
@gabfr
gabfr / debug_guzzle_requests.php
Created November 12, 2019 19:05
debug_guzzle_requests.php
<?php
trait ClientMockTrait
{
// [...]
public function debugRequest(string $method, string $location, array $options, string $action = '') : void
{
// data/logs/3rd_party_requests/request_{time}.log
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gabfr
gabfr / angularjs_sample.conf
Last active March 29, 2017 00:33
AngularJS HTML5 NGINX Configuration
server {
listen 80;
server_name foobar.com www.foobar.com;
index index.html;
root /path/to/site; # i.e. /var/www/mysite
location / {
try_files $uri$args $uri$args/ $uri/ /index.html =404;
}
}
@gabfr
gabfr / commands.sh
Last active March 6, 2022 15:23
Enabling airport command on mac os x el capitan
# First execute:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport
# Then execute:
sudo airport -s
@gabfr
gabfr / gist:18894198050020f1e1fe
Created March 6, 2015 12:54
Test with multipartformdata
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
namespace DownloadTest
{
public class Class1
$ yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
$ cd /usr/local/src
$ wget http://download.mono-project.com/sources/mono/mono-3.12.0.tar.bz2
$ tar jxf mono-3.12.0.tar.bz2
$ cd mono-3.12.0