Use it for Kubernetes liveness & readiness checks. The middleware opens a HTTP server on port 3001. To check, open the http://localhost:3001/live & http://localhost:3001/ready URL.
{
"state": "up",
"uptime": 7.419,| #!/bin/bash | |
| # Usage: tracing::init [endpoint; default localhost:4317] | |
| function tracing::init() { | |
| export OTEL_EXPORTER_OTLP_ENDPOINT="${1:-${OTEL_EXPORTER_OTLP_ENDPOINT:-localhost:4317}}" | |
| } | |
| # Usage: tracing::auto::init [endpoint; default localhost:4317] | |
| function tracing::auto::init() { | |
| tracing::init |
Use it for Kubernetes liveness & readiness checks. The middleware opens a HTTP server on port 3001. To check, open the http://localhost:3001/live & http://localhost:3001/ready URL.
{
"state": "up",
"uptime": 7.419,| $ curl --dump-header - localhost:12345 | |
| HTTP/1.0 404 Not Found | |
| Content-Type: text/html | |
| Content-Length: 43 | |
| Date: Fri, 05 Dec 2014 17:48:56 +0000 | |
| <html> | |
| <body> | |
| <h1>WUT</h1> | |
| </html> |
| // Size 4-40 | |
| screwDiameter = 2.8; | |
| screwHeadDiameter = 5.5; | |
| screwHeadHeight = 2.3; | |
| insertDiameter = 4; | |
| insertThreadedDiameter = 4.45; | |
| insertHeight = 3.5; | |
| standardPotShaftTopHeight = 8; | |
| standardPotShaftTopDiameter = 6; |
| #!/usr/bin/env python | |
| import zipfile | |
| tempdirlin='/home/user/sattemp' | |
| tempdirwine='D:\\' | |
| converterbin="/windows/Programme/Program Files (x86)/DesignSpark/DesignSpark Mechanical 1.0/sabSatConverter.exe" | |
| # add freecad libdir to path | |
| import sys | |
| sys.path.insert(0,'/usr/local/freecad/lib') |
| server { | |
| root /path/to/app/public; | |
| index index.php; | |
| server_name test.dev; | |
| set $cors_headers "whatever-custom-headers,you-would-like"; | |
| # redirection to index.php | |
| location / { | |
| try_files $uri $uri/ /index.php?$query_string; |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
| function active-window-id { | |
| echo `xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}'` | |
| } | |
| # end and compare timer, notify-send if needed | |
| function notifyosd-precmd() { | |
| if [ ! -z "$cmd" ]; then | |
| cmd_end=`date +%s` | |
| ((cmd_time=$cmd_end - $cmd_start)) | |
| fi |
| # Configuration file for runtime kernel parameters. | |
| # See sysctl.conf(5) for more information. | |
| # See also http://www.nateware.com/linux-network-tuning-for-2013.html for | |
| # an explanation about some of these parameters, and instructions for | |
| # a few other tweaks outside this file. | |
| # | |
| # See also: https://gist.github.com/kgriffs/4027835 | |
| # | |
| # Assumes a beefy machine with lots of network bandwidth |