Skip to content

Instantly share code, notes, and snippets.

@nakaz
nakaz / exercise-reactrouter.md
Created October 25, 2017 01:00
React Router Exercise

React Router Exercise

WIP Oct. 24, 2017

AWS S3 Get Started

  1. Sign up for AWS Free Tier account
  2. Build secure IAM settings
  3. Set up roles, groups
  4. Basic permissions
  5. Build S3 bucket
    • Set permissions to IAM group/user
  6. AWS SDK for API
@nakaz
nakaz / nest-chat.md
Last active September 19, 2017 01:51
A python chat server for all sneks to sssssspeak with each other

Nest Chat

Def "Nest": a group of snakes, vipers, or in this case, pythons.

A place for all pythonists to sssssssspeak with each other.

Goals

You will need the sys standard library.

@nakaz
nakaz / py-functions.md
Last active September 19, 2017 04:22
Python function exercise

Python Functions

Building a bunch of scripts to run.


Getting Started

You will need the os,re, and sys Standard Python Libraries.

Instructors should provide a py_functions.zip file to help you test your scripts on.

@nakaz
nakaz / README.md
Last active September 19, 2017 00:37
Cyber Prep - Day 7
  1. Functions

    • def
    • Why we use functions
    • return statements
    • global vs. local variables
    • arguments pass by reference
    • tuple arguments ???
    • keyword and default arguments
  2. Create a python script

This exercise can be performed in Bash, CMD, or Powershell

Follow the instructions

Build a bash-exercise.sh file in your HOME directory.

Do your work in the scripts.sh file. Make sure your bash-exercise.sh is executable. You may comment out lines respective to each task to avoid overwriting/errors.

  1. Build a folders directory and inside, build 10 new directories with the incremented name of dir. We should get something like ./folders/dir1, ./folders/dir2 and so forth.
  2. Create a projects directory in ./folders/dir1 and build a README.md file in the projects dir.

Keybase proof

I hereby claim:

  • I am nakaz on github.
  • I am nakaz (https://keybase.io/nakaz) on keybase.
  • I have a public key ASCG0jS5-JK0kVfSUpr5tPgbblasfmnz7oEyvWOh1XV9Pwo

To claim this, I am signing this object:

Installing Redis

A very basic and quick TLDR; installation of redis for OSX and Linux users.

MacOS/OSX

$ brew install redis
@nakaz
nakaz / README.md
Created August 10, 2017 02:35 — forked from JoeKarlsson/README.md
Lecture on password encryption, hashing, and bcrypt

How To Safely Store A Password

Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt.

Why Not {MD5, SHA1, SHA256, SHA512, SHA-3, etc}?

These are all general purpose hash functions, designed to calculate a digest of huge amounts of data in as short a time as possible. This means that they are fantastic for ensuring the integrity of data and utterly rubbish for storing passwords.

bcrypt Solves These Problems

How? Basically, it’s slow as hell. It uses a variant of the Blowfish encryption algorithm’s keying schedule, and introduces a work factor, which allows you to determine how expensive the hash function will be.

Have a nice day! :D