Forward GnuPG agent from macOS to Linux
Run gpg once as your to create the directory structure
gpg --list-keys
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ### | |
# | |
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels | |
# | |
# Make sure everything is up-to-date | |
sudo apt update && sudo apt -y dist-upgrade && sudo apt -y autoremove && sudo apt -y clean | |
# Reboot once to ensure the running state uses the latest of everything. | |
sudo reboot |
[Unit] | |
Description=Gunicorn for project %I | |
After=network.target | |
After=syslog.target | |
[Service] | |
EnvironmentFile=/etc/conf.d/django_%i | |
ExecStart=/usr/bin/start_gunicorn | |
Restart=always | |
SyslogIdentifier=gunicorn%I |
# µPing (MicroPing) for MicroPython | |
# copyright (c) 2018 Shawwwn <shawwwn1@gmail.com> | |
# License: MIT | |
# Internet Checksum Algorithm | |
# Author: Olav Morken | |
# https://github.com/olavmrk/python-ping/blob/master/ping.py | |
# Fork of original code: Added average response time and fixed issue with urandom.randint() not working | |
# Author: Mike Risser |
# Laravel systemd queue worker unit template | |
# ---------------------------------- | |
# | |
# /etc/systemd/system/laravel-queue@.service | |
# Config at /etc/laravel-queue-${INSTANCE}.conf | |
# | |
# To enable an instance of this service: | |
# - Create a conf file /etc/-laravel-queue-SOME_NAME.conf which contains: | |
# - LARAVEL_USER= (required) | |
# - LARAVEL_GROUP= (required) |
# -*- coding: utf-8 -*- | |
""" | |
A perl Data.Dumper clone for Python | |
Author: simon@log4think.com | |
2011-07-08 | |
""" | |
#!/bin/env python | |
import sys | |
from types import * |