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
$thingsArray = 0,1,2,3,4,5,6,7,8,9 | |
$i = 0 | |
foreach($thing in $thingsArray) | |
{ | |
Start-Sleep -s 1 | |
$i++ | |
$complete = $i / $thingsArray.Length * 100 | |
Write-Progress -activity "Retrieving things..." -status "Percent found: " -PercentComplete $complete | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
<string>feature</string> | |
</array> | |
<key>firstLineMatch</key> | |
<string>기능|機能|功能|フィーチャ|خاصية|תכונה|Функціонал|Функционалност|Функционал|Особина|Могућност|Özellik|Właściwość|Tính năng|Savybė|Požiadavka|Požadavek|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Fīča|Funzionalità|Funktionalität|Funkcionalnost|Funkcionalitāte|Funcționalitate|Functionaliteit|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Feature|Egenskap|Egenskab|Crikey|Característica|Arwedd(.*)</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
require "Capybara" | |
require "Capybara/cucumber" | |
require "capybara/poltergeist" | |
Capybara.register_driver :poltergeist do |app| | |
Capybara::Poltergeist::Driver.new( | |
app, | |
window_size: [1280, 1024]#, |
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
require "Capybara" | |
require "Capybara/cucumber" | |
require "rspec" | |
require "selenium-webdriver" | |
Capybara.register_driver :selenium_chrome do |app| | |
Capybara::Selenium::Driver.new(app, :browser => :chrome) | |
end | |
if Selenium::WebDriver::Platform.find_binary "chromedriver" | |
Capybara.default_driver = :selenium_chrome |
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
require "sauce" | |
require "capybara/cucumber" | |
require "sauce/cucumber" | |
require "sauce/capybara" | |
Sauce.config do |c| | |
c[:browsers] = [["Windows 8", "Internet Explorer", "10"], | |
["Windows 7", "Firefox", "20"]] | |
end |
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 branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |
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
$objType =[System.Security.AccessControl.AccessControlType]::Allow | |
$colRights = [System.Security.AccessControl.FileSystemRights]"Modify" | |
$InheritanceFlag = "ContainerInherit, ObjectInherit" | |
$PropagationFlag = [System.Security.AccessControl.PropagationFlags]::None | |
$objUser = New-Object System.Security.Principal.NTAccount("IIS_IUSRS") | |
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule($objUser, $colRights, $InheritanceFlag, $PropagationFlag, $objType) | |
$objACL = Get-ACL "c:\test\Folder" | |
$objACL.AddAccessRule($rule) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.atlassian.bamboo</string> | |
<key>UserName</key> | |
<string>username_goes_here</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
var deleteFolderRecursive = function(path) { | |
if( fs.existsSync(path) ) { | |
fs.readdirSync(path).forEach(function(file,index){ | |
var curPath = path + "/" + file; | |
if(fs.lstatSync(curPath).isDirectory()) { // recurse | |
deleteFolderRecursive(curPath); | |
} else { // delete file | |
fs.unlinkSync(curPath); | |
} | |
}); |
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
var fs = require('fs'); | |
var traverseFileSystem = function (currentPath) { | |
console.log(currentPath); | |
var files = fs.readdirSync(currentPath); | |
for (var i in files) { | |
var currentFile = currentPath + '/' + files[i]; | |
var stats = fs.statSync(currentFile); | |
if (stats.isFile()) { | |
console.log(currentFile); | |
} |
OlderNewer