This file contains hidden or 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
$domain = "ADATUM.com" | |
$username = "$domain\myUserAccount" | |
$password = "myPassword!" | ConvertTo-SecureString -asPlainText -Force; | |
$credential = New-Object System.Management.Automation.PSCredential($username,$password) | |
$DomainJoinArgs = @{ | |
'DomainName' = $domain; | |
'Credential' = $credential; | |
'OuPath' = ""; | |
'Server' = "[servername here]"; |
This file contains hidden or 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 Expand-ZIPFile($file, $destination) { | |
$shell = new-object -com shell.application | |
$zip = $shell.NameSpace($file) | |
foreach ($item in $zip.items()) { | |
$shell.Namespace($destination).copyhere($item) | |
} | |
} | |
cd ~/Documents | |
mkdir WindowsPowershell\modules\PSReadLine |
This file contains hidden or 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
$serverlist = "server1","server2" | |
foreach ($s in $serverlist) { | |
Invoke-Command -ComputerName $s -AsJob -ScriptBlock { chef-client --once } | |
} |
This file contains hidden or 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
#script to log into the BPOS environment | |
$LiveCred = Get-Credential | |
#Create a connection to the cloud-based organization using the following command. | |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection | |
#Load the Exchange cmdlets on the local computer using the following commands: |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.box = "base" | |
config.vm.box = "http://files.vagrantup.com/lucid32.box" | |
config.vm.define :server do |server_config| | |
server_config.vm.box = "base" |
This file contains hidden or 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
class Picture | |
def exposure(light_level, depth_of_field, motion_capture) | |
def light_level() | |
if light_level == "daylight" | |
iso=200 | |
elsif light_level == "night" | |
iso = 1600 | |
else |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "lucid32" |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "lucid32" |
This file contains hidden or 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
/https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/status(es)?\/(\d+)/i |
This file contains hidden or 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
8 po0-3.dsr2.atl.epikip.net (216.81.59.2) 144.488 ms 140.586 ms 124.980 ms | |
9 * * * | |
10 episode.iv (206.214.251.1) 199.550 ms 196.257 ms 166.206 ms | |
11 a.new.hope (206.214.251.6) 162.699 ms 165.235 ms 178.705 ms | |
12 it.is.a.period.of.civil.war (206.214.251.9) 143.676 ms 154.537 ms 200.501 ms | |
13 * rebel.spaceships (206.214.251.14) 207.047 ms 169.444 ms | |
14 striking.from.a.hidden.base (206.214.251.17) 165.096 ms 141.690 ms 166.328 ms | |
15 have.won.their.first.victory (206.214.251.22) 217.763 ms 148.040 ms 141.027 ms | |
16 against.the.evil.galactic.empire (206.214.251.25) 157.579 ms 186.840 ms 188.769 ms | |
17 * during.the.battle (206.214.251.30) 199.371 ms 185.054 ms |