Restart USB ports after a power overdraw (error -110). Unplug all devices prior to running script.
References:
Restart USB ports after a power overdraw (error -110). Unplug all devices prior to running script.
References:
from django.db.models.signals import post_init | |
def track_data(*fields): | |
""" | |
Tracks property changes on a model instance. | |
The changed list of properties is refreshed on model initialization | |
and save. | |
>>> @track_data('name') |
Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sys
In env.py
:
def exclude_tables_from_config(config_):
tables_ = config_.get("tables", None)
if tables_ is not None:
This is copy of Debugging with ipython and ipdb.
which easy_install
https://askubuntu.com/questions/623038/rotate-nohup-output | |
http://jdebp.eu./FGA/do-not-use-logrotate.html |
$ cat openssl.cnf | |
[ req ] | |
default_bits = 2048 | |
distinguished_name = req_distinguished_name | |
x509_extensions = v3_ca | |
[ req_distinguished_name ] |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
// https://docs.python.org/3/library/functions.html#func-range | |
package main | |
import ( | |
"fmt" | |
) | |
type Range struct { | |
Step int32 | |
Max int32 |