###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| FROM golang:1.11.5-alpine | |
| RUN mkdir /estimate | |
| ADD . /estimate | |
| WORKDIR /estimate | |
| RUN go build main.go | |
| FROM alpine:latest | |
| COPY --from=base /estimate/main /usr/local/bin/estimator |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "math" | |
| "math/rand" | |
| "net/http" | |
| "os" |
| $ minikube start | |
| There is a newer version of minikube available (v0.34.1). Download it here: | |
| https://github.com/kubernetes/minikube/releases/tag/v0.34.1 | |
| To disable this notification, run the following: | |
| minikube config set WantUpdateNotification false | |
| Starting local Kubernetes v1.13.2 cluster... | |
| Starting VM... | |
| Getting VM IP address... | |
| Moving files into cluster... |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| """ | |
| Simple calendar using ttk Treeview together with calendar and datetime | |
| classes. | |
| """ | |
| import calendar | |
| import tkinter | |
| import tkinter.font | |
| from tkinter import ttk | |
| def get_calendar(locale, fwday): |
| ############################################################################### | |
| ## Monit control file | |
| ############################################################################### | |
| ## | |
| ## Comments begin with a '#' and extend through the end of the line. Keywords | |
| ## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'. | |
| ## | |
| ## Below you will find examples of some frequently used statements. For | |
| ## information about the control file, a complete list of statements and | |
| ## options please have a look in the monit manual. |