/mouse enable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BACKUPHOST=10.20.30.40 | |
PASSWORD=fettmepara | |
USERNAME=sst_user | |
BACKUPPATH=/backup/db | |
OPTIONS="--backup --compress --compress-threads=4 --host $BACKUPHOST --user $USERNAME --password=$PASSWORD" | |
STARTDAY=1 # 0=Sun, 1=Mon etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Excludes based on Crashplan defaults (https://support.code42.com/CrashPlan/4/Troubleshooting/What_is_not_backing_up) | |
*.DS_Store | |
*.swp | |
*.pyc | |
.Trash | |
.Xauthority | |
.bash_sessions | |
.cache | |
**/.tmp | |
**/temp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Excludes based on Crashplan defaults (https://support.code42.com/CrashPlan/4/Troubleshooting/What_is_not_backing_up) | |
# | |
# Generic list | |
.DS_Store | |
*.swp | |
*.pyc | |
.Trash | |
.Xauthority | |
.bash_sessions | |
*/.[cC]ache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
admin="<email>" | |
site="<the site we need a cert for>" | |
dest="/etc/nginx/certs" | |
remote_file="https://acme.int.<domain>/$site/fullchain.cer" | |
local_file="$dest/$site-fullchain.cer" | |
# create local file if it doesnt exist | |
[ -f $local_file ] || touch -t 8001031305 $local_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen 443; | |
server_name acme.int.<domain>; | |
if ($scheme = http) { | |
return 301 https://$server_name$request_uri; | |
} | |
include ssl-params.conf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MOUNTPATH=/Volumes/<somepath> | |
USERNAME=<user> | |
SERVER=<server> | |
KEYFILE=/home/<user>/.ssh/<keyfile> | |
if [ ! -d "$MOUNTPATH ]; then mkdir -p "$MOUNTPATH" ; fi | |
function mountdisk { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _own_ssh_known_hosts() { | |
perl -ne 'print "$1 " if /^([\w\d-\.]+).*$/i' ~/.ssh/known_hosts | |
} | |
function _own_ssh_hosts() { | |
perl -ne 'print "$1 " if /^host (.+)$/i' ~/.ssh/config | |
} | |
complete -W "$(_own_ssh_hosts)" ssh | |
complete -W "$(_own_ssh_known_hosts)" ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN chown apache /run/httpd | |
RUN sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf | |
RUN sed -ri \ | |
-e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \ | |
-e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \ | |
/etc/httpd/conf/httpd.conf | |
USER apache | |
CMD ["/usr/sbin/httpd", "-DFOREGROUND"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set app = "" %} | |
{% for dict_item in icinga.application_services %} | |
{% if dict_item['application'] != app %} | |
{% set app = dict_item['application'] %} | |
define host{ | |
use generic-host | |
host_name {{ app }} | |
} |