How to implement a custom search for Hugo usig Gruntjs and Lunrjs.
Install the following tools:
// ==UserScript== | |
// @name git.eclipse.org bug reference detector | |
// @version 0.1.0 | |
// @licence EPL v1.0 - http://www.eclipse.org/legal/epl-v10.html | |
// @namespace http://www.github.com/kartben | |
// @description Make references to Eclipse bugs clickable in git.eclipse.org Web UI | |
// @include http://git.eclipse.org/* | |
// ==/UserScript== | |
var nodes = document.evaluate( |
#!/usr/bin/perl | |
use strict; | |
open(TSV, "freebase-sameas-dbpedialite-20120424.tsv") or die "Failed to open file: $!"; | |
my %map; | |
while(<TSV>) { | |
my ($freebase, $dbpedialite) = split(/\s+/); | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; | |
public class Main { | |
/** | |
* @param args |
var cluster = require('cluster'); | |
var http = require('http'); | |
var numCPUs = require('os').cpus().length; | |
if (cluster.isMaster) { | |
// Fork workers. | |
for (var i = 0; i < numCPUs; i++) { | |
cluster.fork(); | |
} | |
cluster.on('exit', function(worker, code, signal) { |
require 'sched' | |
require 'shell.telnet' | |
-- Start a telnet server on port 1234 | |
-- Once this program is started , you can start a Lua VM through telnet | |
-- using the following command: telnet localhost 1234 | |
local function run_server() | |
shell.telnet.init { | |
address = '0.0.0.0', | |
port = 1234, |
#!/bin/bash | |
S3_LOG_LOCATION="s3://thelogbucket/logdir" | |
LOCAL_LOG_LOCATION="/tmp/log/" | |
REPORT_TITLE="My report title" | |
HTML_OUTPUT_DIR="/tmp/reporthtml" | |
REPORT="/tmp/report.ps" | |
# Sync log files to a local directory | |
s3cmd -v sync ${S3_LOG_LOCATION} ${LOCAL_LOG_LOCATION} |
/******************************************************************************* | |
* Copyright 2017 Andrew Domaszek | |
* | |
* All rights reserved. | |
* This program made available under BSD-new. | |
*******************************************************************************/ | |
/** | |
* This example is designed for Linux, using such calls as setsockopt and gettimeofday. | |
* On embedded, it's likely that all of the mbedtls_net_* functions would need to be |
A script to bootstrap The Things Stack, based on the getting started guide.
SSHUser
: the username that will be used to SSH into the server. This user must be able to sudo
.