- Clone this gist.
- Set environment variables for
REGION
,PROJECT_ID
andREPOSITORY
. shipping-private-markdown-service.sh
- Set environment variable for
SERVICE_URL
. test-markdown-service.sh
shipping-public-service.sh
- Visit the public service's URL in a browser.
cleanup.sh
This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.
Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.
#!/usr/bin/env bash | |
# A simple script that sets environment variables to allow launching applications using Proton's wine | |
# You can either source the script for use in the current shell, after which you can use wine commands as usual | |
# Or execute it with a program as the arguments e.g `protonenv winetricks` or `protonenv winecfg` | |
# Paths to check for Steam installation | |
STEAM_DIRS=" | |
$HOME/.local/share/Steam | |
$HOME/.steam/steam |
First, you'll need to spin up a Google Compute Engine instance using your favourite Linux Distro. I like CentOS 7 :)
Make sure:
- Use Ephemeral IP address (sticky to the instance, not static)
- Set up the port for the default 25565 (I think) - needs a firewall?
Also you'll have to change the port that the minecraft server runs on, because the GCE is only open on https or http.
First, you'll need to spin up a Google Compute Engine instance using your favourite Linux Distro. I like CentOS 7 :)
Make sure:
Also you'll have to change the port that the minecraft server runs on, because the GCE is only open on https or http.
// Demonstration that bulk insertsin Node.js sqlite3 using prepared statements is very slow. | |
// Usage: run with one command line argument, one of "db", "reuse", "finalize" | |
// Details: http://nelsonslog.wordpress.com/2014/11/16/node-js-sqlite3-very-slow-bulk-inserts/ | |
var sqlite3 = require('sqlite3').verbose(); | |
var start = Date.now(); | |
var db = new sqlite3.Database('inserttest.sqlite'); | |
var mode = process.argv[2], runs = "100"; | |
db.serialize(function() { |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
SonarQube does currently not support Raspberry PI. | |
This is a workaround. It compiles a armv6 compatible version of the java-wrapper and configures sonarqube to use it. | |
(Testet with Raspbian, wheezy, 3.6) | |
Compile java-wrapper for ARMv6 | |
============================ | |
Download latest version of " wrapper_prerelease_XY.tar" from http://wrapper.tanukisoftware.com/downloads/ (for me 3.5.17 works) |
var express = require('express'), | |
passport = require('passport'), | |
LocalStrategy = require('passport-local').Strategy, | |
connect = require('connect'), | |
http = require('http'), | |
path = require('path'), | |
util = require('util'), | |
fs = require('fs'), | |
redis = require('redis'), | |
cookie = require('cookie'), |