FOXHUNT ONLINE

THE PLACE FOR ZORRO ONLINE

Study list/todo list

Intro

I need somewhere a list to remember things that i want to learn more off, i have a bunch of lists, so now one more list.

Linux

  • socat https://www.pentestpartners.com/security-blog/socat-fu-lesson/
  • dagger https://github.com/dagger/dagger
  • mitmproxy to swagger ht...

Python packages i want to remember!!!

Intro

Just a place to create a list of python packages that could be handy in the future.

a lot of these packages i heard on the Python Bytes podcast link

List python

  • pympler measure, monitor and analyze the memory behavior of Python objects in ...

Install older version of package on ubuntu/debian

Intro

I had a problem installing gitlab-ce a newer version, because it was a mayor update you first needed to install a older version.

Fixing it

flowchart TD start([Start]) --> step1(apt-get update) --> step2(apt-cache show gitlab-ce |...

Mermaid examples

Intro

Mermaid is a easy way to create easy graphics like flowcharts

For example

flowchart TD
  start([Start]) -->
  declare1(Declare variables a, b and c) -->
  assign1[/Assign a, b and c/] -->
  condition1{Is a>b?} -- False -->
  condition1_false{Is c>b?} -- False -->
  pri...

Bridge Mosquitto mqtt to hivemq

Intro

How to bridge a local mosquitto mqtt broker to a free hivemq cloud bridge

Debian installatie

apt-get install mosquitto

To install the package

Change the mosquitto config file /etc/mosquitto/mosquitto.conf

connection cloudmqtt
address .hive...

Varnish cheat sheet

Intro

How to see caching stats etc.

Varnish

  • show hitratio rate

    varnishstat

    Hitrate ratio: 10 100 1000 Hitrate avg: 0.3373 0.3012 0.3400

This Means the last 10 seconds we have a hitrate of 33.73% and the last 100 seconds only 30.12%...

Tmux cheat sheet

Intro

I am trying to use tmux more than screen, but a cheat sheet could be usefull.

Quick and dirty tmux

  • detach from window

    ctrl-b d

  • list sessions

    tmux ls

  • connect to session

    tmux at -t

  • create session

    tmux new -s "session_name" "co...

Bash locking

Intro

Once in a while i want to start a bash script and make sure it one at a time. So searching for solution for creating a lock file in bash, you want to have a solution that doesn't create a race condition.

Explanation

Start defining which lockfile you want to use

export...

Bash debugging

Introduction

Once in a while i need to debug a bash script that i wrote, but i need to search how to get the line number of debug to a file, so easier for me to put it in mij blog, maybe it will help somebody else also.

Howto

Enable debugging

set -x

Add line numbers

...

The other container solution

Normaly we only think about docker containers if we want to containerize something in linux. But there are more options lxd/lxc is one of those other solutions.

Where docker containers are mostly used to start one process, lxd containers are more like containerized...