Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am ggoussard on github.
* I am gnaphron (https://keybase.io/gnaphron) on keybase.
* I have a public key ASDVExmS5WLT_6mlBDm_Ahp77fIznJG7yNHHaqSMc5Qjlwo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am gnaphrong on github.
  • I am gnaphron (https://keybase.io/gnaphron) on keybase.
  • I have a public key ASDVExmS5WLT_6mlBDm_Ahp77fIznJG7yNHHaqSMc5Qjlwo

To claim this, I am signing this object:

@GnaphronG
GnaphronG / Scratchpad
Last active September 14, 2017 20:29
Notes and other things
nc -z $IP:$PORT: if you need to test that a server is up and listening, but you don’t care about a specific response
Fun console tools:
- lolcat
- nyancat
- ponysay
- bb
- sl
Reverse Shell as a Service:
@GnaphronG
GnaphronG / cmaf.sh
Created May 28, 2018 23:57
HLS and DASH Manifest with CMAF files
#! /bin/sh
file="bbb_sunflower_2160p_30fps_normal.mp4"
timestamp=`date +%s`
ffmpeg="docker run --rm -it --workdir /tmp -v $PWD:/tmp kynothon/moviola:4.0-alpine "
bento4="docker run -it --rm -u $(id -u):$(id -g) -v $PWD:/tmp --workdir /tmp ggoussard/bento4docker "
echo "Getting the file"
curl -LO http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_2160p_30fps_normal.mp4
@GnaphronG
GnaphronG / Makefile
Created October 7, 2019 18:41
Makefile to build multiarch function
OPENFAAS_URL?=http://faasgw:31112
PLATFORMS:=linux/amd64,linux/arm/v7
REGISTRY:=docker.io
fname = $(lastword $(subst -, ,$1))
all-%: generate-% build-% deploy-%
@echo faas-cli invoke -g $(OPENFAAS_URL) $(call fname, $@)