from http://linux-unix-tips.blogspot.nl/2014/01/set-up-regional-settings-with-command.html
sudo gedit /var/lib/locales/supported.d/local
sudo dpkg-reconfigure locales
sudo gedit /etc/default/locale
| const ( | |
| _shutdownPeriod = 15 * time.Second | |
| _shutdownHardPeriod = 3 * time.Second | |
| _readinessDrainDelay = 5 * time.Second | |
| ) | |
| var isShuttingDown atomic.Bool | |
| func main() { | |
| // Setup signal context |
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "time" | |
| ) | |
| func timeHandler(w http.ResponseWriter, r *http.Request) { | |
| tm := time.Now().Format(time.RFC1123) |
| package main | |
| import ( | |
| "net/http" | |
| "github.com/friendsofgo/graphiql" | |
| graphql "github.com/graph-gophers/graphql-go" | |
| "github.com/graph-gophers/graphql-go/relay" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| "path" | |
| ) | |
| func dirTree(out io.Writer, root string, printFiles bool) error { |
| # https://editorconfig.org/#example-file | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true |
| require 'securerandom' | |
| puts SecureRandom.hex(64) |
| comment = "# frozen_string_literal: true\n" | |
| filemode = "r+" | |
| dirs = Dir[Rails.root.join('spec/**/*.rb').to_s] + Dir[Rails.root.join('lib/**/*.rake').to_s] + Dir[Rails.root.join('lib/**/*.rb').to_s] | |
| dirs.each do |filename| | |
| contents = File.open(filename, "r") do |f| | |
| f.read | |
| end | |
| contents = comment + contents |
| default: &default | |
| adapter: postgresql | |
| encoding: unicode | |
| pool: 5 | |
| username: alabama_song | |
| password: 1 | |
| development: | |
| <<: *default | |
| database: alabama_song_development |
| default: &default | |
| adapter: mysql2 | |
| encoding: utf8 | |
| pool: 5 | |
| username: root | |
| password: | |
| socket: /var/run/mysqld/mysqld.sock | |
| development: | |
| <<: *default |
from http://linux-unix-tips.blogspot.nl/2014/01/set-up-regional-settings-with-command.html
sudo gedit /var/lib/locales/supported.d/local
sudo dpkg-reconfigure locales
sudo gedit /etc/default/locale