This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#deployment.properties | |
#Wed Oct 30 02:55:51 PDT 2013 | |
deployment.security.level=MEDIUM | |
deployment.javapi.lifecycle.exception=true | |
deployment.trace=true | |
deployment.version=7.21 | |
deployment.browser.path=C\:\\Program Files\\Internet Explorer\\iexplore.exe | |
deployment.modified.timestamp=1383126951687 | |
deployment.expiration.decision.10.45.2=undefined | |
deployment.log=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$c=New-Object Net.WebClient | |
$c.DownloadFile('http://heanet.dl.sourceforge.net/project/sevenzip/7-Zip/9.20/7za920.zip',"$env:TEMP\7za920.zip") | |
$c.DownloadFile('http://www.paehl.com/open_source/?download=curl_733_0_ssl.zip',"$env:TEMP\curl.zip") | |
$shell=New-Object -Com Shell.Application | |
$win=$shell.NameSpace($env:windir) | |
$win.CopyHere($shell.NameSpace("$env:TEMP\7za920.zip").Items(), 16) | |
$win.CopyHere($shell.NameSpace("$env:TEMP\curl.zip").Items(), 16) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get WebPICmd from: http://go.microsoft.com/fwlink/?LinkId=255386 | |
# Direct download link: | |
# x64: http://download.microsoft.com/download/7/0/4/704CEB4C-9F42-4962-A2B0-5C84B0682C7A/WebPlatformInstaller_amd64_en-US.msi | |
# x86: http://download.microsoft.com/download/7/0/4/704CEB4C-9F42-4962-A2B0-5C84B0682C7A/WebPlatformInstaller_x86_en-US.msi | |
webpicmd /Install /Products:WindowsAzurePowershell /AcceptEula | |
webpicmd /List /ListOption:Installed | findstr "PowerShell" | |
# Import-Module "${env:ProgramFiles(x86)}\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$plugins = "${env:ProgramFiles(x86)}\Jenkins\plugins" | |
$c = New-Object Net.WebClient | |
$c.DownloadFile('http://updates.jenkins-ci.org/download/plugins/git-client/1.4.6/git-client.hpi', "$plugins\git-client.hpi") | |
$c.DownloadFile('http://updates.jenkins-ci.org/download/plugins/scm-api/0.2/scm-api.hpi', "$plugins\scm-api.hpi") | |
$c.DownloadFile('http://updates.jenkins-ci.org/download/plugins/git/2.0/git.hpi', "$plugins\git.hpi") | |
Restart-Service Jenkins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://gist.github.com/glombard/7416112/raw/fb317426b2092a41770cf86b50463fb0c2f73706/get-curl.ps1'))" | |
curl -O http://python.org/ftp/python/3.3.2/python-3.3.2.msi | |
curl -O http://python-distribute.org/distribute_setup.py | |
curl -k -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py | |
msiexec /i python-3.3.2.msi /passive /norestart /log %temp%\python-install.log | |
set PATH=%PATH%;C:\Python33 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
import jinja2 | |
import markdown | |
HTML_TEMPLATE = """{% macro get_html() %} | |
{{ content | markdown }} | |
{% endmacro %} | |
{% set html_content = get_html() %} | |
Title from Markdown meta-data: {{ get_title() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable RDP on host: | |
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name fDenyTSConnections -Type DWord -Value 0 | |
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes | |
# Get sublime text editor: | |
$c=new-object Net.WebClient | |
$c.DownloadFile('http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203047%20x64%20Setup.exe',"$env:TEMP\sublime.exe") | |
cd $env:TEMP | |
.\sublime.exe /SILENT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET st2Path=C:\Program Files\Sublime Text 2\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$computer = [ADSI]"WinNT://ie6winxp" | |
$u = $computer.Create("User", "test") | |
$u.SetPassword("test") | |
$u.put("description", "Test user") | |
$u.SetInfo() | |
$group = [ADSI]"WinNT://ie6winxp/Administrators,group" | |
$group.add("WinNT://ie6winxp/test") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-Service -Name 'SNMP' -BinaryPathName 'C:\windows\notepad.exe' -DisplayName 'Fake SNMP Service' -StartupType Manual |
OlderNewer