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
# Let's add alternative extensions; again, just in case | |
# blah blah | |
if FFI::Platform.windows? | |
# Do this after trying to add alternative extensions, | |
# since windows install has a python27.a and can cause | |
# troble. | |
# | |
# Some Windows python installers install the DLL in the python directory | |
# others install in the Windows system directory. So we should search both. |
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
diff --git a/lib/albino.rb b/lib/albino.rb | |
index 387c8e9..b77d55e 100644 | |
--- a/lib/albino.rb | |
+++ b/lib/albino.rb | |
@@ -1,4 +1,5 @@ | |
require 'posix-spawn' | |
+require 'rbconfig' | |
## | |
# Wrapper for the Pygments command line tool, pygmentize. |
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
# Config stuff | |
$pythonExe = "C:\Python\Python32\python.exe" | |
$html2Text = "C:\dev\github\html2text\html2text.py" | |
# Load in the category map file | |
$catMap = @{} | |
$catFile = [xml] (get-content categories.xml) | |
$catFile.categories.category | % { $catMap[$_.id] = $_."#text" } | |
# Builds Jekyll YAML Front Matter string |
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
[TestMethod] | |
public async Task MyAsyncTest() | |
{ | |
var result = await SomeLongRunningOperation(); | |
Assert.IsTrue( result ); | |
} |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop] | |
"ScreenSaverIsSecure"="0" |
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
-- Replace this function with your "new" function | |
local function NewItem() | |
return { } | |
end | |
-- Storage of released items | |
local pool = {} | |
-- Get/create a new item | |
local function Acquire() |
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
ls *.avi | % { | |
if( $_.Name -match "futurama-2(\d\d)-amc.avi") { | |
ren $_ Futurama.S02E$($Matches[1])-amc.avi | |
} | |
} |
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
--[[ | |
-- Lua solution to the Weasel Program | |
-- by Peter Provost <pprovost_at_gmail_dot_com> | |
-- See: http://en.wikipedia.org/wiki/Weasel_program | |
-- Alternate language solutions: http://rosettacode.org/wiki/Evolutionary_algorithm#Python | |
--]] | |
local target = "METHINKS IT IS LIKE A WEASEL" | |
local alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ " | |
local c, p = 100, 0.06 |
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
# Git functions | |
# Mark Embling (http://www.markembling.info/) | |
# Is the current directory a git repository/working copy? | |
function isCurrentDirectoryGitRepository { | |
if ((Test-Path ".git") -eq $TRUE) { | |
return $TRUE | |
} | |
# Test within parent dirs |
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
RDP Tunneling via Putty and SSH | |
1. Putty to the external address using ssh (e.g. yourmachine.dyndns.org) | |
2. Figure out the IP address of the machine inside your network that you want to connect to | |
e.g. 192.168.1.110 | |
3. Open putty settings and add the following to the tunnels section | |
Source: 3333 | |
Destination:192.168.1.110:3389 |