Skip to content

Instantly share code, notes, and snippets.

param(
[Parameter(Mandatory=$true)]
[string]
$AdminPassword
)
Set-StrictMode -Version Latest
Set-ExecutionPolicy -executionpolicy remotesigned -force
$pstoolsUrl="https://download.sysinternals.com/files/PSTools.zip"
echo "Set Password"
net user Administrator $AdminPassword
@dwoz
dwoz / gist:2a89f1c9b9f5159b2a15
Last active August 29, 2015 14:14
Dump github issues to csv
#!/usr/bin/env python
import requests
import json
from requests.auth import HTTPBasicAuth
import sys
import StringIO
import csv
from getpass import getpass
# Set this from the app in github.com
@dwoz
dwoz / colors.sh
Created September 16, 2013 04:18
Output ascii colors
#!/bin/bash
#
# Modified from here:
# http://misc.flogisoft.com/bash/tip_colors_and_formatting
#
color16()
{
#Foreground
for clfg in {30..37} {90..97} 39 ; do
@dwoz
dwoz / Debian Wheezy LXC How To
Last active June 25, 2018 19:21
An lxc container creation script that works on a Debain Wheezy host and created a Debian Wheezy guest. Put this file into /usr/share/lxc/templates/ and the name should remain 'lxc-create-wheezy'. Run with lxc-create -n <container name> -t debian-wheezy
== Prepare Debian Wheezy for LXC ==
Install lxc and some utils.
apt-get install lxc bridge-utils libvirt-bin debootstrap
Add a cgroup filesystem that will be mounted at boot. Edit /etc/fstab and add:
cgroup /cgroup cgroup defaults 0 0