Skip to content

Instantly share code, notes, and snippets.

View vagnerlandio's full-sized avatar
🎯
Focusing

Vagnerlandio Nunes vagnerlandio

🎯
Focusing
View GitHub Profile
@vagnerlandio
vagnerlandio / notes-umi-zero-rresurrection-remix.md
Last active August 31, 2016 04:18
Umi Zero - Resurrection Remix (The complete guide on how to install)
@vagnerlandio
vagnerlandio / notes-umi-zero-xosp.md
Last active September 18, 2016 16:48
Umi Zero - XOSP
@vagnerlandio
vagnerlandio / Post-RubyRails.md
Last active January 4, 2017 18:03 — forked from lucasnogueira/Post-RubyRails.md
Para aprender Ruby e Rails

É difícil falar de Ruby sem mencionar seu framework web mais famoso, Ruby on Rails. Mas não adianta muito encarar o framework sem um prévio estudo da linguagem (o que de fato já observei acontecer inúmeras vezes). Esse post tem como intuito auxiliar na aprendizagem tanto da linguagem como do framework, para evitar que erros comuns como esse tornem a utilização de ambos um desastre.

Ruby

Ruby é uma linguagem de programação que apareceu para o mundo em 1995, criada por Yukihiro "Matz" Matsumoto. Tem como características o fato de ser uma linguagem de uso geral, com tipagem dinâmica e forte, orientada a objetos e que incorpora diversos paradigmas de programação, como o funcional e o imperativo.

Iniciantes

  • Ruby in Twenty Minutes - É o que o nome diz: um pequeno tutorial que promete não tomar mais do que 20 minutos do seu tempo. Se encarrega de mostrar como baixar e instalar o Ruby. Faz grande uso da IRB (Int
@vagnerlandio
vagnerlandio / ssl_puma.sh
Created October 17, 2017 14:32 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
@vagnerlandio
vagnerlandio / tests.md
Last active April 1, 2018 22:55
Welcome file

Redmi 2 Roms Test

Obs: All test are made after first boot with any apps installed with exeption of Antutu Benchmark.

OS Name Android Version OS Version Status Last Update Size Link
ViperOS N 7.1.2 v3.1.1 Stable 2018/02/07 320.8MB unofficial
ViperOS N 7.1.2 v3.0.0 Stable 2017/08/12 325.1MB OFFICIAL
AospExtended x v5.1 Beta 2017/12/29 326.7MB OFFICIAL
dotOS 7.1.2 V1.2 status 2018/01/14 333.3MB OFFICIAL
@vagnerlandio
vagnerlandio / notes-umi-zero-cyanogenmod.md
Last active April 24, 2018 03:40
Umi Zero - CyanogenMod
@vagnerlandio
vagnerlandio / yaourt-skip-validity-checks.txt
Created June 27, 2018 02:27 — forked from m4s0/yaourt-skip-validity-checks.txt
[archlinux] yaourt skip validity checks
yaourt --m-arg "--skippgpcheck" -S {{ package }}
###
--skipinteg
Do not perform any integrity checks (checksum and PGP)
on source files.
--skipchecksums
Do not verify checksums of source files.
@vagnerlandio
vagnerlandio / gist:30308cf34329d989edd8baa407856936
Created July 25, 2018 15:16 — forked from arjunvenkat/gist:1115bc41bf395a162084
Seeding a Rails database with a CSV file

How to seed a Rails database with a CSV file

1. Setup

First, Create a folder inside of lib called seeds

Put your CSV file example.csv into the lib/seeds folder. In the example below, the file is called real_estate_transactions.csv

Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.

@vagnerlandio
vagnerlandio / howto-hearthstone-archlinux.md
Created November 22, 2018 15:31 — forked from aslafy-z/howto-hearthstone-archlinux.md
Install Hearthstone on Archlinux

Dependencies

Installation

  • Open PlayOnLinux
  • Click on Install and select Install a non-listed program
@vagnerlandio
vagnerlandio / submit.md
Created December 10, 2018 20:56 — forked from tanaikech/submit.md
Uploading Local Files to Google Drive without Authorization using HTML Form

Uploading Local Files to Google Drive without Authorization using HTML Form

This is a sample script for uploading local file to Google Drive without the authorization using HTML form. A selected file in your local PC using HTML form is uploaded to Google Drive and saved to Google Drive.

When you use this, at first, please deploy Web Apps. The script is doPost() of following scripts.

Script : Google Apps Script

function doPost(e) {
 var data = Utilities.base64Decode(e.parameters.data);