# 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Game = function Game() { | |
this.marks = []; | |
}; | |
Game.prototype.add_mark = function add_mark(pins) { | |
this.marks.push(pins); | |
}; | |
Game.prototype.score = function score() { |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
- Use
gcloud logging read
to pull logs - Convert it to csv style via json2csv.rb
ruby json2csv.rb
- Use
goaccess
to generate html output