Skip to content

Instantly share code, notes, and snippets.

View vkuznet's full-sized avatar

Valentin Kuznetsov vkuznet

  • Cornell University
  • Ithaca, NY
View GitHub Profile
@vkuznet
vkuznet / httpdumper.go
Created February 7, 2023 17:23 — forked from pramos/httpdumper.go
Go Script to Parse Network or PCAPs and Extract Files from HTTP Streams
package main
import (
"bufio"
"bytes"
"compress/gzip"
"flag"
"fmt"
"io"
"io/ioutil"
@vkuznet
vkuznet / cookiemonster.go
Created February 5, 2022 23:49 — forked from dacort/cookiemonster.go
Simple script to extract (encrypted) cookies out of Chrome OS X cookie store. Usage: ./cookiemonster domain.com
package main
import (
"code.google.com/p/go.crypto/pbkdf2"
"crypto/aes"
"crypto/cipher"
"crypto/sha1"
"database/sql"
"fmt"
"log"
@vkuznet
vkuznet / Makefile
Created February 14, 2021 19:04 — forked from thomaspoignant/Makefile
My ultimate Makefile for Golang Projects
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=example
VERSION?=0.0.0
SERVICE_PORT?=3000
DOCKER_REGISTRY?= #if set it should finished by /
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
GREEN := $(shell tput -Txterm setaf 2)
@vkuznet
vkuznet / mutt.txt
Created December 23, 2020 15:33 — forked from jrziviani/mutt.txt
mutt cheat sheet
Mutt
http://www.mutt.org/doc/manual/manual.html
Select (tag) messages: shift+t (T)
= (string)
~ (expression)
~b expr (message with expr in body)
[b]body
# Copyright 2012 Erlware, LLC. All Rights Reserved.
#
# This file is provided to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,