A common and reliable pattern in service unit files is thus:
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
| #!/bin/bash | |
| # | |
| BACKUPDEST="$1" | |
| DOMAIN="$2" | |
| MAXBACKUPS="$3" | |
| if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
| echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
| exit 1 |
| # coding: utf-8 | |
| # by Joao Bueno | |
| from random import randrange, choice | |
| import pygame | |
| FR = 30 | |
| SIZE = 640, 480 | |
| BGCOLOR = (255,255,255) | |
| NODECOLOR = (255,0,0) | |
| NODESIZE = 10,10 |
| #!/usr/bin/env python | |
| # -*- coding=utf8 -*- | |
| """ | |
| nginx-ldapauthd | |
| =============== | |
| A backend for the nginx auth_request module. | |
| * Listens on unix socket (SOCK_NAME) and authenticates users against LDAP | |
| * Two modes: |
| package astar | |
| import "container/heap" | |
| type NodeQueue []Node | |
| func NewNodeQueue() NodeQueue { | |
| return make(NodeQueue, 0, 1000) | |
| } |
This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |