Source: https://wiki.archlinux.org/index.php/PostgreSQL
-
Install postgresql package
sudo pacman -S postgresql -
Switch to the postgres user account and initialize the database cluster:
sudo -iu postgres| func validateInitData(inputData, botToken string) (bool, error) { | |
| initData, err := url.ParseQuery(inputData) | |
| if err != nil { | |
| logrus.WithError(err).Errorln("couldn't parse web app input data") | |
| return false, err | |
| } | |
| dataCheckString := make([]string, 0, len(initData)) | |
| for k, v := range initData { | |
| if k == "hash" { |
| " Set internal encoding of vim, not needed on neovim, since coc.nvim using some | |
| " unicode characters in the file autoload/float.vim | |
| set encoding=utf-8 | |
| " TextEdit might fail if hidden is not set. | |
| set hidden | |
| " Some servers have issues with backup files, see #649. | |
| set nobackup | |
| set nowritebackup |
Source: https://wiki.archlinux.org/index.php/PostgreSQL
Install postgresql package
sudo pacman -S postgresql
Switch to the postgres user account and initialize the database cluster:
sudo -iu postgres| # overwrite master with contents of feature branch (feature > master) | |
| git checkout feature # source name | |
| git merge -s ours master # target name | |
| git checkout master # target name | |
| git merge feature # source name |
| from poster.encode import multipart_encode | |
| from poster.streaminghttp import register_openers | |
| import urllib2 | |
| register_openers() | |
| datagen, headers = multipart_encode({"fileUpload": open("filaname.jpg")}) | |
| request = urllib2.Request("https://www.filepicker.io/api/store/S3?key={yourKey}", \ | |
| datagen, headers) | |
| response = urllib2.urlopen(request) |