Skip to content

Instantly share code, notes, and snippets.

Working from home

José Vieira Neto NetoDevel

Working from home
View GitHub Profile
slmanju /
Created Jan 25, 2018
Generic RestTemplate wrapper
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.CollectionType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
View ionic-validation.js
function vform(id) {
var obj = {
status: true,
validation: {}
exodus4d / nginx.conf
Last active Jan 2, 2020
nginx.conf for Pathfinder (Nginx v1.11.8)
View nginx.conf
# nginx Configuration File
# Run as a less privileged user for security reasons.
user nginx nginx;
# How many worker threads to run;
# "auto" sets it to the number of CPU cores available in the system, and
# offers the best performance. Don't set it higher than the number of CPU
# cores if changing this parameter.
cmoore4 / docker-compose.yml
Created Oct 26, 2015
Docker-Compose Auto-Scale with Nginx Upstreams
View docker-compose.yml
image: myclient/nginx
- myservice:myservice
- "80:80"
- "443:443"
wenzhixin / ubuntu14.04-command-line-install-android-sdk
Last active Aug 4, 2020
Ubuntu 14.04 command line install android sdk
View ubuntu14.04-command-line-install-android-sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
luizgpsantos / Exemplo completo
Last active Aug 17, 2020
Analyzer para plural e acentos no elasticsearch
View Exemplo completo
//Cria o índice especificando quais os analyzer ele tem
//Além disso especifica que o campo "titulo" do tipo "seu_tipo" utiliza o analyzer recem criado
curl -XPUT "http://localhost:9200/my_index" -d'
"settings": {
"analysis": {
"analyzer": {
"analyzer_customizado": {
"tokenizer": "standard",
cassiocardoso / select-estados-br
Created Feb 12, 2014
Select com uma lista de todos os estados brasileiros.
View select-estados-br
<select name="estados-brasil">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>
seankross / Update
Last active Aug 13, 2019
Update a Github Fork from the Original Repo
View Update

Taken from here

Add remonte branch:

git remote add --track master mleung git://


git remote

rxaviers / gist:7360908
Last active Dec 2, 2020
Complete list of github markdown emoji markup
View gist:7360908


:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
You can’t perform that action at this time.