Skip to content

Instantly share code, notes, and snippets.

View madchap's full-sized avatar

Fred Blaise madchap

  • Vaud, Switzerland
View GitHub Profile
@ramimac
ramimac / Cloud Security Orienteering Checklist.md
Last active April 24, 2024 03:54
A Checklist of Cloud Security Orienteering

Cloud Security Orienteering: Checklist
by Rami McCarthy
via TL;DR sec

How to orienteer in a cloud environment, dig in to identify the risks that matter, and put together actionable plans that address short, medium, and long term goals.

Based on the Cloud Security Orienteering methodology.

Checklist

@darrenpmeyer
darrenpmeyer / burp-hidpi.md
Created October 19, 2020 21:34
Pixel Doubling / HiDPI display support for BurpSuite

Running BurpSuite on a HiDPI display, and that makes the interface window tiny and unreadable?

Just set the _JAVA_OPTIONS environment variable so that it includes -Dsun.java2d.uiScale=2

On Linux, you can edit the BurpSuiteCommunity executable shell script wherever it's been installed, to include the following line near the top (below the #! line, though!):

export _JAVA_OPTIONS="-Dsun.java2d.uiScale=2"
@AlTosterino
AlTosterino / settings.py
Created January 11, 2020 18:59
Hiding settings variables in Django debug page
import re
from django.views import debug
HIDDEN_DEFAULT = 'API|TOKEN|KEY|SECRET|PASS|'
debug.HIDDEN_SETTINGS = re.compile(
f'{HIDDEN_DEFAULT}ADDED_NAME|ANOTHER_ADDED_NAME',
flags=re.IGNORECASE)
@veuncent
veuncent / docker_debugging.md
Last active February 21, 2024 00:58
Debugging Django apps running in Docker using ptvsd - Visual Studio (Code)

Remote debugging in Docker (for Django apps)

In order to enable debugging for your Django app running in a Docker container, follow these steps using Visual Studio (Code):

  1. Add ptvsd to your requirements.txt file
ptvsd == 4.3.2
  1. To your launch.json, add this:
@tsaodown
tsaodown / weechat-slack.md
Last active January 24, 2018 11:18
Connect weechat IRC client to slack team

Start weechat:

$ weechat

Go to the teams gateway page to retrieve your host, user, and pass

In weechat run the following:

@pascalpoitras
pascalpoitras / config.md
Last active July 18, 2024 22:34
My WeeChat configuration

WeeChat Screenshot

Mouse


enable


@muzizongheng
muzizongheng / AccessEN.py
Created June 27, 2013 07:29
Parse evernote's note(include resource, content, title, tags)
#
# A simple Evernote API demo script that lists all notebooks in the user's
# account and creates a simple test note in the default notebook.
#
# Before running this sample, you must fill in your Evernote developer token.
#
# To run (Unix):
# export PYTHONPATH=../lib; python EDAMTest.py
#
@somic
somic / detect_missing_icmq_seq.awk
Created November 23, 2010 17:46
AWK script to detect missing replies in Linux ping output, based on icmp_seq
#!/usr/bin/awk -f
#
# analyzes ping output on Linux and looks for missed returns
# based on icmp_seq
#
# ping output is expected on stdin
#
BEGIN { num = 0 }
$5 ~ /icmp_seq=/ {