Skip to content

Instantly share code, notes, and snippets.

View lucasraziel's full-sized avatar

LUCAS SOARES DO REGO lucasraziel

  • FVSystem
  • Aracaju-SE-Brasil
View GitHub Profile
[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
@lucasraziel
lucasraziel / avd start
Last active May 30, 2022 14:18 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2
$ANDROID_HOME\emulator\emulator.exe -avd Pixel_3a_API_28
@lucasraziel
lucasraziel / MockFile.js
Created October 19, 2020 20:32 — forked from Sebdevar/MockFile.js
Test Utility function that creates a mock file with specified name, size and MIMETYPE
/**
* Creates a file containing the requested parameters.
*
* @param {string} name The name of the file, including the extension.
* @param {number} size The file's size in bytes.
* @param {string} mimeType The file's MIMETYPE, @see {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types}
*/
export const createMockFile = (name?: string, size?: number, mimeType?: string): File => {
const fileName = name || 'mock.txt';
const fileSize = size || 1024;