Skip to content

Instantly share code, notes, and snippets.

View comigor's full-sized avatar
:shipit:
Shippin'

Igor Borges comigor

:shipit:
Shippin'
View GitHub Profile
import 'package:flutter/material.dart';
class Feed extends StatelessWidget {
@override
Widget build(BuildContext context) {
final items = [
'Small description',
'Medium description and text which will be bigger',
'Large description and text which will be even bigger and occupy a lot of lines and more and more and more and more',
];
@comigor
comigor / fuck-you-brew.patch
Last active July 15, 2019 21:59
Ignore homebrew updates and make it work with older XCode version
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index ba6592eba..fe6ef0c9a 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -432,6 +432,7 @@ update-preinstall-timer() {
}
update-preinstall() {
+ return
[[ -z "$HOMEBREW_HELP" ]] || return
@comigor
comigor / scratch_card.dart
Last active March 8, 2019 17:47 — forked from slightfoot/scratch_card.dart
Scratch Card - Unfinished Flutter implementation of https://allu.io/react-scratchcard/
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'dart:math' as math;
void main() => runApp(ScratchApp());
class ScratchApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@comigor
comigor / README.md
Created November 14, 2018 15:33
Generate a Pomfile to an Android library (AAR)

Maven Publish Pomfile Generator

To be used in conjunction of maven-publish to correctly generate an AAR Pomfile.

Why?

For some reason, I can't get maven-publish to generate a Pomfile when I'm exporting an Android library (AAR). This plugin generates the Pomfile by looking at library's classpath and exclusions.

Usage

#!/usr/bin/env python3
import tkinter as tk
from tkinter import simpledialog, messagebox
import threading, queue, time
root = tk.Tk()
root.withdraw()
thread_queue = queue.Queue()
@comigor
comigor / circle-install-android.sdk.sh
Last active November 21, 2022 16:41
Install Android SDK on a CircleCI OSX machine
#!/bin/bash
# from https://gist.github.com/Igor1201/5036401727a9c178193b1e0688e1eb3c
set -eo pipefail
export ANDROID_HOME="/usr/local/share/android-sdk"
export PATH="$PATH:$ANDROID_HOME/tools/bin"
# set variables
ANDROID_SDK_URL="https://dl.google.com/android/repository/sdk-tools-darwin-3859397.zip"
ANDROID_SDK_SHA="4a81754a760fce88cba74d69c364b05b31c53d57b26f9f82355c61d5fe4b9df9"
@comigor
comigor / intermedium.sh
Created January 11, 2017 06:02
intermedium.sh
#!/bin/bash
cookies="$HOME/.intermediumcookies"
rm $cookies
headers_first="--cookie $cookies --cookie-jar $cookies -s -H 'Pragma: no-cache' -H 'DNT: 1' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: keep-alive'"
headers_second="--cookie $cookies --cookie-jar $cookies -s -H 'Pragma: no-cache' -H 'Origin: https://internetbanking.intermedium.com.br' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/html,appl
@comigor
comigor / easynvest.sh
Last active July 25, 2018 14:06
Log-in and retrieve your Easynvest account's investments
#!/bin/bash
function get_token() {
echo -n "Easynvest login: "
read login
echo -n "Easynvest password: "
read -s password
echo
local login_response=$(curl -s -w "\n%{http_code}" https://auth.app.easynvest.com.br/v1/users/me/tokens \
@comigor
comigor / oiwarren.sh
Last active February 13, 2018 13:11
Log-in and retrieve your OiWarren account's portfolios
#!/bin/bash
function get_token() {
echo -n "OiWarren email: "
read email
echo -n "OiWarren password: "
read -s password
echo
local login_response=$(curl -s -w "\n%{http_code}" https://api.oiwarren.com/api/v2/account/login \

Keybase proof

I hereby claim:

  • I am Igor1201 on github.
  • I am borges (https://keybase.io/borges) on keybase.
  • I have a public key whose fingerprint is 123C 68A4 CBE1 A1FC 20A0 EAC9 BD07 FF1D 7AD2 4624

To claim this, I am signing this object: