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
curl http://site.com/file.crl -o /var/www/file.crl | |
lastmod=`openssl crl -inform DER -text -noout -in /var/www/file.crl | grep "Last Update" | awk '{ print "date -d \""$3FS$4FS$5FS$6"\" +%Y%m%d%H%M" }' | bash` | |
touch -mt $lastmod /var/www/file.crl |
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
$scandir = "d:\video" | |
$outputdir = "d:\encoded" | |
$filelist = Get-ChildItem $scandir -filter *.mkv -recurse | |
$num = $filelist | measure | |
$filecount = $num.count | |
$i = 0; | |
ForEach ($file in $filelist) | |
{ |
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
# New Relic deployment events | |
my $ua = LWP::UserAgent->new; | |
$response = $ua->request(POST 'https://api.newrelic.com/deployments.xml', | |
Content => [ | |
'deployment[application_id]' => $APPID, | |
'deployment[description]' => 'deployment message', | |
'deployment[revision]' => $RELEASE_VERSION, | |
'deployment[user]' => 'Jenkins' | |
], | |
'x-api-key' => $APIKEY |
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
$entries = @{} | |
import-csv $csv | % { | |
$entries.add(($adpentry.EEfile_Number),(@{ | |
fname = $_."First Name" | |
lname = $_."Last Name" | |
department = $_.Department | |
location = $_.Location | |
manager = $_.Manager | |
title = $_."Job Title" | |
})) |
NewerOlder