This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Execute settings to insert lang server settings | |
docker container exec sourcegraph /bin/bash -c 'cat /var/opt/sourcegraph/settings_init.sql | psql -U postgres sourcegraph' | |
# Execute psql commands | |
docker container exec sourcegraph /bin/bash -c 'echo "SELECT * FROM settings;" | psql -U postgres sourcegraph' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# usage (requires fswatch): `fswatch -o . | xargs -n1 -I{} ./bin/hot-reload.sh` | |
# usage (requires fsevents-tools): `while true; do notifywait ~/Projects/docsite; ./update.sh; done` | |
killall docsite | |
cd cmd/docsite | |
go get | |
cd - | |
docsite -config "../sourcegraph/doc/docsite.json" serve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ~/.sourcegraph/config/sourcegraph.key -out ~/.sourcegraph/config/sourcegraph.crt -subj "/CN=localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Placeholder for required styles to correctly render exported Mermaid SVG files from the online live editor | |
*/ | |
/* Number in below styles is unique for each export */ | |
#mermaid-1551921004212 .label { | |
font-family: 'trebuchet ms', verdana, arial; | |
color: #333; | |
font-size: 14px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
sourcegraph: | |
image: sourcegraph/server:3.1.1 | |
environment: | |
- SRC_LOG_LEVEL=dbug | |
ports: | |
- 80:7080 | |
- 443:7080 | |
- 2633:2633 |