Skip to content

Instantly share code, notes, and snippets.

View harvzor's full-sized avatar
🦙

Harvey Williams harvzor

🦙
View GitHub Profile
@miguelmota
miguelmota / Dockerfile
Created June 22, 2018 23:22
Docker faketime lib example
FROM node:8
WORKDIR /
RUN git clone https://github.com/wolfcw/libfaketime.git
WORKDIR /libfaketime/src
RUN make install
WORKDIR /usr/src/app
COPY package.json ./
@Nilzor
Nilzor / chocoProgramListToXml.ps1
Last active September 6, 2017 17:13
A script that converts list of programs output by "choco list" to an XML file parsable by choco installer. Run with 'choco list -lo | chocoProgramListToXml.ps1"
$xml = "<?xml version=`"1.0`" encoding=`"utf-8`"?>`n"
$xml += "<packages>`n"
foreach ($program in $input) {
$name, $version, $shouldBeEmpty = $program.Split(" ")
if (!$shouldBeEmpty) {
$xml += (" <package id=`"{0}`" version=`"{1}`"/>`n" -f $name,$version)
}
}
$xml += "</packages>`n"
echo $xml