Note
Legend
- mod
- Module name
- fun
- Function name (in module)
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| #!/bin/bash | |
| # Cronic v2 - cron job report wrapper | |
| # Copyright 2007 Chuck Houpt. No rights reserved, whatsoever. | |
| # Public Domain CC0: http://creativecommons.org/publicdomain/zero/1.0/ | |
| set -eu | |
| OUT=/tmp/cronic.out.$$ | |
| ERR=/tmp/cronic.err.$$ |
There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.
All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.
What do these lines do? Make predictions and then scroll down.
func print(pi *int) { fmt.Println(*pi) }When using “bound” objects in an .aurora file it is an absolute that you do not have spaces in the “mustaches”.
Examples:
{{ profile.my_var }}{{profile.my_var}}When running a docker container, you must ensure that all of the dependent library for the thermos_executor.pex are present in the docker container itself. The thermos_executor runs in the container not the mesos slaves environment.
| import com.sun.net.httpserver.Filter; | |
| import com.sun.net.httpserver.HttpExchange; | |
| import com.sun.net.httpserver.HttpHandler; | |
| import com.sun.net.httpserver.HttpServer; | |
| import java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.InetSocketAddress; | |
| import java.util.Arrays; | |
| import java.util.List; |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| #!/bin/bash | |
| PUBLIC_INTERFACE=eth0 | |
| # This assumes symmetric connection - for asymmetric connections need some more params | |
| TOTAL_BANDWIDTH=1000mbit | |
| # The following params would guarantee staked validaotrs 300 mbps undisturbed and | |
| # limit other traffic to 500 mbps. |