#Markdown
#Git
| #!/bin/bash | |
| while : | |
| do | |
| clear | |
| git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
| sleep 1 | |
| done |
| #!/usr/bin/env ruby | |
| # Script to import tumblr posts into local markdown posts ready to be consumed by Jekyll. | |
| # Inspired by New Bamboo's post http://blog.new-bamboo.co.uk/2009/2/20/migrating-from-mephisto-to-jekyll | |
| # Supports post types: regular, quote, link, photo, video and audio | |
| # Saves local copies of images | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'nokogiri' |
| desc 'Generate tags page' | |
| task :tags do | |
| puts "Generating tags..." | |
| require 'rubygems' | |
| require 'jekyll' | |
| include Jekyll::Filters | |
| options = Jekyll.configuration({}) | |
| site = Jekyll::Site.new(options) | |
| site.read_posts('') |
| puts 'Generating tag cloud...' | |
| require 'rubygems' | |
| require 'jekyll' | |
| include Jekyll::Filters | |
| options = Jekyll.configuration({}) | |
| site = Jekyll::Site.new(options) | |
| site.read_posts('') |
| // ------------------------------------------------------------------------------- | |
| // 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"); | |
| }); | |
| }); |
| <# | |
| ---------------------------------------------------------------------------------- | |
| 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 |
| # -------------------------------------------------------------------------------- | |
| # 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) | |
| <# |
| ## ------------------------------------------------------------------------------- | |
| ## 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) |
| ## 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 |