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
sudo: required | |
language: rust | |
# Cache cargo symbols for faster build | |
cache: cargo | |
# Dependencies of kcov, used by coverage | |
addons: | |
apt: | |
packages: |
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
-----BEGIN CERTIFICATE----- | |
MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ | |
RTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYD | |
VQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoX | |
DTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMCSUUxEjAQBgNVBAoTCUJhbHRpbW9y | |
ZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFsdGltb3JlIEN5YmVy | |
VHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKMEuyKr | |
mD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjr | |
IZ3AQSsBUnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeK | |
mpYcqWe4PwzV9/lSEy/CG9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSu |
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
{ | |
"Read from Stdin": { | |
"prefix": "scan", | |
"body": [ | |
"s := bufio.NewScanner(os.Stdin)", | |
"for s.Scan() {", | |
" $1", | |
"}" | |
], |
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
<system.webServer> | |
<!-- other system.webServer stuff --> | |
<rewrite> | |
<outboundRules> | |
<rule name="Forcing Download for PDFs" preCondition="IsPDF"> | |
<match serverVariable="RESPONSE_Content-Disposition" pattern=".*" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" pattern="(.*)\\([^/]+)\.pdf$" /> |
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
# | |
# Customise the XML used to create a scheduled task, then create the task. | |
# | |
function Get-Script-Directory | |
{ | |
$scriptInvocation = (Get-Variable MyInvocation -Scope 1).Value | |
return Split-Path $scriptInvocation.MyCommand.Path | |
} |
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
$ie = new-object -com "InternetExplorer.Application" | |
$ie.visible = $true | |
$ie.navigate("http://localhost/Default.aspx") | |
$doc = $ie.document | |
$link = $doc.getElementByID("link_01") | |
$link.click() |
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
function GenerateFunction($functionName, $codeBlock) | |
{ | |
$argList = "" | |
foreach($argName in $args) | |
{ | |
if($argList.Length -gt 0) | |
{ | |
$argList += "," | |
} |
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
function ClassFactory(){ | |
$object = New-Module { | |
$myField = 5 | |
function xTimesMyField($x) { | |
$x * $myField | |
} | |
Export-ModuleMember -Variable * -Function * | |
} -asCustomObject | |
return $object | |
} |
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
<configuration> | |
<property> | |
<name>mapred.job.tracker</name> | |
<value>hdfs://localhost:9001</value> | |
</property> | |
<property> | |
<name>mapred.map.child.java.opts</name> | |
<value>-Xmx512M</value> | |
</property> | |
<property> |