This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario_projeto_original/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:ft=zsh ts=2 sw=2 sts=2 | |
rvm_current() { | |
rvm current 2>/dev/null | |
} | |
rbenv_version() { | |
rbenv version 2>/dev/null | awk '{print $1}' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#List all devices | |
dmesg | |
# ou | |
sudo fdisk -l | |
#OS is the name do Operation System | |
#sd* is the final device - Usb or other | |
sudo dd if=SO.iso of=/dev/sd* bs=4M status=progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Crie a chave SSH na sua maquina | |
# Apenas confirme todas as entradas, mas se quiser mais seguranca coloque uma senha na hora que for solicitado | |
# No caso do SO Windows usa o ssh-keygen.exe | |
ssh-keygen -C "[email protected]" | |
# Logue na conta do github | |
# Entre no seguinte link | |
# https://github.com/settings/keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install | |
sudo apt-get install --no-install-recommends gnome-panel | |
# Create icon | |
gnome-desktop-item-edit --create-new .local/share/applications |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=false | |
Exec=command to run here | |
Name=visible name here | |
Comment=comment here | |
Icon=icon path here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.web.bind.annotation.PathVariable; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- O repositorio do postgres ja vem no deepin | |
sudo apt install postgresql-9.6 | |
-- Entre no PSQL | |
sudo -u postgres psql | |
-- Mude a senha do postgres | |
ALTER USER postgres WITH ENCRYPTED PASSWORD 'nova_senha'; | |
-- Acesse a pasta do postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
'isbn': 441, | |
'titulo': 'Programação Orientada a Objetos', | |
'ano_publicacao': 2012, | |
'qtd_estoque': 1, | |
'valor': 70.00, | |
'editora': 'Ática' | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST https://overpass-api.de/api/interpreter -H "Content-Type: application/x-www-form-urlencoded" -d "data=[out:json];node ++[amenity] ++(39.83385008019448,114.3896484375,40.6723059714534,118.5369873046875); out;" |
OlderNewer