Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 53ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register

All gists

All Recently liked Recently forked
Recently created Least recently created Recently updated Least recently updated
Sophia

Sophia / Simple git http server

Last active 1 week ago
0 0 3
1 # Located in app directory
2 user root;
3 worker_processes 1;
4
5 error_log /var/log/nginx/error.log warn;
6 pid /var/run/nginx.pid;
7
8 events {
9 worker_connections 1024;
10 }
Sophia

Sophia / Script to build a site for a given git repo

Last active 1 week ago
0 0 1
1 #!/bin/sh
2
3 REPO=$1
4
5 cd ~/repos/$REPO.git
6
7 REVS=`git show-branch | perl -nle 'm/^\[([^\]]*)\]/; print $1'`
8
9 TAGS=`git tag --sort=-taggerdate | head -n 5 | head -c -1 | tr '\n' ','`
10 if [ -n "$TAGS" ]; then