This will serialize inherited models.
This requires django-rest-framework and django-model-utils for InheritanceManager
This will serialize inherited models.
This requires django-rest-framework and django-model-utils for InheritanceManager
| #!/bin/sh | |
| CERTBOT_LINODE_KEY="${CERTBOT_LINODE_KEY}" | |
| CERTBOT_EMAIL="${CERTBOT_EMAIL}" | |
| CERTBOT_VENV=/var/cache/virtualenvs/certbot | |
| CERTBOT_UNDO=0 | |
| CERTBOT_USE_VENV=0 | |
| CERTBOT_PROPOGATION_TIME="${CERTBOT_PROPOGATION_TIME:-1000}" | |
| CERTBOT_DOMAIN_ARGS="" | |
| CERTBOT_EMAIL_ARGS="" |
| ENV{USB_VENDOR_MODEL}=="8563:4000", KERNEL=="sd*[a-z]*[0-9]", SUBSYSTEM=="block", ATTRS{devpath}=="*[0-9].4.4.4.4", SYMLINK+="usbport13p%n", OPTIONS+="all_partitions", GOTO="usb_end" | |
| ENV{USB_VENDOR_MODEL}=="8563:4000", KERNEL=="sd*[a-z]", SUBSYSTEM=="block", ATTRS{devpath}=="*[0-9].4.4.4.4", SYMLINK+="usbport13", GOTO="usb_end" | |
| ENV{USB_VENDOR_MODEL}=="8563:4000", KERNEL=="sd*[a-z]*[0-9]", SUBSYSTEM=="block", ATTRS{devpath}=="*[0-9].4.4.4.3", SYMLINK+="usbport12p%n", OPTIONS+="all_partitions", GOTO="usb_end" | |
| ENV{USB_VENDOR_MODEL}=="8563:4000", KERNEL=="sd*[a-z]", SUBSYSTEM=="block", ATTRS{devpath}=="*[0-9].4.4.4.3", SYMLINK+="usbport12", GOTO="usb_end" | |
| ENV{USB_VENDOR_MODEL}=="8563:4000", KERNEL=="sd*[a-z]*[0-9]", SUBSYSTEM=="block", ATTRS{devpath}=="*[0-9].4.4.4.2", SYMLINK+="usbport11p%n", OPTIONS+="all_partitions", GOTO="usb_end" | |
| ENV{USB_VENDOR_MODEL}=="8563:4000", KERNEL=="sd*[a-z]", SUBSYSTEM=="block", ATTRS{devpath}=="*[0-9].4.4.4.2", SYMLINK+="usbport11", GOTO="usb_end" | |
| ENV{USB_VENDOR_MODEL}=="8563:4000" |
| # BEGIN Initiate mate-session.target | |
| systemctl --user import-environment PATH DBUS_SESSION_BUS_ADDRESS KRB5CCNAME | |
| systemctl --no-block --user start mate-session.target | |
| # END Initiate mate-session.target |
Table of Contents generated with DocToc
| #!/usr/bin/env python | |
| # | |
| # Copyright 2001-2002 by Vinay Sajip. All Rights Reserved. | |
| # | |
| # Permission to use, copy, modify, and distribute this software and its | |
| # documentation for any purpose and without fee is hereby granted, | |
| # provided that the above copyright notice appear in all copies and that | |
| # both that copyright notice and this permission notice appear in | |
| # supporting documentation, and that the name of Vinay Sajip | |
| # not be used in advertising or publicity pertaining to distribution |
| #!/bin/bash | |
| display_help() { | |
| SCRIPTNAME=$(basename "$0") | |
| echo "${SCRIPTNAME} setup.exe destination" | |
| echo "Script to extract and convert a Windows GOG.COM DOSBOX installer to a Linux install" | |
| echo | |
| echo "Arguments:" | |
| echo " setup.exe The GOG.COM Windows executable" | |
| echo " destination The directory to install to" |
| /* | |
| C socket server example, handles multiple clients using threads | |
| Compile | |
| gcc server.c -lpthread -o server | |
| */ | |
| #include<stdio.h> | |
| #include<string.h> //strlen | |
| #include<stdlib.h> //strlen | |
| #include<sys/socket.h> |
| #!/bin/bash | |
| pacman -S nginx | |
| export JAIL=/srv/http | |
| # Create Necessary Devices | |
| mkdir $JAIL/dev | |
| mknod -m 0666 $JAIL/dev/null c 1 3 | |
| mknod -m 0666 $JAIL/dev/random c 1 8 | |
| mknod -m 0444 $JAIL/dev/urandom c 1 9 |
| from sys import stdout | |
| from twisted.python.log import startLogging | |
| from twisted.internet import reactor | |
| from twisted.internet.protocol import Factory, Protocol | |
| class PatchServer(Protocol): #6005 | |
| def connectionMade(self): | |
| print 'PATCH: Client connected: %s' % self.transport.getPeer() |