Skip to content

Instantly share code, notes, and snippets.

@bfallik
bfallik / output.txt
Created August 26, 2019 14:47
prowler sample output
_
_ __ _ __ _____ _| | ___ _ __
| '_ \| '__/ _ \ \ /\ / / |/ _ \ '__|
| |_) | | | (_) \ V V /| | __/ |
| .__/|_| \___/ \_/\_/ |_|\___|_|v2.1.0
|_| the handy cloud security tool
Date: Fri Aug 23 15:09:57 EDT 2019
Colors code for results:
$ ifconfig utun1
utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1420
inet 192.168.66.1 --> 192.168.66.3 netmask 0xfffffffc
$ ifconfig utun2
utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1420
inet 192.168.66.2 --> 192.168.66.3 netmask 0xfffffffc
$ sudo wg show utun1
interface: utun1
public key: ilbFmbvSzZZJvnjwpSgoGlXAK99Dl948gsnpMYqq+CA=
private key: (hidden)
@bfallik
bfallik / glpk-4.61-unbundle-zlib.diff
Created March 30, 2017 15:51
update patch that unbundles zlib from glpk
diff -urN glpk-4.58.orig/doc/glpk11.tex glpk-4.58/doc/glpk11.tex
--- glpk-4.58.orig/doc/glpk11.tex 2016-02-17 23:00:00.000000000 -0800
+++ glpk-4.58/doc/glpk11.tex 2016-02-18 09:00:39.557369206 -0800
@@ -158,50 +158,4 @@
\noindent
\url{http://www.cs.chalmers.se/Cs/Research/FormalMethods/MiniSat}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\section{zlib}
@bfallik
bfallik / gist:fe945d6d9b56f11dfa77
Last active August 29, 2015 14:18
blog pointer gctrace
$ GODEBUG=gctrace=1 go test -bench=Pointer_1e6 blog
gc1(1): 0+0+121+0 us, 0 -> 0 MB, 21 (21-0) objects, 2 goroutines, 16/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc2(1): 0+0+68+0 us, 0 -> 0 MB, 43 (44-1) objects, 3 goroutines, 20/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc3(1): 0+0+70+0 us, 0 -> 0 MB, 120 (140-20) objects, 4 goroutines, 28/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc4(1): 0+0+92+0 us, 0 -> 0 MB, 220 (271-51) objects, 4 goroutines, 33/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc5(1): 0+0+108+0 us, 0 -> 0 MB, 441 (545-104) objects, 5 goroutines, 38/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc6(1): 0+0+138+0 us, 0 -> 0 MB, 625 (945-320) objects, 5 goroutines, 46/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc7(1): 0+0+200+0 us, 0 -> 0 MB, 1981 (2804-823) objects, 6 goroutines, 60/4/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc8(1): 0+0+268+0 us, 0 -> 0 MB, 2973 (4836-1863) objects, 6 goroutines, 71/0/0 sweeps, 0(0) handoff, 0(0) steal, 0
@bfallik
bfallik / gist:abca7a24dcafe256a733
Created April 9, 2015 04:12
blog position gctrace
$ GODEBUG=gctrace=1 go test -v -bench=Position_1e6 -benchmem blog
gc1(1): 0+0+113+0 us, 0 -> 0 MB, 21 (21-0) objects, 2 goroutines, 16/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc2(1): 0+0+77+0 us, 0 -> 0 MB, 41 (42-1) objects, 3 goroutines, 20/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc3(1): 0+0+75+0 us, 0 -> 0 MB, 143 (161-18) objects, 4 goroutines, 29/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc4(1): 0+0+90+0 us, 0 -> 0 MB, 218 (272-54) objects, 4 goroutines, 35/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc5(1): 0+0+106+0 us, 0 -> 0 MB, 437 (543-106) objects, 5 goroutines, 38/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc6(1): 0+0+135+0 us, 0 -> 0 MB, 620 (940-320) objects, 5 goroutines, 45/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc7(1): 0+0+209+0 us, 0 -> 0 MB, 1981 (2805-824) objects, 6 goroutines, 61/1/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc8(1): 0+0+260+0 us, 0 -> 0 MB, 2975 (4840-1865) objects, 6 goroutines, 72/0/0 sweeps, 0(0) handoff,
package blog
import (
"testing"
)
type Advertisement struct {
ID int
Name string
CampaignID int