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 <[email protected]> | |
# 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 |
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 <[email protected]> | |
# Licensed under GPL v3 or later | |
# | |
# 2011-02-23 04:48 UTC+1 | |
import subprocess |
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
/* Simple tool to dump values of RLIMIT_* resources using getrlimit(2) | |
* | |
* Copyright (C) Sebastian Pipping <[email protected]> | |
* Licensed under GPL v2 or later | |
* | |
* 2013-11-13 | |
* | |
* Example output: | |
* RLIMIT_AS : -1 soft -1 hard | |
* RLIMIT_CORE : 0 soft -1 hard |
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 <[email protected]> | |
# Licensed under GPL v3 or later | |
# | |
# 2011-03-01 14:30 UTC+1 | |
import subprocess |
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 <[email protected]> | |
** Licensed under GPL v2 or later | |
** | |
** 2013-06-01 | |
** | |
** Compilation | |
** =========== | |
** | |
** # gcc $(pkg-config --libs --cflags-only-I gio-2.0) -o mimetest 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
#! /usr/bin/awk -f | |
# Copyright (C) 2009 Sebastian Pipping <[email protected]> | |
# Licensed under GPLv3 or later | |
# 2009-04-09 | |
# | |
# Input | |
# one.txt | |
# two.pdf | |
# three.txt | |
# |
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 python2 | |
# Copyright (C) 2016 Sebastian Pipping <[email protected]> | |
# Licensed under AGPL v3 or later | |
from __future__ import print_function | |
import argparse | |
import errno | |
import os | |
import re |
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. |
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 |
OlderNewer