Skip to content

Instantly share code, notes, and snippets.

@degnome
degnome / gist:749136
Created December 20, 2010 22:38
Knockout Bound textbox, dropdown list adding to a bound GridList using plugin templates.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Example</title>
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js" type="text/javascript" ></script>
<script src="knockout-1.1.1.js" type="text/javascript" ></script>
<style type="text/css">
.CB{clear:both;}
try {
# Configure basic system settings
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
Enable-RemoteDesktop
# Standard packages to install
cinst VisualStudio2013Ultimate -InstallArguments "WebTools"
try {
# Configure basic system settings
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Disable-InternetExplorerESC
Enable-RemoteDesktop
# Standard packages to install
cinst VisualStudio2013ExpressWeb
@degnome
degnome / Win7-DevMachine-Free
Last active August 29, 2015 13:56
Win7-DevMachine-Free
try {
# Configure basic system settings
Update-ExecutionPolicy Unrestricted
# Standard packages to install
cinst VisualStudio2013ExpressWeb
cinst mssqlserver2012express
cinst git-credential-winstore
cinst poshgit
@degnome
degnome / deploy.sh
Created March 30, 2015 15:16
Simple Deploy Script
#!/bin/bash
rm -R -f azure
git clone {azure repo url} azure
rm -R azure/*
cp -R -f build/* azure/
cd azure
git add -A
git commit -m "Code Shipped"
git push origin master
@degnome
degnome / install
Last active August 29, 2015 14:20
Boxstarter Script for VM-based Development Environment (VDMS)
# This boxstarter script installs a standard VDMS Developer Workstation.
# Magic boxstarter URL to start the show:
#
# start http://boxstarter.org/package/nr/url?
function SetPowerPlan([string]$PreferredPlan)
{
Write-Host "Setting Powerplan to $PreferredPlan"
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='$PreferredPlan'").InstanceID.tostring()
@degnome
degnome / install.sh
Last active February 15, 2016 16:43
#!/bin/bash
##### Constants
MACHINE_NAME=private-cloud
# DOCKER_REPO=
# DOCKER_REPO2=
# DOCKER_USER=
# DOCKER_PWD=
# DOCKER_EMAIL=
var value = datasources["RL78"]["Microphone"]
if (value > 12) {
alert("clap on");
})
return value;
{
"id": "test",
"instances": 3,
"cpus": 0.1,
"mem": 65,
"container": {
"type": "DOCKER",
"docker": {
"image": "degnome/hello",
"network": "BRIDGE",
FROM irvui/alpine-node:4.4.3
MAINTAINER Daniel Scholl <[email protected]>
WORKDIR /opt/tool
RUN apk add --no-cache curl make gcc g++ binutils-gold python linux-headers paxctl libgcc libstdc++ gnupg && \
adduser -S tspace && \
addgroup -S tspace && \
npm install -g mesosdns-cli && \
apk del curl make gcc g++ binutils-gold python linux-headers paxctl gnupg ${DEL_PKGS} && \