Skip to content

Instantly share code, notes, and snippets.

View garrmark's full-sized avatar

Mark Garrison garrmark

View GitHub Profile
If you are using Google Chrome and Client SSL Cert and you are tired of constantly selecting certificates, try this:
1. Download and extract Chrome policy templates from here: http://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip
2. Start the Local Group Policy Editor: Start > Run > gpedit.msc > OK
3. Right-click on Computer Policy > Computer Configuration > Administrative Templates and choose Add/Remove Templates…
4. Click Add…, choose policy_templates\windows\adm\en-US\chrome.adm (from the already downloaded and extracted policy templates) and click Open (Note: if your Windows language is different from en-US choose the chrome.adm from the respective language folder)
5. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > Classic Administrative Templates (ADM) > Google > Google Chrome > Content Settings
6. Double-click on Automatically select client certificates for these sites
7. Click Enabled
8. Click Show… in the Options pane
class application_aspnet_regiis {
include 'param::powershell'
# http://stackoverflow.com/questions/9903543/how-to-check-whether-asp-net-4-0-registered-on-iis-7-5
$onlyif_command_regiis = 'if((c:\Windows\System32\inetsrv\appcmd.exe list config -section:system.webServer/isapiFilters) | where-object {$_.Contains(\"Framework\v4.0.30319\")}) { exit 1 } else { exit 0 }'
$onlyif_command_regiis_64 = 'if((c:\Windows\System32\inetsrv\appcmd.exe list config -section:system.webServer/isapiFilters) | where-object {$_.Contains(\"Framework64\v4.0.30319\")}) { exit 1 } else { exit 0 }'
exec { 'aspnet_regiis':
path => "${param::powershell::path};C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\;${::path}",
command => "${param::powershell::command} -Command \"aspnet_regiis.exe -i\"",
@pallan
pallan / chiliproject_to_redmine.rb
Created September 22, 2013 19:33
Run this script from the root of your Redmine installation to convert from a Chiliproject installation
# encoding: UTF-8
# Chiliproject to Redmine converter
# =================================
#
# This script takes an existing Chiliproject database and
# converts it to be compatible with Redmine (>= v2.3). The
# database is converted in such a way that it can be run multiple
# times against a production Chiliproject install without
# interfering with it's operation. This is done by duplicating