Skip to content

Instantly share code, notes, and snippets.

@TheConnMan
TheConnMan / SkyRing.yml
Last active Feb 11, 2018
Kubernetes SkyRing
View SkyRing.yml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: skyring
spec:
replicas: 3
template:
metadata:
labels:
app: skyring
View .bashrc-theconnman
# Additional .bashrc file by TheConnMan
alias atm="atom.cmd ."
alias ctop="docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock quay.io/vektorlab/ctop:latest"
function runmulti() {
for d in ./*/ ; do (cd "$d" && echo -e "" && pwd && "$@"); done
}
alias projects="ssh theconnman@projects.theconnman.com"
@TheConnMan
TheConnMan / Dockerfile
Last active Aug 16, 2016
Bonsai Water Slack Relay Post
View Dockerfile
FROM alpine
RUN apk add --no-cache nodejs git
RUN npm install -g bower
WORKDIR /usr/src/app
COPY package.json /usr/src/app
RUN npm install
@TheConnMan
TheConnMan / index.js
Last active Aug 15, 2016
Bonsai Water Post
View index.js
app.get('/api/:fn', function(req, res) {
try {
var result = {
"ok": true
};
if (req.query.apiKey !== process.env.API_KEY) {
throw "Invalid API key";
}
if (!req.query.clientId || req.query.clientId.length === 0) {
throw "A client ID is required";
View SampleUtterances.txt
BlindsIntent to {open|action} the blinds
BlindsIntent to {close|action} the blinds
BlindsIntent to {shut|action} the blinds
View app.js
...
io.on('connection', function(socket) {
socket.on('username', function(username) {
socket.username = username;
});
socket.on('message', function(text) {
rooms.send(io, socket, text, 'message');
});
socket.on('change', function(room) {
View Windows_Programs.md

Windows Programs

Dev

  • 7-Zip
  • Aqua Data Studio 16
  • Atom
  • Babun
  • Docker/Docker Toolbox
  • Chrome
  • Groovy/Grails Tool Suite
  • IntelliJ
View .jsbeautifyrc
{
"html": {
"brace_style": "collapse",
"indent_char": "\t",
"indent_scripts": "normal",
"indent_size": 1,
"max_preserve_newlines": 1,
"preserve_newlines": true,
"unformatted": ["a", "sub", "sup", "b", "i", "u"],
"wrap_line_length": 0,
@TheConnMan
TheConnMan / .gitconfig
Last active Apr 18, 2018
TheConnMan's Gitconfig
View .gitconfig
[user]
email = bcconn2112@gmail.com
name = TheConnMan
[alias]
slog = log --date-order --graph --format='%C(green)%h %Creset%C(yellow)%an%Creset %C(cyan)(%G?)%Creset %C(blue)%ad%Creset %C(red)%d%Creset %s' --date='relative'
hlog = !git slog --all
dlog = !git hlog --date='format-local: %D %T'
files = diff --name-only
undo = reset --hard HEAD
all = !git push --all && git push --tags
View create_labels.sh
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform
You can’t perform that action at this time.