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 / 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 / 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);
@vagnerlandio
vagnerlandio / submit.md
Created December 10, 2018 20:56 — forked from tanaikech/submit.md
Downloading Files From Google Drive Under No Authorization Using Browser

Downloading Files From Google Drive Under No Authorization Using Browser

This is a sample script for downloading files from Google Drive under no authorization using browser. By using this sample, you can make other users download files from your Google Drive. Even if the other users are not Google users, they can download the files.

Demo

@vagnerlandio
vagnerlandio / git-checkout-all-branches.sh
Created October 18, 2021 14:03 — forked from ElfSundae/git-checkout-all-branches.sh
Git checkout all remote branches
#!/bin/bash
remote=origin ; for brname in `git branch -r | grep $remote | grep -v /master | grep -v /HEAD | awk '{gsub(/^[^\/]+\//,"",$1); print $1}'`; do git branch --track $brname $remote/$brname || true; done 2>/dev/null
@vagnerlandio
vagnerlandio / install-zsh-windows-git-bash.md
Created January 2, 2022 22:07 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@vagnerlandio
vagnerlandio / install-photoshop-cs6.md
Created April 26, 2022 17:19 — forked from ansulev/install-photoshop-cs6.md
Install Adobe Photoshop CS6 on Wine (Arch Linux)

Step 1. Install the Wine and Winetricks

  sudo pacman -S wine winetricks

Step 2. Using winetricks to get install dependencies for Photoshop CS6

winetricks atmlib gdiplus msxml3 msxml6 vcrun2005 vcrun2005sp1 vcrun2008 ie6 fontsmooth-rgb gecko