I hereby claim:
- I am dewe on github.
- I am dewe (https://keybase.io/dewe) on keybase.
- I have a public key ASCpOsl9PZ0aK7Avt9bc6iDnHH87fMKhMc-tycshw_kyRQo
To claim this, I am signing this object:
# epoch format, use with arg or pipe; no argument -> echo current epoch | |
function epoch() { | |
fmt="+%Y-%m-%dT%H:%M:%S%z" | |
if [ -t 0 ] && [ -z "$1" ]; then | |
# no input, echo current epoch | |
date "+%s" | |
elif [[ -z "$1" ]]; then | |
# no arg, use piped value | |
xargs -I {} sh -c "date -r {} $fmt" | |
else |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: restarter-job | |
namespace: podinfo | |
--- | |
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1 |
package main | |
import ( | |
"context" | |
"encoding/base64" | |
"flag" | |
"fmt" | |
"strings" | |
"github.com/aws/aws-sdk-go-v2/config" |
#!/usr/bin/env bash | |
# Upgrade ingress resource api version to v1. | |
# | |
# USAGE: | |
# convert-ingress-version.sh [OPTIONS] <FILE> | |
# | |
# OPTIONS: | |
# -i update the yaml file inplace. | |
# |
help: ## Display this help (thanks to https://suva.sh/posts/well-documented-makefiles) | |
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } /\Z/ { printf "\n"}' $(MAKEFILE_LIST) |
I hereby claim:
To claim this, I am signing this object:
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
var app = require('express.io')(); | |
app.http().io(); | |
app.listen(7076) | |
// override authorization checks, always true. This works even though app has begun listening. | |
app.io.set('authorization', function (handshake, accept) { accept(null, true); }); | |
// register a new handler for the message handler under test. The can inject mock data into session. | |
var handler = app.io.router['get-discussions']; | |
app.io.router['get-discussions'] = function (request) { |
var app = require('express.io')(); | |
var log4js = require('log4js'); | |
var logger = log4js.getLogger('io'); | |
app.http().io(); | |
app.listen(7076) | |
app.io.set('logger', logger); | |
app.io.set('log level', log4js.levels.TRACE); |
@echo off | |
setlocal | |
pushd %~dp0 | |
set APPDATA=%CD%\data | |
echo APPDATA=%APPDATA% | |
popd | |
endlocal |