- Use
gcloud logging readto pull logs - Convert it to csv style via json2csv.rb
ruby json2csv.rb
- Use
goaccessto generate html output
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 |
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
| var Game = function Game() { | |
| this.marks = []; | |
| }; | |
| Game.prototype.add_mark = function add_mark(pins) { | |
| this.marks.push(pins); | |
| }; | |
| Game.prototype.score = function score() { |
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string