- Use
gcloud logging read
to pull logs - Convert it to csv style via json2csv.rb
ruby json2csv.rb
- Use
goaccess
to generate html output
day01: | |
@deno test --allow-read src/aoc-day1.ts |
#: This help command | |
help: | |
@grep -B1 -E "^[a-zA-Z0-9_-]+\:([^\=]|$$)" Makefile | grep -v -- -- | sed 'N;s/\n/###/' | sed -n 's/^#: \(.*\)###\(.*\):.*/\2###\1/p' | column -t -s '###' | |
basic: | |
echo "This is a basic command, it's also the default command" | |
basicWithoutCommand: | |
@echo "Now the command isn't echoed" |
gcloud logging read
to pull logsruby json2csv.rb
goaccess
to generate html output
#!/bin/bash | |
readonly INTERFACE="wg0" | |
# Generate peer keys | |
readonly PRIVATE_KEY=$(wg genkey) | |
readonly PUBLIC_KEY=$(echo ${PRIVATE_KEY} | wg pubkey) | |
readonly PRESHARED_KEY=$(wg genpsk) | |
# Read server key from interface |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Code advent day 1 - 2"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/ramda/0.22.1/ramda.min.js"></script> |
This is a Ghost "App" that will implement a custom Handlebars helper the same as https://apatchofcode.com/adding-custom-handlebars-for-ghost-equals-awesome/
Create a new directory in contents/apps
eg:
mkdir contents/apps/gt
Hi Martin!
Nice to have you onboard. We'll now move a car.
If the car isn't clean
<ul class="photo-grid" data-grid-basis=150> | |
<li><img src="https://farm5.staticflickr.com/4409/36432677486_74a964ac55_b.jpg"></li> | |
<li><img src="https://farm5.staticflickr.com/4413/36081621360_c8b32fc78d_b.jpg"></li> | |
<li><img src="https://farm5.staticflickr.com/4422/35643136894_e7ecfc0ce3_b.jpg"></li> | |
</ul> | |
<script src="/grid.js"></script> |
.month | |
- (0..3).each do |i| | |
.week | |
- (1..7).each do |j| | |
.day{:class => (j%7 == 0 || j%6 == 0) && "day--is-weekend"} | |
%p | |
%span #{(i*7)+j} | |
.week | |
.day | |
%p |
env ARCHFLAGS="-arch x86_64" gem install --no-rdoc --no-ri mysql2 -- | |
--with-mysql-config=/Applications/MAMP/Library/bin/mysql_config |