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
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: example | |
| namespace: default | |
| data: | |
| APPLICATION_HOST: example.com | |
| LANG: en_US.UTF-8 | |
| PIDFILE: /tmp/server.pid | |
| PORT: "3000" |
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
| # debian | |
| deb http://security.debian.org/ wheezy/updates main | |
| deb-src http://security.debian.org/ wheezy/updates main | |
| deb http://http.debian.net/debian/ wheezy main contrib non-free | |
| # yandex | |
| deb http://mirror.yandex.ru/debian/ wheezy main contrib non-free | |
| deb-src http://mirror.yandex.ru/debian/ wheezy main contrib non-free | |
| deb http://mirror.yandex.ru/debian/ wheezy-updates main non-free | |
| deb-src http://mirror.yandex.ru/debian/ wheezy-updates main non-free |
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
| import( | |
| "github.com/qiniu/iconv" | |
| ) | |
| utf2cp,err :=iconv.Open("cp1251","utf8"); //convert utf8 to cp1251 | |
| if err!=nil { | |
| return err,"" | |
| } | |
| defer utf2cp.Close(); |
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
| import( | |
| "code.google.com/p/go.text/transform" | |
| "code.google.com/p/go.text/encoding/charmap" | |
| ) | |
| func toutf8(str string) string { | |
| sr := strings.NewReader(str) | |
| tr := transform.NewReader(sr, charmap.Windows1251.NewDecoder()) | |
| buf, err := ioutil.ReadAll(tr) | |
| if err != nil { |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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 | |
| # install homebrew's official php tap | |
| brew tap josegonzalez/homebrew-php | |
| # install homebrew-dupes (required to install zlib, php54's dependency) | |
| brew tap homebrew/dupes | |
| # install nginx + mysql + php 5.4 + php-fpm + apc + xdebug | |
| brew install nginx mysql |