sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms ufw apt-transport-https ca-certificates curl software-properties-common
character-set-client-handshake = FALSE | |
character-set-server = utf8mb4 | |
collation-server = utf8mb4_unicode_ci | |
sql-mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" |
#!/bin/bash | |
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update && sudo apt-get -y install docker-ce ufw git | |
sudo curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo adduser --disabled-password --gecos "" ubuntu |
#!/bin/bash | |
export USER_ID=$UID | |
docker-compose down; docker-compose up -d --force-recreate |
$ kubectl logs -f rook-ceph-mon-a-74cc6db5c8-8s5l5 | |
debug 2019-06-11 08:55:18.934 7fafa9547180 0 ceph version 14.2.1 (d555a9489eb35f84f2e1ef49b77e19da9d113972) nautilus (stable), process ceph-mon, pid 1 | |
debug 2019-06-11 08:55:18.934 7fafa9547180 0 pidfile_write: ignore empty --pid-file | |
debug 2019-06-11 08:55:18.974 7fafa9547180 0 load: jerasure load: lrc load: isa | |
debug 2019-06-11 08:55:18.974 7fafa9547180 0 set rocksdb option compression = kNoCompression | |
debug 2019-06-11 08:55:18.974 7fafa9547180 0 set rocksdb option level_compaction_dynamic_level_bytes = true | |
debug 2019-06-11 08:55:18.974 7fafa9547180 0 set rocksdb option write_buffer_size = 33554432 | |
debug 2019-06-11 08:55:18.974 7fafa9547180 0 set rocksdb option compression = kNoCompression | |
debug 2019-06-11 08:55:18.974 7fafa9547180 0 set rocksdb option level_compaction_dynamic_level_bytes = true | |
debug 2019-06-11 08:55:18.974 7fafa9547180 0 set rocksdb option write_buffer_size = 33554432 |
DIR=`pwd`/openssl | |
PRIV=$DIR/private | |
mkdir $DIR $PRIV $DIR/newcerts | |
cp /usr/share/ssl/openssl.cnf $DIR | |
replace ./demoCA $DIR -- $DIR/openssl.cnf | |
# Create necessary files: $database, $serial and $new_certs_dir | |
# directory (optional) |
Antígua e Barbuda - Antiguano | |
Argentina - Argentino | |
Bahamas - Bahamense | |
Barbados - Barbadiano, barbadense | |
Belize - Belizenho | |
Bolívia - Boliviano | |
Brasil - Brasileiro | |
Chile - Chileno | |
Colômbia - Colombiano | |
Costa Rica - Costarriquenho |
Afghanistan | |
Akrotiri | |
Albania | |
Algeria | |
American Samoa | |
Andorra | |
Angola | |
Anguilla | |
Antarctica | |
Antigua and Barbuda |
package main | |
import "fmt" | |
func main() { | |
slice := make([]int, 159) | |
// Split the slice into batches of 20 items. | |
batch := 20 |
#!/bin/bash | |
mkdir -p $HOME/go | |
curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_installer && rm go_installer | |
. ~/.bash_profile | |
echo "Go is installed and your GOPATH is '$HOME/go'" | |
echo "Please reload this shell or enter the command '. ~/.bash_profile'" |