Skip to content

Instantly share code, notes, and snippets.

View robert-claypool's full-sized avatar
💥
Breaking Things

Robert Claypool robert-claypool

💥
Breaking Things
View GitHub Profile
@robert-claypool
robert-claypool / p4merge-git-config
Last active August 29, 2015 14:22
A typical P4Merge Git configuration
git config --global mergetool.p4merge.path 'c:\path-to\p4merge.exe'
git config --global merge.tool p4merge
git config --global difftool.p4merge.path 'c:\path-to\p4merge.exe'
git config --global diff.tool p4merge
@robert-claypool
robert-claypool / gpg-message-encryption.ps1
Created August 22, 2014 21:24
A Windows command line example for gpg message encryption
# A Windows command line example for gpg message encryption:
# Install Gpg4win to use gpg.
# Gpg4win is a email and file encryption package for Windows that includes the open source Gnu Privacy Guard.
# It implements the OpenPGP standard and is widely used to sign, verify, encrypt, and decrypt data.
# http://www.gpg4win.org/
echo "Hi John," "Here's your login info:" "username=admin" "password=2d!5-e.6:A~77/Vq" | gpg --encrypt --sign --armor -r [email protected] --output c:\temp\message.txt
@robert-claypool
robert-claypool / domain-user-as-sysadmin.sql
Created August 22, 2014 21:22
How to Add a Windows Domain User to SQL Server as ‘sysadmin’
USE master
GO
CREATE LOGIN [domain\username] FROM WINDOWS WITH DEFAULT_DATABASE = [Master]
GO
EXEC sp_addsrvrolemember @loginame=N'domain\username', @rolename=N'sysadmin'
GO
@robert-claypool
robert-claypool / gist:3d6ca2af08679bb3a3cb
Created August 7, 2014 19:56
onename.io Identity Verification
Verifying myself: My Bitcoin username is +robert_claypool. https://onename.io/robert_claypool