Skip to content

Instantly share code, notes, and snippets.

View drazisil's full-sized avatar
💭
Always Online - Somewhere

Molly Crendraven drazisil

💭
Always Online - Somewhere
View GitHub Profile
import React, { Component } from "react";
import uniqueString from "unique-string";
import agent from "superagent";
import classNames from "classnames";
import logo from "./logo.svg";
import "./Gallery.css";
import ImageList from "./Components/ImageList";
import image1 from "./images/img1.jpeg";
import image2 from "./images/img2.jpeg";
import image3 from "./images/img3.jpeg";
import React, { Component } from "react";
import css from "./assets/css/style.css";
import img1 from "./assets/images/img1.jpeg";
import img2 from "./assets/images/img2.jpeg";
import img3 from "./assets/images/img3.jpeg";
import img4 from "./assets/images/img4.jpeg";
import AddImage from "./AddImage";
export default class Gallery extends Component {
constructor() {
const opacity = 0.4;
const current = document.querySelector("#current");
const [maxHeight, maxWidth] = [current.height, current.width];
const imgs = document.querySelectorAll(".imgs img");
imgs[0].style.opacity = opacity;
@drazisil
drazisil / RC4.js
Last active March 21, 2018 00:49
Pure JS Implementation of RC4
class MyRC4 {
constructor(key) {
const keyBytes = Buffer.from(key)
const keyLength = keyBytes.length
this.m_state = Array(256)
this.m_x = 0
this.m_y = 0
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
H/T: https://github.com/wearehive/project-guidelines
#!/bin/sh
# This is a script that checks to see if the open ports on a host are what you expect them to be.
# If your firewall isn't doing what it's supposed to, it will post a message to Slack to alert you.
# Intended to be run as a cron job.
#
# Requires nmap to be installed
#
# Invoke as
# ./portscanyourself example.com 80 443
# To alert you if any ports other than 80 and 443 are listening on a host
for /r d:\ %f in (*) do @if %~zf gtr 1000000000 echo %f %~zf

Keybase proof

I hereby claim:

  • I am drazisil on github.
  • I am drazisil (https://keybase.io/drazisil) on keybase.
  • I have a public key whose fingerprint is F8D8 0649 FD55 F862 E1B4 E227 1EE4 D5E2 5311 E3CD

To claim this, I am signing this object:

'use strict'
var gulp = require('gulp')
var standard = require('gulp-standard')
var mocha = require('gulp-mocha')
var istanbul = require('gulp-istanbul')
var coveralls = require('gulp-coveralls')
var output_path = process.cwd()