Skip to content

Instantly share code, notes, and snippets.

@midnightfreddie
midnightfreddie / New-RandomPassword.ps1
Created October 6, 2017 19:01 — forked from dotps1/New-RandomPassword.ps1
Create a new random password with powershell, specify length, upper case, lower case, numbers, symbols. all are ASCII mapped arrays.
<#
.SYNOPSIS
Creates random password string of length 1 to 100.
.DESCRIPTION
Creates random password with ability to choose what characters are in the string and the length, the symbols can be specificlly defined.
.EXAMPLE
New-RandomPassword -Length 8 -Lowercase
In this example, a random string that consists of 8 lowercase charcters will be returned.
.EXAMPLE
New-RandomPassword -Length 15 -Lowercase -Uppercase -Numbers -Symbols
@midnightfreddie
midnightfreddie / lemonade_stand.bas
Created May 12, 2017 14:31 — forked from badvision/lemonade_stand.bas
Lemonade stand (Applesoft basic)
1 LOMEM: 14080
5 GOSUB 10000: GOSUB 11000: GOSUB 16000: GOTO 135
10 REM <<< LEMONADE STAND >>>
15 REM
20 REM FROM AN ORIGINAL PROGRAM
30 REM BY BOB JAMISON, OF THE
40 REM MINNESOTA EDUCATIONAL
50 REM COMPUTING CONSORTIUM
60 REM * * *
70 REM MODIFIED FOR THE APPLE
@midnightfreddie
midnightfreddie / s3.sh
Last active August 22, 2016 03:58 — forked from chrismdp/s3.sh
Forked from someone else for my own reference. Originally from http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1