Skip to content

Instantly share code, notes, and snippets.

@TylerRockwell
TylerRockwell / gist:b809a018b18423c7116bfe309d473519
Created February 19, 2021 20:09
A Quick Overview of Unraid
What is it?
* https://unraid.net/product
* Hardware-agnostic Slackware-based OS
* Creates a flexible disk array that can change over time and be built from mix and matched drives
* Allows up to 2 parity drives to prevent data loss in case of a disk failure
What problems does it solve?
* Lots of files on separate machines, never know where anything is
* Drives fill up and files get separated
* Virtual machines, applications, media etc... all must be duplicated to be available everywhere
@TylerRockwell
TylerRockwell / attack_page.html
Created October 14, 2016 19:10
Example CSRF Attack
<html>
<body>
<iframe src="fake_form.html" style="visibility:hidden; display:none"></iframe>
<iframe src='puppy.html' width="100%" height="100%" frameborder="0" scrolling="no" style="overflow:hidden"></iframe>
</body>
</html>
action
active_player
add_on
aggregate_limit
aggregate_winnings
all_in
all_or_nothing
ante
arcade_casino
arm
password
123456
12345678
1234
qwerty
12345
dragon
pussy
baseball
football
password
123456
12345678
1234
qwerty
12345
dragon
pussy
baseball
football
password
123456
12345678
1234
qwerty
12345
dragon
pussy
baseball
football
@TylerRockwell
TylerRockwell / FP Overview.md
Created October 29, 2015 22:57
Final Project Stuff

This web app will allow a business to:

  • Track sales

  • Quickly identify most profitable products and categories

  • Know what to keep on shelves and what to drop

  • Stop wasting time on unprofitable activities

  • Produce visual at-a-glance data about sales performance

  • Track inventory levels

D3

d3.select("item"); - selects an element on the page. Stores much more than DOM

d3.selectAll("item"); - selects all items of a given element on a page

d3.select(this);

d3.select("svg").select("circle");

@TylerRockwell
TylerRockwell / challenge.rb
Last active October 27, 2015 13:32
Challenge 10-27.rb
require 'minitest/autorun'
require 'minitest/pride'
# Write a method which accepts an array as the first paramater and a number
# as the second parameter. Return true if two of the numbers in the array sum
# to the second parameter.
def complements?(array, sum)
return false unless array
return false if array.length < 2
require 'minitest/autorun'
require 'minitest/pride'
# Write a method which returns the first n primes, where n is provided to the
# method as a parameter.
#
# Remember that the % operator (modulo) is your friend. It returns a zero if one
# number is divisible by another number. In other words, 4 % 2 == 0.
# WRITE YOUR CODE HERE. Name your method `primes`.