Skip to content

Instantly share code, notes, and snippets.

View jennings's full-sized avatar
🦄
What a mess I've made

Stephen Jennings jennings

🦄
What a mess I've made
View GitHub Profile
@jennings
jennings / install-rhodecode.rst
Last active March 28, 2024 21:13
Step-by-step instructions for installing RhodeCode 1.3.6 on Ubuntu Server 12.04 with Nginx 1.2.1 as the reverse proxy. This was written when these were the latest versions; add a comment if the scripts need to change to accommodate changes in newer versions.The script assumes you want to use a SQLite database. Sorry, you'll need to find another …

Setting up RhodeCode on Ubuntu Server 12.04

Goal

  • Everything running on a single Ubuntu Server
  • RhodeCode running in a virtualenv
  • Use SQLite as the database

Switching to Jujutsu workflows

When coming to Jujutsu, one may try to emulate their Git workflows directly. This is possible, but can cause a lot of difficulty.

This guide shows how to translate Git workflows to Jujutsu.

Getting started

Cloning an existing repository

@jennings
jennings / windbg-notes.md
Last active June 1, 2023 05:12
Debugging .NET with WinDbg feels like wizardry, so naturally I want to get better at it.

Load PSSCOR4:

.loadby sos clr
.load C:\Debug\Psscor4\amd64\psscor4.dll

or:

@jennings
jennings / Makefile
Last active January 10, 2023 17:40
Run Azurite over HTTPS with a trusted certificate
# Makefile for running Azurite with or without HTTPS. Requires the
# mkcert and azurite commands to be available.
#
# Usage:
# make - Run Azurite with HTTPS
# make https - Run Azurite with HTTPS
# make http - Run Azurite with HTTP
# make install - Create certificates using mkcert (runs automatically)
# make reset - Clear the Azurite database
var ParseError = from _ in Parse.String("error") select Level.Error;
var ParseWarning = from _ in Parse.String("warning") select Level.Warning;
var ParseLevel = ParseError.Or(ParseWarning);
var ParsePosition =
from lp in Parse.String("(")
from line in Parse.Number
from comma in Parse.String(", ")
from column in Parse.Number
from rp in Parse.String(")")
select new Position
@jennings
jennings / File0.txt
Last active July 29, 2022 16:32
Testing the order that gists sort files. It seems to be first case-insensitively, then case-sensitively. And the title is the first file in ASCII order.
a
@jennings
jennings / README.md
Created June 16, 2022 15:58
Kdiff3 line ending bug
@jennings
jennings / ForeignKey_Option1.cs
Last active December 2, 2021 22:00
ForeignKey and InverseProperty placements for Entity Framework Core
public class Person
{
public int Id { get; set; }
public List<Book> AuthoredBooks { get; set; }
public List<Book> EditedBooks { get; set; }
}
public class Book
{
public int Id { get; set; }
@jennings
jennings / Makefile
Created May 14, 2021 16:55
Makefile syntax to run different commands on Windows. Works with GNU Make, not NMake
target:
ifeq ($(OS),Windows_NT)
powershell -NoProfile -Command "Get-Date"
else
date
endif
using System;
using System.Threading.Tasks;
using MassTransit;
namespace mttest
{
class Program
{
static async Task Main(string[] args)
{