apt remove uwsgi uwsgi-core
rm /usr/bin/uwsgi
rm /usr/local/bin/uwsgi
rm -rf /usr/lib/uwsgi
rm -rf /usr/local/lib/uwsgi
Any config files in /etc
can stay.
#!/bin/bash | |
usage() { | |
echo "Usage: $(basename $0) in.pdf dest"; | |
} | |
[[ -z "$1" ]] && usage && exit 1; | |
[[ -z "$2" ]] && usage && exit 1; | |
TMPDIR="$(mktemp -d)"; | |
DIR=$2; |
""" | |
Adds a `seed` paramter to DRF's `next` and `prev` pagination urls | |
""" | |
from rest_framework import serializers | |
from rest_framework import pagination | |
from rest_framework.templatetags.rest_framework import replace_query_param | |
from . import utils | |
The CAPS
key can be mapped to an escape key when pressed once, and a super
(mod4) key when used in combination with other keys.
Create the file /usr/share/X11/xkb/symbols/custom_opts
with the following:
// Make Caps an additional Escape
hidden partial modifier_keys
xkb_symbols "super_esc" {
key { [ Escape ] };
#!/bin/bash | |
# Require argument for the package name | |
if [ -z "$1" ]; then | |
# only show script name in usage | |
echo "Usage: $(basename $0) <package_name>" | |
exit 1 | |
fi | |
pkgname="$1" |
#!/bin/bash | |
# for use with cron, eg: | |
# 0 3 * * * postgres /var/db/db_backup.sh foo_db | |
if [[ -z "$1" ]]; then | |
echo "Usage: $0 <db_name> [pg_dump args]" | |
exit 1 | |
fi |
from build123d import * | |
from ocp_vscode import * | |
C, MIN, MAX = Align.CENTER, Align.MIN, Align.MAX | |
pip_count = 6 | |
brick_unit_size = 8 | |
pip_height = 1.8 | |
pip_diameter = 4.8 |
#!/bin/bash | |
red="\E[1;31m"; | |
green="\E[1;32m"; | |
yellow="\E[1;33m"; | |
plain="\e[0m"; | |
error() { | |
echo -e "${red}${1}${plain}"; | |
} |