Install Postgresql server:
sudo apt install postgresql-9.5
Edit postgresql.conf
to make Postgresql listen to all network interfaces (allow external connections):
listen_addresses = '*'
If you want just IPV4 connections:
Whisker menu > Keyboard > Application Shortcuts > Add | |
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause |
Install Postgresql server:
sudo apt install postgresql-9.5
Edit postgresql.conf
to make Postgresql listen to all network interfaces (allow external connections):
listen_addresses = '*'
If you want just IPV4 connections:
{ | |
"line_numbers": false, | |
"gutter": false, | |
"draw_centered": true, | |
"wrap_width": 230, | |
"scroll_past_end": true | |
} |
# disable status bar | |
set -g status off | |
# set scrollback history to 10000 (10k) | |
set -g history-limit 10000 | |
# fixes esc delay | |
set -sg escape-time 1 |
[ | |
{ "keys": ["ctrl+q"], "command": "toggle_comment" }, | |
{ "keys": ["ctrl+o"], "command": "move_to", "args": {"to": "eol", "extend": false} }, | |
{ "keys": ["ctrl+u"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys": ["ctrl+k", "ctrl+k"], "command": "toggle_bookmark" }, | |
] |
{ | |
"auto_complete_commit_on_tab": true, | |
"color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme", | |
"default_line_ending": "unix", | |
"draw_white_space": "selection", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 10, | |
"ignored_packages": | |
[ | |
"Vintage" |
<?php | |
// parametros de conexão | |
$host = 'localhost'; | |
$dbname = 'arsenal'; | |
$username = 'root'; | |
$password = ''; | |
// opcional, porém importante | |
$options = array( |
/* | |
Convert common diacritics in portuguese language. | |
*/ | |
function convertPortugueseDiacritics($string) | |
{ | |
$from = 'áéíóúãõàèìòùçñüïÁÉÍÓÚÃÕÀÈÌÒÙÇÑÜÏ'; | |
$to = 'aeiouaoaeioucnuiAEIOUAOAEIOUCNUI'; | |
$from = preg_split('//u', $from, -1, PREG_SPLIT_NO_EMPTY); | |
$to = str_split($to); |
<?php | |
$array1 = array("a","b","4",5,4,"true","TRUE",true, false, "c", "d"); | |
$array2 = array("a","b","4",5,4,"true","TRUE",true, false, "c"); | |
sort($array1); | |
sort($array2); | |
dump($array1); | |
dump($array2); |