Skip to content

Instantly share code, notes, and snippets.

gizmo_tronic gizmotronic

Block or report user

Report or block gizmotronic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gizmotronic
gizmotronic / Dockerfile
Last active Apr 10, 2019
How to run the official Atlassian Bamboo Server image using a context path
View Dockerfile
FROM atlassian/bamboo-server:6.8.1
LABEL maintainer="alex.smythe@example.com"
RUN sed -i -e 's/Context path=""/Context path="${com.example.catalina.ContextPath}"/' ${BAMBOO_SERVER_INSTALL_DIR}/conf/server.xml
@gizmotronic
gizmotronic / user_data
Last active Jun 8, 2019
RancherOS cloud-config snippet for alternate SSH port
View user_data
runcmd:
- [ sed, -i, -e, "/^#*[\\s]*Port\\s.*/s//Port 1022/", /etc/ssh/sshd_config ]
@gizmotronic
gizmotronic / post-receive
Last active Jun 14, 2018
Mirror gitlab repository via post-receive
View post-receive
#!/bin/sh
BACKUPPATH="/path/to/backup/location"
REPOPATH=`dirname $0`
REPOPATH=`cd -P "${REPOPATH}/.."; pwd`
cd "${REPOPATH}"
REPONAME=`basename "${REPOPATH}"`
@gizmotronic
gizmotronic / evc.coffee
Created Jun 30, 2013
Compare Node.js event signaling using callbacks vs. the event emitter class
View evc.coffee
EventEmitter = require('events').EventEmitter
class TestSubject extends EventEmitter
constructor: (callback) ->
@callback = callback
start: ->
started = Date.now()
while (Date.now() - started) < 10000
@emit 'fire'
View README.md

#Flash, java, mp3 and mp4 and pdf support for Chromium OS builds by hexxeh

This script downloads and installs libraries needed for Chromium, so that you can actually "TEST" multimedia experience.

##How to use?

Simply run as root user

curl -L http://goo.gl/WJRBFy | bash
You can’t perform that action at this time.