View komodo_ide_billion_laughs_exploit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# Copyright (C) 2013 Sebastian Pipping <sebastian@pipping.org> | |
# Licensed under GPL v3 or later | |
# | |
# Demonstrate that Komodo IDE with debugger listening | |
# can be frozen with one CPU at 100% for longer, remotely | |
# | |
# https://community.activestate.com/node/10396 | |
import argparse |
View progress-dd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# Wrapper around dd(1) | |
# .. saving you to run "kill -USR1 <pid>" in another shell | |
# | |
# Copyright (C) 2011 Sebastian Pipping <sebastian@pipping.org> | |
# Licensed under GPL v3 or later | |
# | |
# 2011-02-23 04:48 UTC+1 | |
import subprocess |
View stddump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# | |
# stddump - A command line tool to capture std{in,out,err} | |
# | |
# Copyright (C) 2011 Sebastian Pipping <sebastian@pipping.org> | |
# Licensed under GPL v3 or later | |
# | |
# 2011-03-01 14:30 UTC+1 | |
import subprocess |
View mimetest.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** Copyright (C) Sebastian Pipping <sebastian@pipping.org> | |
** Licensed under GPL v2 or later | |
** | |
** 2013-06-01 | |
** | |
** Compilation | |
** =========== | |
** | |
** # gcc $(pkg-config --libs --cflags-only-I gio-2.0) -o mimetest mimetest.c |
View to-file-extension-patterns.awk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/awk -f | |
# Copyright (C) 2009 Sebastian Pipping <sebastian@pipping.org> | |
# Licensed under GPLv3 or later | |
# 2009-04-09 | |
# | |
# Input | |
# one.txt | |
# two.pdf | |
# three.txt | |
# |
View createcustomsuperuser.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Django management command to create custom superusers | |
# Version 2018.03.18 | |
# | |
# Core benefits over existing command `createsuperuser` are: | |
# - Scriptability | |
# - Ignorance of `settings.AUTH_PASSWORD_VALIDATORS` | |
# - Idempotency | |
# | |
# Store as `<app>/management/commands/createcustomsuperuser.py` to activate. | |
# Originally written for Django 1.9.9. |
View .pre-commit-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exclude: ^myDjangoApp/static/ | |
repos: | |
- repo: https://github.com/asottile/pyupgrade | |
rev: v1.11.0 | |
hooks: | |
- id: pyupgrade | |
- repo: https://github.com/pre-commit/mirrors-autopep8 | |
rev: v1.4.3 |
View decode_jwt_token.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
decode-jwt-token() { python3 -c 'import sys, json, base64; [print(json.dumps(json.loads(base64.urlsafe_b64decode(e + (len(e)%3)*"=")), indent=2)) for e in sys.argv[1].split(".")[:2]]' "$1"; } |
View libxspf-1-2-compile.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile.am b/Makefile.am | |
index 0d7257f..a3f948e 100644 | |
--- a/Makefile.am | |
+++ b/Makefile.am | |
@@ -1,5 +1,5 @@ | |
## Process this file with automake to produce Makefile.in | |
-AUTOMAKE_OPTIONS = 1.10.1 gnu dist-zip dist-bzip2 dist-lzma subdir-objects | |
+AUTOMAKE_OPTIONS = 1.10.1 foreign dist-zip dist-bzip2 subdir-objects | |
ACLOCAL_AMFLAGS = -I m4 |
OlderNewer