Skip to content

Instantly share code, notes, and snippets.

'''
Simple 3-layer fully-connected neural network for recognizing MNIST digits.
Implemented from scratch with Numpy.
Written by Chris Camargo.
MIT License.
'''
from keras.datasets import mnist
import numpy as np
@camargo
camargo / JavaScript.md
Last active January 3, 2024 19:54
JavaScript Frameworks and Libraries
@camargo
camargo / RubiksCube.md
Last active March 11, 2024 04:01
Solving a Rubik's Cube

Solving a Rubik's Cube

Steps taken from How to Solve a Rubik's Cube | WIRED.

  1. Make the daisy
  2. Create the white cross
  3. Solve the first layer
  4. Solve the second layer
  5. Create the yellow cross:
    • F U R U' R' F'
@camargo
camargo / attack.sh
Last active August 19, 2018 01:31
x86_64 Stack Based Buffer Overflow (No ASLR, No Canary, No NX)
#!/bin/bash
# Tested on Ubuntu 18.04-desktop-amd64.
# To disable ASLR do: echo 0 | sudo tee /proc/sys/kernel/randomize_va_space
# The shellcode was built from the output of objdump appended to a NOP (x90) sled.
# 1. type whoami
# 2. run this script
# 3. type whoami
@camargo
camargo / AuthorizedClientServer.md
Last active August 16, 2018 18:34
AuthorizedClientServer.md

Generate Keys for Authorized Server Access

Client:

cd .ssh
ssh-keygen
cat id_rsa.pub (ctrl-c)
@camargo
camargo / .block
Last active October 23, 2016 23:44
WebGL Solar System via Custom Matrix Stack
border: no
height: 512
license: gpl-3.0
@camargo
camargo / .block
Last active March 14, 2023 16:16
WebGL Animated Rotating Sphere with an Earth Texture
border: no
height: 512
license: gpl-3.0