/*
https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object-acl.html
https://docs.aws.amazon.com/zh_cn/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html
https://github.com/awslabs/aws-go-wordfreq-sample/blob/master/cmd/uploads3/main.go
https://docs.aws.amazon.com/sdk-for-go/api/aws/
1. Create bucket in s3 & get the keys
- login to UI web aws s3 interface
This file contains 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
sudo apt install i3 i3status dmenu i3lock xbacklight feh conky compton rofi | |
(and i3 gaps?) | |
i3-gaps # window border | |
feh # wall paper | |
rofi # like os X win+l (could open any application) | |
compton # for conky alpha | |
conky # manual configuration desktop | |
i3 # window manager | |
i3-status # i3 status bar |
This file contains 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
package main | |
import ( | |
"fmt" | |
"time" | |
"sync" | |
) | |
func work(serverChan chan int, wg *sync.WaitGroup, server int, thing string) { | |
defer wg.Done() |
Find fd limit:
cat /proc/sys/fs/file-max
Check limit:
ulimit -n
This file contains 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
### install php 7 ### | |
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y | |
### install laravel ### | |
composer global require "laravel/installer" | |
### install requirements ### | |
sudo apt install php-gd php-zip phpunit php-mbstring | |
### new project ### |
NewerOlder