Skip to content

Instantly share code, notes, and snippets.

version: "2.0"
services:
image:
image: fusion/mac020
build:
context: "."
dockerfile: ./docker/Dockerfile
box:
resource-types:
- name: samba-resource
type: docker-image
source:
repository: airtonix/concourse-resource-samba
resources:
- name: source
type: git
source:
@airtonix
airtonix / README.md
Last active December 6, 2016 02:55
Test repo for windows variables in docker-compose

If you can see this file you are standing too close.

@airtonix
airtonix / validateABN.js
Last active February 29, 2024 03:30
Validate Australian Business Number
/**
* Checks ABN for validity using the published ABN checksum algorithm.
* @author Guy Carpenter
* @license http://www.clearwater.com.au/code None
* @param {String|Number} value abn to validate
* @return {Boolean} Is ABN Valid
*/
function validateABN (value) {
var weights = [10, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19],
@airtonix
airtonix / guide.md
Last active January 26, 2024 12:26
Guide: AdminToolkit for Arma3 ExileMod

Info

Server:

  • Boot2Docker Host:
    • Game Server: A Ubuntu 14.10 docker image based off houki/arma3
    • Database Server: official mariadb docker image

Client:

<template>
<div v-on:click="click">Click Me!</div>
</template>
<script>
export default {
data () {
return {
foo: 'bar'
}
// api/index.js
import Request from 'superagent'
export const getUser (userId) {
return Request
.get('/api/user/:userId');
}

Replace 3ware disk w/ & w/o ZFS

Remove disk from ZFS (3ware)

Remove disk from zpool

  • Command: zpool offline <pool> <disk>
  • Example: zpool offline data da17

Remove from controller

  • Command: tw_cli /c0/pX remove
@airtonix
airtonix / 0.README.md
Created January 18, 2015 23:46
Sails.Js with Passport.js and Passport-JWT

Intro

session-less use of jwt and passport.js

note: by module I mean either a javascript (.js) or coffeescript (.coffee) file

installation

install the following:

  • sailsjs
@airtonix
airtonix / makeiso.sh
Last active August 29, 2015 14:08 — forked from geekle/makeiso.sh
#!/bin/bash
# Creates a bootable ISO from CoreOS' PXE images.
# Also adds a run script to the OEM partition and converts the ISO so it can boot from USB media.
# Based heavily off https://github.com/nyarla/coreos-live-iso - Thanks Naoki!
set -e
# Default configurations
SYSLINUX_VERSION="6.02"