#Markdown
#Git
.gitignore | |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so |
#http://www.leeholmes.com/blog/2013/06/06/removing-insecure-wireless-connections-with-powershell/ | |
function Get-WlanProfile | |
{ | |
netsh wlan show all | | |
sls "^[\s]+Name\s+:" -Context 16 | | |
% { | |
$conn = [Ordered] @{} | |
$_.Line, $_.Context.PostContext[1], $_.Context.PostContext[15] | % { | |
$label,$value = $_ -split ‘:’ |
install.packages("dpylr") | |
install.packages("reshape2") | |
install.packages("ggplot2") | |
install.packages("shiny") |
## Boxstarter Settings | |
## http://bit.ly/boxstarternrurl?http://bit.ly/myboxstarterscript | |
## http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/iamgabeortiz/f43a071049f31542f2fb/raw/my-boxstarter-script.txt | |
Update-ExecutionPolicy Unrestricted | |
## Default Windows Settings | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Enable-RemoteDesktop | |
Set-TaskbarOptions -Size Small -Lock -Dock Bottom |
## ------------------------------------------------------------------------------- | |
## IronPython and SpotFire ## | |
from Spotfire.Dxp.Data import IndexSet | |
from Spotfire.Dxp.Data import RowSelection | |
from Spotfire.Dxp.Data import DataValueCursor | |
#Return selected value from table | |
def getSelection(dataTable,markingName,columnName): | |
values=DataValueCursoe.CreateFormatted(dataTable.Coumns[columnName]) | |
selection=Document.Data.Markings[markingName].GetSelection(dataTable) |
# -------------------------------------------------------------------------------- | |
# Requires: Windows PowerShell v2.0 | |
$url = "http://username.mit-license.org" | |
$string = '{"copyright": "Your Name, http://your_domain","url": ` | |
"http://your_domain","email": "your_email","format":"html"}' | |
$wc = new-object System.Net.WebClient | |
$wc.Encoding = [System.Text.Encoding]::ASCII | |
$wc.UploadString($url, $string) | |
<# |
<# | |
---------------------------------------------------------------------------------- | |
Caveats | |
-Assumes you have Windows Server Backup Command Line components already installed | |
on the server you are connecting to. | |
#> | |
# Start logging | |
If ($Host.Name -ne "Windows PowerShell ISE Host") { | |
$timestamp = Get-Date -Format yyyyMMddHHmmmss |
// ------------------------------------------------------------------------------- | |
// Opens all external site links in a new tab/window | |
$( document ).ready(function() { | |
$("a[href^='http:']:not([href^='http://" + window.location.host + "'])" | |
|| "a[href^='https:']:not([href^='https://" + window.location.host + "'])") | |
.each(function() { | |
$(this).attr("target", "_blank"); | |
}); | |
}); |
puts 'Generating tag cloud...' | |
require 'rubygems' | |
require 'jekyll' | |
include Jekyll::Filters | |
options = Jekyll.configuration({}) | |
site = Jekyll::Site.new(options) | |
site.read_posts('') |