Skip to content

Instantly share code, notes, and snippets.

View avtar's full-sized avatar

Avtar Gill avtar

  • Inclusive Design Research Centre
  • Toronto, Canada
View GitHub Profile
@avtar
avtar / Vagrantfile
Last active May 9, 2017 20:47
Vagrant shell provisioner that runs ansible-playbook
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "chef/centos-7.0"
config.vm.network "forwarded_port", guest: 8080, host: 8080
{
"summary": {
"lastCiResultStatus": "success",
"numOflastPassedCiResult": 2,
"totalCiResults": 1004
},
"events": [
{
"id": "failed",
"data": [
[{
"summary": {
"lastCiResultStatus": "success",
"numOflastPassedCiResult": 2,
"totalCiResults": 1004
},
"events": [{
"id": "failed",
"data": [{
"date": "2012-03-05",
@avtar
avtar / not-working.js
Created January 27, 2017 01:56
gpii-webdriver tests
/* eslint-env node */
"use strict";
var fluid = require("infusion");
var gpii = fluid.registerNamespace("gpii");
var demos = fluid.registerNamespace("demos");
require("gpii-webdriver");
gpii.webdriver.loadTestingSupport();
var isOverviewPanelVisible = function () {
@avtar
avtar / infusion.json
Last active December 21, 2016 17:18
Mock CI results for Infusion's commit history
[
{
"id": "failed",
"data": [
{
"date": "2007-05-28",
"value": 1
},
{
"date": "2007-05-30",
@avtar
avtar / do.ps1
Last active September 1, 2016 16:40
Param(
[Parameter(Mandatory=$True)]
[String]
[Alias("c")]
$command
)
$env:HOME = "C:\Users\vagrant"
$env:DOIT_HOST = "localhost"
@avtar
avtar / ci.py
Last active August 31, 2016 15:16
#!/usr/bin/env python
import logging
import os
import shlex
import subprocess
import sys
import yaml
from threading import Timer, Lock
@avtar
avtar / pycharm_cygwin.bat
Last active August 30, 2016 16:38
mintty solarized
ForegroundColour=147,161,161
BackgroundColour=0,43,54
CursorColour=253,157,79
Black=0,43,54
BoldBlack=101,123,131
Red=220,50,47
BoldRed=232,115,113
Green=133,153,0
BoldGreen=199,228,0
Yellow=181,137,0
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\vagrant>cd \vagrant
C:\vagrant>node tests\AcceptanceTests.js
Infusion at path C:\node_modules\universal\node_modules\infusion is at top level
16:29:31.998: Registering module universal from path C:\node_modules\universal
16:29:31.998: Registering module infusion from path C:\node_modules\universal\node_modules\infusion
16:29:31.998: Registering module infusion from path C:\node_modules\universal\node_modules\infusion
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'inclusivedesign/fedora22'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'inclusivedesign/fedora22' is up to date...
==> default: Setting the name of the VM: linux_default_1462897989704_33960
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...