Skip to content

Instantly share code, notes, and snippets.

View frankcash's full-sized avatar
🗻
Moving tons of data.

Frank Cash frankcash

🗻
Moving tons of data.
View GitHub Profile
public class ZippyZoop {
public static void zippyZoop(String fileName, String zipName){
try{
byte[] buffer = new byte[1024];
FileOutputStream fos = new FileOutputStream(zipName);
ZipOutputStream zos = new ZipOutputStream(fos);
File srcFile = new File(fileName);
@frankcash
frankcash / Error
Last active August 29, 2015 14:07
Getting an error for "<- param"
No instance for (scotty-0.5.0:Web.Scotty.Action.Parsable t0)
arising from a use of `param'
The type variable `t0' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
Note: there are several potential instances:
instance scotty-0.5.0:Web.Scotty.Action.Parsable ()
-- Defined in `scotty-0.5.0:Web.Scotty.Action'
instance scotty-0.5.0:Web.Scotty.Action.Parsable Bool
-- Defined in `scotty-0.5.0:Web.Scotty.Action'
instance scotty-0.5.0:Web.Scotty.Action.Parsable
@frankcash
frankcash / learnYouAPerlForGreatGood
Created December 17, 2014 00:10
How to learn "PERL"
use strict;
use warnings;
use LWP::Simple;
my $url = 'https://www.python.org/';
my $content = get $url or die "Unable to get $url\n";
print $content;
@frankcash
frankcash / .vimrc
Last active September 19, 2016 23:36
Frank's .dotfiles
set nocompatible " be iMproved, required
filetype off " required
set backspace=indent,eol,start
set mouse=a
set autoindent
set tabstop=2
set shiftwidth=2
set nofoldenable
set noshowmode
set nowrap
@frankcash
frankcash / keybase.md
Created December 28, 2014 21:56
keybase.md

Keybase proof

I hereby claim:

  • I am frankcash on github.
  • I am frankcash (https://keybase.io/frankcash) on keybase.
  • I have a public key whose fingerprint is DF13 A48C 5EDA DF78 4978 71D4 65FA 483C 4996 A724

To claim this, I am signing this object:

@frankcash
frankcash / pull_requests.js
Last active August 13, 2016 16:29
My Pull Requests
var requests =[
{
title: "Fixes text alignment of notracking",
repository: "EFForg/privacybadgerfirefox",
url: "https://github.com/EFForg/privacybadgerfirefox/pull/626",
language: "CSS"
},
{
title: "Adds a nevermind option for decrypt/encrypt",
repository: "henryboldi/felony",
/**
* @jsx React.DOM
*/
var React = require('react'),
MyReactComponent = React.createClass({
// The object returned by this method sets the initial value of this.state
getInitialState: function(){
return {};
@frankcash
frankcash / app.js
Created April 6, 2015 14:19
Starter server
var express = require('express');
var cons = require('consolidate');
var bodyParser = require('body-parser');
var fs = require('fs');
var path = require('path');
var app = express();
app.set('view engine', 'html');
app.engine('html', cons.swig); // sets template engine
app.set('views', __dirname + '/views'); // sets dir for views
> felony@0.10.3 dev /Users/majora/Code/felony
> concurrently --kill-others "npm run hot-server" "npm run start-hot"
[0]
[0] > felony@0.10.3 hot-server /Users/majora/Code/felony
[0] > node -r babel-register server.js
[0]
[1]
[1] > felony@0.10.3 start-hot /Users/majora/Code/felony
@frankcash
frankcash / CribDrag.py
Created August 13, 2016 18:42
DefCamp Xor Functionality
from binascii import unhexlify
ciphertexts = ["f363844fd41932070e24df7f6c2397b4f0ee4bc567c32e6f8be4665116657ff880756558fe63f47975fa94e8fa1efc6e97cf9c99931ce21d7b03ef4f61bdc6f74fc566cac6f0fe7b939237d3ab9e37adf9910cfc899ed3ff7b79ead95b8aced21ec1079c72409e878425fd61026fbf1e9319ff6dc4c75c356f04ffe204ce480c488ff34eb78034aa23d87309", "d12a9b49d446354e0020912f6f2297b7eaee4f8062c32479d2f66253016b6ab182723152ff69a46178ebd1e5e04ae760978b9c929319ab0a6018b70a5bf5d6b946d27ad8d9e3f9769b923dc9fb953db2b7d816f1889ecbf86a3cbec45e8aced213c44ebd5275cad3d72ef9631f72a15b8f57f123cac412742e03b6fb098b1c350d9bf25db78023ab3690751276f46d9e598a1f0b", "c4629107da0e38541937d43e6366dab7eaff1cc266c32879c5e06440106f63b18e7b7c41fc61a06871e694e8ed4ae760978b9c92930aab19614cf85e2ff1d6f85ec323dfc5f4bc6497df319ab7933cb8a1d958f59f9ec8f97b74eedc578680d61add53f3477ed687942bfe6a1972f2198519e170ced412786105bab618c309340d92f34cbf", "c4629d549106204c0836912b662397b1e0f848c56ec33979d9fc3642116765f49f677e5cf524a0623df6d9f9f50ff864979bd396dd5db21f680fed436c