sudo dnf upgrade --refresh
#!/bin/bash | |
############################################################## | |
### RCLONE SYNC SCRIPT | |
############################################################## | |
### crontab -e every 4 hours: | |
# 0 */4 * * * root /root/scrpts/rclone_sync.sh >/dev/null 2>&1 | |
### Useful rclone commands: | |
# rclone config show |
# Create your CA crt and key: | |
openssl req -new -x509 -nodes -newkey rsa:4096 -extensions v3_ca -sha256 -days 3650 -subj "/C=US/ST=CA/L=San Francisco/O=Acme Inc./CN=Acme Insecure Certificate Authority" -keyout ca.key -out ca.crt | |
chmod 600 ca.key | |
# Create a CSR: | |
openssl req -newkey rsa:2048 -nodes -sha256 -keyout cert.key -out cert.csr -subj "/C=US/ST=CA/L=San Francisco/O=Snakeoil Inc./OU=Core/CN=lobotomat.de" | |
# Check contents of CSR (optional): | |
openssl req -in cert.csr -text -noout |
find .git/objects/ -type f -empty | xargs rm | |
git fetch -p | |
git fsck --full | |
http://stackoverflow.com/questions/11706215/how-to-fix-git-error-object-file-is-empty |
#!/bin/bash | |
# Environment check | |
# If migrating from localhost, set this to localhost | |
if [[ ! $SOURCE_HOST_ADDRESS ]] | |
then | |
echo "Please set the current host address in SOURCE_HOST_ADDRESS" | |
exit 1 | |
fi |
# AMANDA CONFIGURATION FROM FILE '/etc/amanda/vtape/amanda.conf': | |
ORG "CUSTOMER vtape" | |
MAILTO "logs@xunil.at" | |
DUMPUSER "backup" | |
PRINTER "" | |
MAILER "/usr/bin/mail" | |
TAPEDEV "" | |
TPCHANGER "aggregate" | |
CHANGERDEV "" |
# Syslog stuff | |
COMPONENT ([\w._\/%-]+) | |
COMPID postfix\/%{COMPONENT:component}(?:\[%{NUMBER:pid}\])? | |
POSTFIX (?:%{SYSLOGFACILITY} )?%{SYSLOGHOST:logsource} %{COMPID}: | |
# Milter | |
HELO (?:\[%{IP:helo}\]|%{HOST:helo}|%{DATA:helo}) | |
MILTERCONNECT %{QUEUEID:qid}: milter-reject: CONNECT from %{RELAY:relay}: %{GREEDYDATA:milter_reason}; proto=%{WORD:proto} | |
MILTERUNKNOWN %{QUEUEID:qid}: milter-reject: UNKNOWN from %{RELAY:relay}: %{GREEDYDATA:milter_reason}; proto=%{WORD:proto} |
root@app1:~# iptables -L | |
# Warning: iptables-legacy tables present, use iptables-legacy to see them | |
Chain INPUT (policy ACCEPT) | |
target prot opt source destination | |
ACCEPT tcp -- anywhere anywhere tcp dpt:domain | |
ACCEPT udp -- anywhere anywhere udp dpt:domain | |
ACCEPT tcp -- anywhere anywhere tcp dpt:67 | |
ACCEPT udp -- anywhere anywhere udp dpt:bootps | |
Chain FORWARD (policy ACCEPT) |
$ ansible-galaxy info YourUser.RoleName | grep -E 'id: [0-9]' | awk {'print $2'} |
#### Contents of the preconfiguration file (for stretch) | |
#### Localization | |
## Preseeding only locale sets language, country and locale. | |
d-i debian-installer/locale string de_DE | |
# | |
## The values can also be preseeded individually for greater flexibility. | |
d-i debian-installer/locale string de_DE | |
## Optionally specify additional locales to be generated. | |
##d-i localechooser/supported-locales multiselect en_US.UTF-8, nl_NL.UTF-8 | |
# |