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 / 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 / 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.
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");
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:
@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 / gist:1a18abce69e9201081dc9ddb7b754cc4
Last active April 25, 2022 15:21
Execute command in all immediate subdirectories
#!/bin/zsh
# A simple script with a function...
mexec()
{
export THE_COMMAND=$@
find . -type d -maxdepth 1 -mindepth 1 -print0 | xargs -0 -I{} zsh -c 'cd "{}" && echo "*\033[1;32mstart {} start\033[0m*" && echo "$('$THE_COMMAND')" && echo -e "*\033[1;93mend {} end\033[0m*\n"'
}
mexec ls -al
@vagnerlandio
vagnerlandio / a.js
Created January 7, 2022 04:52
marvel api paginação
const response = await axios.get(
`http://gateway.marvel.com/v1/public/comics?ts=${timeStamp}&apikey=${apiKey}&hash=${md5}&limit=20&offset=${
(page - 1) * 20
}`
);
@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
@vagnerlandio
vagnerlandio / bash.sh
Created April 29, 2022 17:47
fix yarn install sharp@npm:0.23.4 on node v16
yarn install -std=c++17