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
"#tabs
" " - Two spaces wide
set tabstop=2
set mouse=a
set ttymouse=xterm
set softtabstop=2
" " - Expand them all
set expandtab
" " - Indent by 2 spaces by default
set shiftwidth=2
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/lucas/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
#List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
docker run --name postgres -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
docker run --name redis -p 6379:6379 -d -t redis:alpine
[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 / babel.config.js
Created April 10, 2020 21:35
Basic Configuration for React JS
module.exports={
presets:[
'@babel/preset-env',
'@babel/preset-react'
],
plugins:[
["@babel/plugin-transform-runtime",
{
"regenerator": true
}
$currentSript = $PSScriptRoot + "\adb-start.ps1"
$adbPath = "C:\Program Files (x86)\Android\android-sdk\platform-tools"
$adbPort = 5037
$adbListenAddress = '0.0.0.0'
$adbConnectAddress = '127.0.0.1'
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
if ($currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) -eq $FALSE)
{
Start-Process "powershell.exe" -ArgumentList $currentSript -WindowStyle hidden -Verb runAs
@lucasraziel
lucasraziel / .editorconfig
Last active April 14, 2020 00:25
Configuration files Node typescript
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
@lucasraziel
lucasraziel / .editorconfig
Created May 5, 2020 10:56
React Code Style Configuration
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
@lucasraziel
lucasraziel / react native
Created May 5, 2020 10:58
Create for reactJS an Native
npx react-native init MyApp --template react-native-template-typescript