Performance
This file contains hidden or 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
// Files | |
{ | |
"files.autoSave": "onFocusChange", | |
"editor.fontFamily": "Fira Code", | |
"editor.fontSize": 11.5, | |
"editor.lineHeight": 28, | |
"editor.letterSpacing": 0.5, | |
// "workbench.editor.tabSizing": "shrink", | |
"html.format.enable": true, |
This file contains hidden or 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
// Files | |
{ | |
"files.autoSave": "onFocusChange", | |
"editor.fontFamily": "Fira Code", | |
"editor.fontSize": 11.5, | |
"editor.lineHeight": 28, | |
"editor.letterSpacing": 0.5, | |
// "workbench.editor.tabSizing": "shrink", | |
"html.format.enable": true, |
This file contains hidden or 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
-- á | |
-- ã TO ã | |
UPDATE table SET column = REPLACE(column, 'ã', 'ã'); | |
-- é TO é | |
UPDATE table SET column = REPLACE(column, 'é', 'é'); | |
-- ê TO ê | |
UPDATE table SET column = REPLACE(column, 'ê', 'ê'); | |
-- ó | |
-- ô | |
-- õ |
Resumo de alguns brasileiros que participaram do Singularity University Global Summit 2017 em São Francisco.
- São 1.600 participantes do mundo inteiro. 70% são estrangeiros. A maior delegação é do Brasil.
- Em 2030, mil dólares vão comprar poder computacional equivalente ao cérebro humano. Em 2050, mil USD vão comprar poder computacional equivalente a todos os cérebros humanos juntos.
- Em 2010 1.8 Bilhões de pessoas estavam conectadas à internet. Em 2017 são 3 Bi. Entre 2022 e 2025 será o mundo inteiro. Com mais conexões, mais oportunidades, mais gênios.
- As próximas duas décadas serão diferentes de qualquer coisa que vivemos nos últimos cem anos.
- Podemos prever empregos que serão absorvidos pela tecnologia. Mas não podemos prever quais empregos vão surgir a partir da tecnologia. A dificuldade é a velocidade com que isso está acontecendo.
- 130 milhões de pessoas no mundo estão satisfeitas com o seu trabalho. Parece muito, mas em termos mundiais é nada.
This file contains hidden or 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
# upgrade existing packages | |
sudo apt-get update && sudo apt-get -y upgrade | |
# set timezone | |
sudo dpkg-reconfigure tzdata | |
sudo apt-get -y install build-essential ssh curl software-properties-common python-software-properties python g++ make | |
# install Apache server | |
sudo apt-get install -y apache2 |
This file contains hidden or 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
@mixin for-size($size) { | |
@if $size == phone-only { | |
@media (max-width: 599px) { @content; } | |
} @else if $size == tablet-portrait-up { | |
@media (min-width: 600px) { @content; } | |
} @else if $size == tablet-landscape-up { | |
@media (min-width: 900px) { @content; } | |
} @else if $size == desktop-up { | |
@media (min-width: 1200px) { @content; } | |
} @else if $size == big-desktop-up { |
This file contains hidden or 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 | |
#SETTINGS | |
MYSQLUSER=<insert mysql user> | |
MYSQLPASSWORD=<insert mysql user password> | |
DBNAMES=("database_1" "database_2" "database_3") | |
BACKUPDIR=/path/to/dbbackups | |
#DUMP THE DATABASES | |
for name in ${DBNAMES[@]} |