Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
// ==UserScript== | |
// @name geektime copy | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 让极客时间的内容可以复制! | |
// @author Rand01ph | |
// @match https://time.geekbang.org/column/* | |
// @grant none | |
// @require http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js | |
// ==/UserScript== |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
class Node: | |
def __init__(self, data): | |
self.data = data | |
self.next = None | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
class Node: | |
def __init__(self, data): | |
self.data = data | |
self.next = None | |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
import logging | |
from rest_framework import serializers | |
class GeneralModelSerializer(serializers.ModelSerializer): | |
""" General model serializer that will serialize a model object. It will return all the model fields. | |
""" | |
class Meta: | |
model = None |
# /etc/rsyslog.conf Configuration file for rsyslog. | |
# | |
# For more information see | |
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html | |
# | |
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf | |
# | |
# WARNING: This config has been converted to RainerScript format which could | |
# affect config files provided by other software in /etc/rsyslog.d/ | |
# It should behave the same as the legacy-format config file that ships |
Result: 1 | |
Items { | |
TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
Badge { | |
BadgeType: BADGE_BATTLE_ATTACK_WON | |
BadgeRanks: 4 | |
Targets: "\nd\350\007" | |
} | |
} | |
Items { |
#!/bin/sh | |
######################### | |
## | |
## Setup | |
## | |
######################### | |
# Set some vars |
--- | |
version: 1 | |
disable_existing_loggers: False | |
formatters: | |
simple: | |
format: "%(name)-20s%(levelname)-8s%(message)s" | |
handlers: | |
console: | |
class: logging.StreamHandler | |
level: DEBUG |
DELIMITER // | |
DROP PROCEDURE IF EXISTS ts_init// | |
CREATE PROCEDURE ts_init () | |
BEGIN | |
DECLARE Done INT DEFAULT 0; | |
DECLARE CurrentEventTypeId INT; | |
DECLARE CurrentEventTypeName VARCHAR(10); |