I hereby claim:
- I am drmohundro on github.
- I am drmohundro (https://keybase.io/drmohundro) on keybase.
- I have a public key ASDfnjmOHn27rh_MABD4tr3t-bugI4x2mzGyBU82z3pxzgo
To claim this, I am signing this object:
using System; | |
using System.CodeDom; | |
using System.CodeDom.Compiler; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Web; | |
using Omitted.Utilities.SystemTypeExtensions; | |
namespace Omitted.Services.Forms.Core.Clients.Generation | |
{ |
import SWXMLHash | |
let xml = """ | |
<root> | |
<catalog> | |
<book><author>Bob</author></book> | |
<book><author>John</author></book> | |
<book><author>Mark</author></book> | |
</catalog> | |
</root> |
$ErrorActionPreference = 'Stop'; | |
Invoke-WebRequest 'https://vstsagenttools.blob.core.windows.net/tools/SQLCMD/11.0/SQLCMD.zip' -OutFile sqlcmd.zip | |
try { | |
Add-Type -AssemblyName System.IO.Compression.FileSystem | |
} catch { }; | |
[System.IO.Compression.ZipFile]::ExtractToDirectory('./sqlcmd.zip', './') |
let podcastURL = URL(string: "http://feed.thisamericanlife.org/talpodcast")! | |
let contents = """ | |
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/" version="2.0" xml:base="https://www.example.com"> | |
<channel> | |
<title>Some Title</title> | |
<link>https://www.example.com</link> | |
<description>some awesome feed.</description> | |
<language>en</language> | |
<copyright>Copyright 1995-3001</copyright> | |
<itunes:author>John Doe</itunes:author> |
# requires ghostscript to be installed first - on mac, install with `brew install ghostscript` | |
# -sDEVICE=txtwrite - text writer | |
# -sOutputFile=- - use stdout instead of a file | |
# -q - quiet - prevent writing normal messages to output | |
# -dNOPAUSE - disable prompt and pause at end of each page | |
# -dBATCH - indicates batch operation so exits at end of processing | |
gs -sDEVICE=txtwrite -sOutputFile=- -q -dNOPAUSE -dBATCH to-be-processed.pdf |
I hereby claim:
To claim this, I am signing this object:
EXEC sp_msforeachdb ' | |
if ''?'' LIKE ''CMS[_]%'' begin | |
print ''?''; | |
use [?] | |
select setting as TransactionGateway, ''?'' as [Database] | |
from dbo.Setting with(nolock) | |
where Id = ''TransactionGateway'' |
; WITH ForImport AS ( | |
SELECT | |
DISTINCT | |
ve.BvcmsId | |
,vd.account AS CreditCardOrAch | |
,vd.account_expiration AS Expires | |
,vd.routing AS Routing | |
,vd.address1 AS Address1 | |
,vd.address2 AS Address2 | |
,vd.city AS City |
BACKUP DATABASE MyDb TO DISK = 'C:\sql-backups\MyDb-20151119.bak' WITH INIT | |
GO |
# can just run this in pry | |
files = `git ls-files | grep Wrongcase` | |
files.split("\n").each { |file| system("git mv #{file} #{file.gsub('Wrongcase', 'WrongCase')}") } |