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
#!/usr/bin/env bash | |
NODESAPI=/api/v1/nodes | |
function getNodes() { | |
kubectl get --raw $NODESAPI | jq -r '.items[].metadata.name' | |
} | |
function getPVCs() { | |
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\ |
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
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 |
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
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\"", |
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
# 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 |