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
sbt> eval new scala.sys.SystemProperties().toSeq.sortBy(_._1).foreach(println _) | |
sbt> eval scala.sys.env.toSeq.sortBy(_._1).foreach(println _) |
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
# Add to your .bashrc so the terminal starts in the project directory | |
if [[ ${INTELLIJ} == "true" ]]; then | |
cd ${OLDPWD} | |
fi | |
# Note that this works in IntelliJ 14, but not in 16. | |
# Change the shell path in IntelliJ's Tools > Terminal to: | |
# C:\cygwin64\bin\env INTELLIJ=true TERM=cygwin C:\cygwin64\bin\bash.exe --login -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
<# | |
.SYNOPSIS | |
Create a configuration transformation | |
.DESCRIPTION | |
This script runs an ASP.NET configuration transformation, given a source | |
configuration and transformation file. MSBuild.exe is assumed to be in | |
the path, and Visual Studio 2012 should be installed. Modify the path to | |
Microsoft.Web.Publishing.Tasks.dll if a different version of Visual Studio | |
is installed. |
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
param([Parameter(Mandatory=$false)][string]$Query32Bit = "32bit", | |
[Parameter(Mandatory=$false)][string]$Query64Bit = "64bit") | |
Function Get-WindowsSdkDir() | |
{ | |
if (${Global:WindowsSdkDir}) | |
{ | |
Remove-Variable -Name "WindowsSdkDir" -Scope Global | |
} | |
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 | |
for xmlfile in *xml | |
do | |
basename=${xmlfile%.*} | |
xsltproc ~/gs_to_jekyll.xsl ${xmlfile} \ | |
| perl -MHTML::Entities -ne 'print decode_entities($_)' \ | |
> /tmp/pages/${basename}.html | |
done |
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
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="/"> | |
<xsl:text>---</xsl:text> | |
<xsl:text> </xsl:text> | |
<xsl:text>title: </xsl:text> |