Skip to content

Instantly share code, notes, and snippets.

View prologic's full-sized avatar
👋
Principal SRE, Founder of Yarn.social and Salty.im

James Mills prologic

👋
Principal SRE, Founder of Yarn.social and Salty.im
View GitHub Profile
@prologic
prologic / WSC.md
Last active July 29, 2017 21:52
Web Security Checklist (draft)

Web Security Checklist (draft)

Instructions

Please fork this gist and use as your own checklist as you develop/deploy your web application or api.

WARNING: This checklist makes an assumption of the level of expertise and experience of the reader and assumes significant in-depth knowledge and experience in web development.

App

Keybase proof

I hereby claim:

  • I am prologic on github.
  • I am prologic (https://keybase.io/prologic) on keybase.
  • I have a public key ASAHUPcpHAdpMQ6xjiqH90td2zOxLKzgH6z_EREQQJxzWwo

To claim this, I am signing this object:

@prologic
prologic / SelfHosted.md
Last active October 3, 2024 22:16
Self-hosted Golang apps by James Mills / prologic

Self-Hosted Go (Golang) Web Apps

  • golinks - golinks is a web app that allows you to create smart bookmarks, commands and aliases by pointing your web browser's default search engine at a running instance. Similar to bunny1 or yubnub. (Demo) MIT Go
  • notes - notes is a self-hosted note taking web app that lets you keep track of your notes and search them in a easy and minimal way. (Demo) MIT Go
  • pastebin - pastebin is a simple pastebin service with convenient CLI. (Demo) MIT Go
  • shorturl - shorturl is a simple URL shortener with very tiny URL(s). (Demo) MIT Go
  • todo - todo is a simple todo manager. (Demo) MIT Go
  • [wiki](https://git.mills.io/prolog
@prologic
prologic / docker-compose.yml
Created July 31, 2016 19:03
Docker Compose spec for cgod -- a Gopher Daemon written in circuits and Python
gopher:
image: prologic/cgod
ports:
- "70:70"
volume_driver: local
volumes:
- gopherdata:/var/gopher
environment:
- CGOD_HOST=gopher.mills.io
restart: always
@prologic
prologic / demo.sh
Created July 31, 2016 09:32
Demo Gopher upload/download service
$ echo "EXEC:upload" | nc localhost 70
iUpload: cat filename | nc -c localhost 52162 error.host 1
iDownload: gopher://127.0.0.1:70/9/files/rvv6Y5wE7hUppGCAkukWXg error.host 1
.
$ cat README.md | nc -c localhost 52162
$ md5sum README.md
fb8b63ff9eedda78da3e542bea7da746
prologic@Jamess-MacBook
Sat Jul 09 12:03:57
~/tmp/ssh-chat
(master) 0
$ make
go get ./...
package ./src/golang.org/x/crypto/ed25519
imports golang.org/x/crypto/ed25519/internal/edwards25519: use of internal package not allowed
package ./src/golang.org/x/crypto/pkcs12
imports golang.org/x/crypto/pkcs12/internal/rc2: use of internal package not allowed
@prologic
prologic / gogs.yml
Created January 2, 2016 03:58
Docker Compose fog gogs using Volumes
gogs:
image: gogs/gogs
volume_driver: local
volumes:
- gogsdata:/data
environment:
- VIRTUALHOST=gogs.mills.io
- PORT=3000
restart: always
@prologic
prologic / client.sh
Created December 27, 2015 08:47
Docker NFS Remote Volumes
prologic@MacBook-Pro
Sun Dec 27 00:44:10
~
0
$ dki --rm --volumes-from nfs alpine /bin/sh
/ # ls /mnt/nfs
/ #
@prologic
prologic / swarm-create
Created December 23, 2015 06:16
bash script to create docker swarm cluster with docker machine and virtualbox
#!/bin/bash
# Script para generar entorno simulado de cluster Swarm con 3 nodos
# Creación de maquina default (se utilizara como cliente )
# docker-machine create -d virtualbox default
# eval $(docker-machine env default)
# Lanzamos swarm desde maquina default
SWARM_TOKEN=$(docker run swarm create)
@prologic
prologic / pypi-release-checklist.md
Created December 23, 2015 06:06 — forked from audreyfeldroy/pypi-release-checklist.md
My PyPI Release Checklist
  • Update HISTORY.rst
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch