Skip to content

Instantly share code, notes, and snippets.

View hosamaly's full-sized avatar

Hosam Aly hosamaly

View GitHub Profile
@hosamaly
hosamaly / qif_parser.rb
Created February 28, 2024 13:32
Simplest QIF Parser
# require 'date'
require 'pathname'
# returns an array of transactions, assuming the whole file relates to one account
def parse_qif_file(f)
qif_text = Pathname.new(f).readlines.drop_while { _1.start_with? '!' }.join
parse_qif(qif_text)
end
def parse_qif(text)
@hosamaly
hosamaly / zap-api-scan.dockerfile
Last active September 5, 2019 19:15
Bare Docker image for ZAP API Scan
FROM owasp/zap2docker-bare
# Enable installing packages
USER root
ENV ZAP_SOURCE="https://raw.githubusercontent.com/zaproxy/zaproxy/master" \
ZAP_PLUGINS="https://github.com/zaproxy/zap-extensions/releases/download"
RUN apk add --no-cache py-pip \
&& pip install zapcli \
@hosamaly
hosamaly / nitf-3-4.scala
Last active February 26, 2018 17:44
ScalaXB NITF 3.4 classes
// Generated by <a href="http://scalaxb.org/">scalaxb</a>.
/** The core schema for the News Industry Text Format.Date of creation of this XML Schema document version: 2012-01-12 (xml_lang error fixed)
*/
trait Align
object Align {