Skip to content

Instantly share code, notes, and snippets.

View Sudok's full-sized avatar

Glauber Sudok

  • São Paulo - Brazil
View GitHub Profile
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@Sudok
Sudok / setup
Created March 14, 2019 01:01
Setup Osx
Terminal:
Iterm + zsh + OhMyZsh
https://medium.com/@arojunior/otimizando-o-terminal-do-mac-os-x-com-iterm-e-oh-my-zsh-1b0e843b5eb2
Brew:
Gerenciador de pacote Osx:
https://brew.sh/index_pt-br
Asdf:
Note: this assumes you are using ZSH shell.
## Installation
Install [asdf](https://github.com/asdf-vm/asdf):
```
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0
$ echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
@Sudok
Sudok / cloudSettings
Last active October 19, 2020 23:58
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-10-19T23:58:56.389Z","extensionVersion":"v3.4.3"}
@Sudok
Sudok / docker-install-lubuntu.sh
Created May 9, 2018 05:42
docker-install-lubuntu.sh
#!/bin/sh
# Install Docker CE on Lubuntu 17.04
# Run this script with sudo privileges `sudo docker-install-lubuntu-17.04.sh`
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable"
apt-get update
apt-get install -y docker-ce
# zsh
sudo apt-get install zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
# rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
@Sudok
Sudok / Dockerfile_curso
Created April 28, 2017 17:08
Dockerfile bootcamp
FROM ruby:2.3-slim
# Instala as nossas dependencias
RUN apt-get update && apt-get install -qq -y --no-install-recommends \
build-essential nodejs libpq-dev
# Seta nosso path
ENV INSTALL_PATH /usr/src/app
# Cria nosso diretório
RUN mkdir -p $INSTALL_PATH
# Seta o nosso path como o diretório principal
WORKDIR $INSTALL_PATH
@Sudok
Sudok / root_to_users.txt
Created April 27, 2017 16:08
rodar permissões de root em Users
alias fixpermissions=‘sudo chown -R $USER:$USER .’
@Sudok
Sudok / Routes.rb
Created February 25, 2016 01:50
controller de users no devise
Rails.application.routes.draw do
get 'control_users/index'
get 'control_users/index'
get 'control_users/new'
root 'welcome#index'
get 'welcome/index'