How to implement a custom search for Hugo usig Gruntjs and Lunrjs.
Install the following tools:
#!/bin/bash | |
# Arguments can include a quoted string to define the test string to be repeated | |
# If an argument is numbers only, it changes the rate at which to speak (words per minute, default 200) | |
play_all_voices() { | |
local voice | |
local rate=200 | |
local test_string="How are you?" | |
for arg in $@; do | |
if [[ $arg =~ ^[0-9]+$ ]]; then |
#!/opt/local/bin/python | |
import httplib, json | |
APIKEY = "YOUR_API_KEY_HERE" | |
headers = {"TekSavvy-APIKey": APIKEY} | |
conn = httplib.HTTPSConnection("api.teksavvy.com") | |
conn.request('GET', '/web/Usage/UsageSummaryRecords?$filter=IsCurrent%20eq%20true', '', headers) | |
response = conn.getresponse() |
#!/bin/sh | |
remove_dangling() { | |
echo "Removing dangling images ..." | |
docker rmi $(docker images -f dangling=true -q) | |
} | |
remove_stopped_containers() { | |
echo "Removing stopped containers ..." | |
docker rm $(docker ps -qa) |
# Create your superuser | |
$ mongo | |
> use admin | |
> db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]}) | |
> exit | |
# Alias for convenience (optional and at your own risk) | |
$ echo 'alias mongo="mongo --port 27017 -u someadmin -p secret --authenticationDatabase admin"' >> ~/.bash_profile | |
$ source ~/.bash_profile |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
#!/bin/zsh | |
# | |
# Highlight a given file and copy it as RTF. | |
# | |
# Simon Olofsson <[email protected]> | |
# | |
set -o errexit | |
set -o nounset |
/* Theme Name: Flat Pinboard */ | |
/* Theme URL: http://tackk.com/flat-pinboard */ | |
/* Version: v1.0 */ | |
/* Created by: Dan Klammer */ | |
/* Broswer: Chrome + Stylish Extension */ | |
html { | |
-webkit-font-smoothing:antialiased; | |
height:100%; | |
} |