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 / main.tf
Last active March 23, 2020 03:46
Deploy Sourcegraph on AWS using Terraform
module "sourcegraph" {
source = "github.com/sourcegraph/deploy-sourcegraph-aws"
vpc_id = "vpc-b3708ed4"
subnet_id = "subnet-091a876e"
app_name = "sourcegraph-demo"
instance_type = "t2.xlarge"
key_name = "ryan-blunden"
}
@ryan-blunden
ryan-blunden / aws-cli-commands.sh
Last active March 23, 2020 02:44
List AWS VPCs showing the VPC Id and Tags
alias aws-list-vpcs="aws ec2 describe-vpcs | jq '.Vpcs[] | {VpcId,Tags}'"
alias aws-list-key-pairs="aws ec2 describe-key-pairs | jq '.KeyPairs[].KeyName'"
@ryan-blunden
ryan-blunden / install-sourcegraph-ubuntu.sh
Last active November 27, 2023 09:58
Install Sourcegraph on Ubuntu 18.04
#!/usr/bin/env bash
export SOURCEGRAPH_VERSION=3.14.0
export USER_HOME=/home/ubuntu
export SOURCEGRAPH_CONFIG=/etc/sourcegraph
export SOURCEGRAPH_DATA=/var/opt/sourcegraph
export PATH=$PATH:/usr/local/bin
export DEBIAN_FRONTEND=noninteractive
export CAROOT=${SOURCEGRAPH_CONFIG}
export IP_ADDRESS=$(echo $(hostname -I) | awk '{print $1;}')
@ryan-blunden
ryan-blunden / install_gitlab_dev.sh
Created November 8, 2019 19:12
Install GitLab dev Sourcegraph branch
yum clean all
yum update -y
yum upgrade -y
amazon-linux-extras install -y ruby2.6 redis4.0 GraphicsMagick1.3 \
postgresql10 epel
yum install -y postgresql-server postgresql-devel libicu-devel cmake \
gcc gcc-c++ ed fontconfig freetype libfreetype.so.6 libfontconfig.so.1 \
@ryan-blunden
ryan-blunden / what_is_sourcegraph.md
Last active October 24, 2019 21:33
What is Sourcegraph resources

What is Sourcegraph resources

Use the below content to quickly understand and see what Sourcegraph can do.


Sourcegraph overview

Developer platform built on 3 pillars:

@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 February 6, 2025 07:27
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.