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 / 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
1: Task failed with an exception.
-----------
* Where:
Build file '/home/vagnerlandio/Projetos/MetaCRM-App/node_modules/react-native-notifications/lib/android/app/build.gradle' line: 4
* What went wrong:
A problem occurred evaluating project ':react-native-notifications'.
> Plugin with id 'kotlin-android' not found.
* Try:
const express = require("express");
const mongoose = require("mongoose");
const morgan = require("morgan");
const bodyParser = require("body-parser");
const cookieParser = require("cookie-parser");
require("dotenv").config();
// import routes
const userRoutes = require("./routes/user");
@vagnerlandio
vagnerlandio / list.md
Last active January 2, 2019 03:42
Git Commit Message Convention
  • Add = Create a capability e.g. feature, test, dependency.
  • Cut = Remove a capability e.g. feature, test, dependency.
  • Fix = Fix an issue e.g. bug, typo, accident, misstatement.
  • Bump = Increase the version of something e.g. dependency.
  • Make = Change the build process, or tooling, or infra.
  • Start = Begin doing something; e.g. create a feature flag.
  • Stop = End doing something; e.g. remove a feature flag.
  • Refactor = A code change that MUST be just a refactoring.
  • Reformat = Refactor of formatting, e.g. omit whitespace.
  • Optimize = Refactor of performance, e.g. speed up code.
@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 / 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 / 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 / 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 / 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 / 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