Skip to content

Instantly share code, notes, and snippets.

View DoctorU's full-sized avatar

Steve Hobdell DoctorU

View GitHub Profile
@DoctorU
DoctorU / Order of Service.md
Last active October 5, 2025 08:50
Securing Cloud Run Services

Order of service

  • Clone this gist.
  • Set environment variables for REGION, PROJECT_ID and REPOSITORY.
  • 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
@thesamesam
thesamesam / xz-backdoor.md
Last active October 8, 2025 04:18
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

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.

Background

@Sporif
Sporif / protonenv
Last active October 4, 2021 16:51
A simple script that sets environment variables to allow launching applications using Proton's wine
#!/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
@DoctorU
DoctorU / MINECRAFT.md
Last active August 29, 2015 14:13 — forked from anonymous/README.md
Running Minecraft on a Google Compute Engine centos 7 instance. Or any other cloud VM.

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.

anonymous
anonymous / README.md
Created January 7, 2015 14:59
Setting up and running Minecraft on a Google Compute Engine Instance - run as sudo

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)

Also you'll have to change the port that the minecraft server runs on, because the GCE is only open on https or http.

@NelsonMinar
NelsonMinar / bulkinsert.js
Last active October 4, 2025 07:08
A demonstration of slow sqlite3 bulk inserts in node.js
// 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() {
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active September 17, 2025 08:07
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@synox
synox / install SonarQube on Raspberry Pi
Last active October 4, 2022 12:06
How to install SonarQube on Raspberry PI
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)
@katanacrimson
katanacrimson / app.js
Created December 2, 2012 18:23
nodejs app - expressjs 3.0 + socket.io v9 + passport + redis
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'),