Skip to content

Instantly share code, notes, and snippets.

🎰

Dalton dalton-cole

🎰
Block or report user

Report or block dalton-cole

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dalton-cole
dalton-cole / cloudinary_delete_all.rb
Created May 22, 2015
Delete all from Cloudinary in ruby
View cloudinary_delete_all.rb
#delete all images uploaded to your cloudinary cloud
require 'cloudinary'
$api_key = "YOUR_API_KEY"
$api_secret = "YOUR_API_SECRET_KEY"
$cloud_name = "YOUR_CLOUD_NAME"
Cloudinary.config do |config|
config.cloud_name = "#{$cloud_name}"
@dalton-cole
dalton-cole / PS MD5 from text
Created Jul 28, 2014
PowerShell text to MD5 hash
View PS MD5 from text
#converts string to MD5 hash in hyphenated and uppercase format
$someString = "test"
$md5 = new-object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
$utf8 = new-object -TypeName System.Text.UTF8Encoding
$hash = [System.BitConverter]::ToString($md5.ComputeHash($utf8.GetBytes($someString)))
#to remove hyphens and downcase letters add:
$hash = $hash.ToLower() -replace '-', ''
You can’t perform that action at this time.