Skip to content

Instantly share code, notes, and snippets.

View ryan-blunden's full-sized avatar

Ryan Blunden ryan-blunden

  • Brisbane, Australia
View GitHub Profile
@ryan-blunden
ryan-blunden / docker-compose.yml
Last active October 3, 2019 04:32
Attempt at lang servers
version: '3.7'
services:
sourcegraph:
container_name: sourcegraph
image: sourcegraph/server:3.8.1
environment:
- SRC_LOG_LEVEL=dbug
ports:
- '80:7080'
- '443:7443'

Sourcegraph demo resources

Developer platform built on 3 pillars:

Sample searches

[
{
"id": 1,
"title": "How to teach programming (and other things)?",
"description": "Everyone should learn programming, right? Yes! But how... Should we allow children to explore and learn about syntax on their own, or should we drill programming like we rote memorize the table of multiplication or German grammatical cases? Felienne's talk outlines this history of programming education and didactics beliefs in programming that lead to the prevalence of exploratory forms of teaching, starting with Papert's LOGO. She will then explore programming education in relation to mathematics and language education and explore how rote learning could look like for programming. Felienne will discuss her own research into misconceptions and code phonology as means to teach programming more effectively.",
"slidesDoc": "",
"speakers": [
{
"name": "Felienne Hermans",
"gitHubUrl": "https://github.com/Felienne",
@ryan-blunden
ryan-blunden / reset_sourcegraph_admin_password.md
Last active April 20, 2023 18:52
Instructions for resetting the Sourcegraph admin password

Presuming you have access to the Sourcegraph Docker container and the container name is sourcegraph:

  1. Get the id for the admin account (should be 1 in most cases):
docker container exec sourcegraph psql -U postgres sourcegraph -c 'SELECT id, username, passwd FROM users'
  1. Set the $ID variable:
@ryan-blunden
ryan-blunden / gophercon_2019_liveblogging_instructions.md
Last active July 24, 2019 23:38
GopherCon 2019 liveblogging instructions

How to liveblog at GopherCon 2019


Live blog assignments are at http://bit.ly/gophercon-2019-liveblog-assignments


  • Take notes capturing the key points and main take aways. In particular, capture interesting things said by the presenter that are not in their slides?
  • How you capture/write your content is up to you, just make sure you're never at risk of losing your work.
@ryan-blunden
ryan-blunden / post_gen.py
Last active July 24, 2019 21:00
GopherCon 2019 data and post generation script
import json
from slugify import slugify
TEMPLATE = '''---
title: "GopherCon 2019 - {session}"
description: "{description}"
author: $LIVEBLOGGER_NAME for the GopherCon 2019 Liveblog
publishDate: {date}T00:00-{time}
tags: [
gophercon
@ryan-blunden
ryan-blunden / repos.jsonc
Created June 4, 2019 21:01
Good mix of repositories for testing a Sourcegraph instance
{
"repos": [
"sourcegraph/sourcegraph", // Mix
"sourcegraph/deploy-sourcegraph", // YAML
"jenkinsci/jenkins", // Java
"getsentry/sentry", // Python
"moby/buildkit", // Go
"pallets/flask", // Python
"googleapis/gapic-generator", // Java
"Azure/azure-storage-js", // TypeScript
@ryan-blunden
ryan-blunden / nginx.conf
Created May 13, 2019 19:42
NGINX conf for lang servers with basic auth
# This config was generated by Sourcegraph.
# You can adjust the configuration to add additional TLS or HTTP features.
# Read more at https://docs.sourcegraph.com/admin/nginx
error_log stderr;
pid /var/run/nginx.pid;
# Do not remove. The contents of sourcegraph_main.conf can change between
# versions and may include improvements to the configuration.
include nginx/sourcegraph_main.conf;
@ryan-blunden
ryan-blunden / docker-compose.yml
Created May 13, 2019 19:39
Docker Compose for lang servers
version: '3'
services:
sourcegraph:
container_name: sourcegraph
image: sourcegraph/server:3.2.0
environment:
- SRC_LOG_LEVEL=dbug
ports:
- '127.0.0.1:80:80'
- 443:7080
@ryan-blunden
ryan-blunden / generate_sourcegraph_docs_nav.py
Last active May 3, 2019 19:35
WIP Python script for generating the nav for docs.sourcegraph.com. Once fully baked, it will be ported to Go and greatly improved.
#!/usr/bin/env python3
from __future__ import annotations
from dataclasses import dataclass, field
import inspect
import os
import re
import sys
from typing import List