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)| /* | |
| * Libevent is a high-performance and portable asynchronous networking I/O library (http://libevent.org) | |
| * This is small program to demonstrate the basic of libevent programming | |
| * | |
| * Copyright (C) 2012, Ardhan Madras <ardhan@rocksis.net> | |
| */ | |
| #include <event.h> | |
| #include <arpa/inet.h> | |
| #include <netinet/in.h> |
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)| sudo apt-get install ssl-cert | |
| sudo make-ssl-cert generate-default-snakeoil | |
| sudo usermod --append --groups ssl-cert yyuu | |
| ls -l /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key |
| #!/bin/bash | |
| ## Update fail2ban iptables with globally known attackers. | |
| ## Actually, runs 100% independently now, without needing fail2ban installed. | |
| ## | |
| ## /etc/cron.daily/sync-fail2ban | |
| ## | |
| ## Author: Marcos Kobylecki <fail2ban.globalBlackList@askmarcos.com> | |
| ## http://www.reddit.com/r/linux/comments/2nvzur/shared_blacklists_from_fail2ban/ |
| // This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
| var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
| // Open (or create) the database | |
| var open = indexedDB.open("MyDatabase", 1); | |
| // Create the schema | |
| open.onupgradeneeded = function() { | |
| var db = open.result; | |
| var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
Table of Contents
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: nginx-conf | |
| data: | |
| nginx.conf: | | |
| user nginx; | |
| worker_processes 3; | |
| error_log /var/log/nginx/error.log; | |
| events { |
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "version": "v1", | |
| "title": "ShipEngine" | |
| }, | |
| "host": "api.shipengine.com", | |
| "schemes": [ | |
| "https" | |
| ], |
| #!/bin/bash | |
| #qemu-img create -f qcow2 disk.qcow2 20G | |
| #qemu-img create -f qcow2 varstore.img 128M | |
| debian_iso=debian-9.6.0-arm64-xfce-CD-1.iso | |
| qemu-system-aarch64 -smp cpus=6 -M virt -cpu max -m 2G -nographic \ | |
| -drive file=QEMU_EFI.img,if=pflash,format=raw \ | |
| -drive file=varstore.img,if=pflash \ | |
| -drive file=disk.qcow2,if=virtio \ | |
| -drive file=$debian_iso,if=virtio,format=raw |