Skip to content

Instantly share code, notes, and snippets.

@bclin2
bclin2 / bash.generate.random.alphanumeric.string.sh
Created January 12, 2018 00:53 — forked from earthgecko/bash.generate.random.alphanumeric.string.sh
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
@bclin2
bclin2 / bash.generate.random.alphanumeric.string.sh
Created January 12, 2018 00:53 — forked from earthgecko/bash.generate.random.alphanumeric.string.sh
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
@bclin2
bclin2 / instructions.md
Created August 31, 2016 23:18
Angular Services

/**

  • @name Services.Container
  • @description **/

/**

  • @ngdoc factory
  • @name ContainerFactory
  • @ngInject */
@bclin2
bclin2 / Pygame.md
Created June 14, 2016 04:24
Pygame for Python 3.5 Installation Instructions
@bclin2
bclin2 / learn_angular
Created October 30, 2015 22:18
Learn Angular
Angular Notes:
@bclin2
bclin2 / ID.js
Last active August 29, 2015 14:25
// Generate unique IDs for use as pseudo-private/protected names.
// Similar in concept to
// <http://wiki.ecmascript.org/doku.php?id=strawman:names>.
//
// The goals of this function are twofold:
//
// * Provide a way to generate a string guaranteed to be unique when compared
// to other strings generated by this function.
// * Make the string complex enough that it is highly unlikely to be
// accidentally duplicated by hand (this is key if you're using `ID`