This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
usage() { echo "The usage is"; } | |
while getopts ':h:u:p:r:' opt; do | |
case "${opt}" in | |
h) HOST=${OPTARG};; | |
u) UNAME=${OPTARG};; | |
p) PWORD=${OPTARG};; | |
r) RUBY_VERSION=${OPTARG};; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'digest' | |
database = ['123456', 'monkey', '1ljflkdjsiolk', 'abcdefghijk'] | |
def sha256(digest) | |
Digest::SHA256.hexdigest(digest) | |
end | |
puts "unencrypted passwords" | |
puts database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- Replace your api_key, upload_preset, and cloud_name. For more information please see the blog post at --> | |
<html> | |
<body> | |
<script type="text/javascript"> | |
let doUpload = () => { | |
var files = document.getElementById("myid").files; | |
var formData = new FormData(); | |
for (file of files) { | |
formData.append('file', file); |
NewerOlder