A common and reliable pattern in service unit files is thus:
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
#!/bin/bash | |
# Calculates network and broadcast based on supplied ip address and netmask | |
# Usage: broadcast_calc.sh 192.168.0.1 255.255.255.0 | |
# Usage: broadcast_calc.sh 192.168.0.1/24 | |
tonum() { | |
if [[ $1 =~ ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+) ]]; then |
#!/bin/bash | |
# This script connects the computer to a vpn server using openconnect without pain | |
prog_name=$(basename $0) | |
# CHANGE YOUR_VPN_SERVER_DOMAIN to the VPN server you know like example.com | |
domain=YOUR_VPN_SERVER_DOMAIN | |
function help { |
# | |
# refind.conf | |
# Configuration file for the rEFInd boot menu | |
# | |
# Timeout in seconds for the main menu screen. Setting the timeout to 0 | |
# disables automatic booting (i.e., no timeout). Setting it to -1 causes | |
# an immediate boot to the default OS *UNLESS* a keypress is in the buffer | |
# when rEFInd launches, in which case that keypress is interpreted as a | |
# shortcut key. If no matching shortcut is found, rEFInd displays its |
Name: Create home directory during login | |
Default: yes | |
Priority: 0 | |
Session-Interactive-Only: yes | |
Session-Type: Additional | |
Session-Final: | |
required pam_mkhomedir.so skel=/etc/skel umask=0022 |
CLASSPATH=$(pkg=$(pm path com.koushikdutta.backup);echo ${pkg#*:}) app_process /system/bin com.koushikdutta.shellproxy.ShellRunner2 |
This little bash script helps you to build your own customized grml.iso
.ssh/*.pub
files into authorized_keys
#!/usr/bin/env python | |
""" | |
LICENSE http://www.apache.org/licenses/LICENSE-2.0 | |
""" | |
import argparse | |
import datetime | |
import sys | |
import time | |
import threading |
alias rsynccopy='rsync --partial --progress --append --rsh=ssh -r -h ' | |
alias rsyncmove='rsync --partial --progress --append --rsh=ssh -r -h --remove-sent-files' |