Skip to content

Instantly share code, notes, and snippets.

View kuczmama's full-sized avatar
🔥
Building Cool Stuff

Mark Kuczmarski kuczmama

🔥
Building Cool Stuff
View GitHub Profile
@kuczmama
kuczmama / ubuntu-bootstrap.sh
Last active October 15, 2018 23:21
Install script to setup ubuntu 18.04
#/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};;
@kuczmama
kuczmama / sha256.rb
Created August 6, 2018 23:14
What is sha 256
require 'digest'
database = ['123456', 'monkey', '1ljflkdjsiolk', 'abcdefghijk']
def sha256(digest)
Digest::SHA256.hexdigest(digest)
end
puts "unencrypted passwords"
puts database
<!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);