Skip to content

Instantly share code, notes, and snippets.

View carlosanders's full-sized avatar

Carlos Anders carlosanders

  • Rio de Janeiro
  • 19:24 (UTC -03:00)
View GitHub Profile
@carlosanders
carlosanders / atalhos-ij.md
Created October 10, 2023 00:30 — forked from boaglio/atalhos-ij.md
Atalhos do IntelliJ - para quem veio do Eclipse

Atalhos do IntelliJ

Principais

Caiu no IntelliJ agora?

Aprenda só esses:

Tipo de Atalho IntelliJ IDEA
@carlosanders
carlosanders / install_node_manjaro.md
Created October 19, 2019 19:16 — forked from HermesMartins/install_node_manjaro.md
Como instalar o Node.JS no Manjaro Linux

Guia Rápido - Instalação do NodeJS no Manjaro Linux

1 - Primeiramente vamos fazer a instalação do nvm (node version manager - https://github.com/creationix/nvm) através do nosso gerenciador de pacotes yaourt:

$ yaourt -S nvm

2 - Depois vamos adicionar o nvm ao nosso shell, no meu caso o zshrc:

$ echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zshrc
$ source .zshrc 
@carlosanders
carlosanders / my.ini
Last active March 11, 2021 02:28 — forked from hanjong/my.ini
my.ini for mySQL
[mysqld]
# Set the SQL mode to strict
sql_mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER"
explicit_defaults_for_timestamp=1
bind-address=0.0.0.0
@carlosanders
carlosanders / redmine-plugins-install.sh
Created February 15, 2019 02:11 — forked from sameersbn/redmine-plugins-install.sh
Redmine Plugins Installation
#!/bin/bash
#
# Author: Sameer Naik <[email protected]>
# Gist: https://gist.github.com/sameersbn/dd24dfdd13bc472d11a5
# Short Url (raw): http://goo.gl/iJcvCP
#
# Installs a bunch of plugins for the docker-redmine image
#
# Usage:
# $ mkdir -p /opt/redmine/data/plugins
@carlosanders
carlosanders / redmine-themes-install.sh
Last active March 15, 2019 18:39 — forked from sameersbn/redmine-themes-install.sh
Redmine Themes Installation
#!/bin/bash
#
# Author: Sameer Naik <[email protected]>
# Gist: https://gist.github.com/sameersbn/aaa1b7bb064703c1e23c
# Short Url (raw): http://goo.gl/deKDpp
#
# Installs a bunch of themes for the docker-redmine image
#
# Usage:
# $ mkdir -p /opt/redmine/data/themes
@carlosanders
carlosanders / estados-cidades.json
Created October 14, 2018 23:28 — forked from letanure/estados-cidades.json
JSON estados cidades
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@carlosanders
carlosanders / ComboBoxAutoComplete.java
Created October 14, 2018 23:23 — forked from jesuino/ComboBoxAutoComplete.java
A simple auto complete solution for combo box
import java.util.stream.Stream;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.Event;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Tooltip;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.stage.Window;
@carlosanders
carlosanders / select-estados-br
Created October 14, 2018 20:48 — forked from cassiocardoso/select-estados-br
Select com uma lista de todos os estados brasileiros.
<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>
@carlosanders
carlosanders / JQueryWebView.java
Created September 4, 2018 20:05 — forked from jewelsea/JQueryWebView.java
Embeds jQuery in a document loaded into a WebView.
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.Scene;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
import org.w3c.dom.Document;
/**
@carlosanders
carlosanders / gist:bfb1681236b51de03dd45efe9ef60456
Created August 15, 2018 02:58 — forked from danielbaccin/gist:2499371
comando uteis para config do oracle
Comandos uteis do oracle para obter configiurações:
Parâmetros da NLS:
=> Select * from nls_database_parameters
=> Select * from nls_session_parameters
=> Select * from nls_instance_parameters
Exibe os valores de database_parameters
=> SELECT name,value$ from sys.props$ where name like '%NLS_LANG%'
=> SELECT name,value$ from sys.props$ where name like '%NLS_CHAR%'
=> SELECT name,value$ from sys.props$ where name like '%_CHARACTER%'