Skip to content

Instantly share code, notes, and snippets.

View dwhite440's full-sized avatar

Demond dwhite440

  • South Carolina
View GitHub Profile
@jrdmb
jrdmb / SHA-256 VBScript.vbs
Last active April 20, 2023 06:46
VBScript code for SHA-256 hash
'also see: https://gist.github.com/anonymous/573a875dac68a4af560d
Option Explicit
Dim intValid
Dim objMD5, objSHA256
Dim strAlgorithm, strHash, strString
intValid = 0
@insin
insin / .jshintrc
Last active August 24, 2025 21:25
Template for HTA / browser React apps
{
"browser": true,
"node": true,
"curly": true,
"devel": true,
"globals": {
"ActiveXObject": true,
"async": true,
"moment": true,
@rascoop
rascoop / bootstrap3emmet
Last active October 17, 2017 09:05
Bootstrap 3 Emmet Snippets
navbar - .navbar>.navbar-inner>a.brand{aTitle}+ul.nav>li*3>a{aLink}
input text - div.form-group>label.control-label{aLabel}+input:text.form-control
input text + help - div.form-group>label.control-label{aLabel}+input:text.form-control+p.help-block
input text size control - div.form-group>label.col-md-2.control-label{aLabel}>div.col-md-10>input:text.form-control
input checkbox - div.checkbox>label{aLabel}>input:checkbox
input radio - (div.radio>label{aLabel}>input:radio[name="aRadio" value="aValue"])
inline checkbox - (label.checkbox-inline{aLabel}>input:checkbox[value="aValue"])
static text - div.form-group>label.col-md-2.control-label{aLabel}+div.col-md-10>p.form-control-static{Static text Here}
the Parenthesis makes it easier to generate multiples by appending *x
@atifaziz
atifaziz / json.vbs
Last active August 5, 2025 19:13
JSON Encoder for VBScript
'==========================================================================
' JSON Encoder for VBScript
' Copyright (c) 2013 Atif Aziz. All rights reserved.
'
' Licensed under the Apache License, Version 2.0 (the "License");
' you may not use this file except in compliance with the License.
' You may obtain a copy of the License at
'
' http://www.apache.org/licenses/LICENSE-2.0
'
@nikic
nikic / password_hashing_api.md
Created September 12, 2012 15:04
The new Secure Password Hashing API in PHP 5.5

The new Secure Password Hashing API in PHP 5.5

The [RFC for a new simple to use password hashing API][rfc] has just been accepted for PHP 5.5. As the RFC itself is rather technical and most of the sample codes are something you should not use, I want to give a very quick overview of the new API:

Why do we need a new API?

Everybody knows that you should be hashing their passwords using bcrypt, but still a surprising number of developers uses insecure md5 or sha1 hashes (just look at the recent password leaks). One of the reasons for this is that the crypt() API is ridiculously hard to use and very prone to programming mistakes.