Skip to content

Instantly share code, notes, and snippets.

View raivieiraadriano92's full-sized avatar

Raí Vieira Adriano raivieiraadriano92

View GitHub Profile
sudo groupadd docker
sudo gpasswd -a ${USER} docker && service docker restart && usermod -aG docker $USER
@raivieiraadriano92
raivieiraadriano92 / gist:84c9717f6e256873a349b0d611642a61
Last active August 8, 2017 13:35
Linux - custom shell function
#Edite o arquivo:
~/.bashrc
#Adicione as funções desejadas:
php()
{
docker run -it --rm -v $HOME/.ssh:/root/.ssh -v $('pwd'):/var/www jaschweder/php php "$@"
}
subl /etc/fstab
/dev/sdb1 /media/Arquivos ntfs errors=remount-ro 0 0
ou
UUID=097F03A40354178B /media/rai/Gededaia ntfs defaults,rw 0 0
File Icon = icones dos arquivos
Aligment = atalho ctrl+alt+a para alinhar variaveis
All Autocomplete = o autocomplete junto SublimeCodeIntel
SublimeCodeIntel = configuar bin do php nos settings
BracketHighligther = indentifica onde fecha a tag
ColorHighligther = coloca uma cor
DocBlockr = comentarios
Emmet = usando o tab ele completa tags, entre outras coisas
GotoDocumentation = nao sei se é o F12 ou ele mostra a documentação de função
Numix Theme = tema do sublime
subl ~/.bashrc
adicione na ultima linha
setxkbmap -model pc104 -layout us_intl
. ~/.bashrc
ou
1 - Instalar os pacotes gtk2-immodules im-chooser: sudo dnf install gtk2-immodules im-chooser
--------------------
node.sh
--------------------
#!/bin/bash
_CONTAINERNAME="node-running"
_DIR=$(pwd)
_FILEVOLUMENOW="/tmp/.file_node_volume_now"
if [ ! -f "$_FILEVOLUMENOW" ]; then
# Install Node.js
sudo dnf install nodejs
#Install React Native
sudo npm install -g react-native-cli
sudo mount -o remount,size=50G /tmp/
# Download and install Android Studio
# https://developer.android.com/studio/install.html
{
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true
},
"plugins": [
"react-native",
"jsx-a11y",
"import"
{
"presets": [
"react-native"
],
"plugins": [
[
"module-resolver",
{
"cwd": "babelrc",
"root": [
# run
$ yarn add --dev reactotron-react-native
# create the src/config/ReactotronConfig.js file as what is attached
# add in file src/index.js the line:
# import 'config/ReactotronConfig';