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 / build-gpii.ps1
Last active December 2, 2015 17:30
Set up the GPII framework on Windows 8.1
# The build process will fail if an empty 'universal' directory exists
$strFolderName="c:\vagrant\node_modules"
If (Test-Path $strFolderName){
Remove-Item -Recurse -Force -ErrorAction 0 $strFolderName
}
# Use ASCII characters for the npm tree drawing
$env:npm_config_unicode = "false"
# Build GPII
@avtar
avtar / gpii-linux-framework.yml
Last active October 2, 2015 23:26
GPII Jenkins Job Builder configuration
- job:
name: gpii-linux-framework
project-type: freestyle
node: jenkins-builder
concurrent: false
scm:
- git:
url: https://github.com/avtar/linux.git
branches:
- GPII-1258
$ sudo dnf install node-gyp
Last metadata expiration check performed 0:57:39 ago on Mon Oct 5 17:23:56 2015.
Dependencies resolved.
==============================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================
Installing:
node-gyp noarch 0.10.6-4.fc22 fedora 30 k
nodejs-abbrev noarch 1.0.4-8.fc21 fedora 7.8 k
nodejs-ansi noarch 0.2.1-2.fc21 fedora 13 k
@avtar
avtar / Fedora
Last active October 6, 2015 16:43
Nodesource vs Fedora Node.js package dependencies
$ rpm -qpR nodejs-0.10.36-4.fc22.x86_64.rpm
/bin/sh
ca-certificates
libc.so.6()(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libcares.so.2()(64bit)
libcrypto.so.10()(64bit)
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'yaml'
ansible_vars = YAML.load_file('provisioning/vars.yml')
# By default this VM will use 1 processor core and 1GB of RAM. The 'VM_CPUS' and
# "VM_RAM" environment variables can be used to change that behaviour.
cpus = ENV["VM_CPUS"] || 1
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'yaml'
ansible_vars = YAML.load_file('provisioning/vars.yml')
app_name = ansible_vars["nodejs_app_name"]
app_directory = ansible_vars["nodejs_app_install_dir"]
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'yaml'
ansible_vars = YAML.load_file('provisioning/vars.yml')
app_name = ansible_vars["nodejs_app_name"]
app_directory = ansible_vars["nodejs_app_install_dir"]
---
- hosts: localhost
user: root
tasks:
- name: Install nginx
dnf:
name: nginx
state: latest
---
- hosts: localhost
user: root
vars_files:
- vars.yml
pre_tasks:
- include_vars: secrets.yml
ignore_errors: yes
[
{
"sha": "718b599668e2350966a7a002ba776fe6c798ac2a",
"commit": {
"author": {
"name": "Kasper Markus",
"email": "kasper2@markus.dk",
"date": "2016-03-30T12:34:49Z"
},
"committer": {