Skip to content

Instantly share code, notes, and snippets.

<script>
var url = window.location.pathname;
$('.list-inline li a[href$="'+url+'"]').addClass('active');
$('.list-inline li a[href$="'+url+'"]').parents().addClass('active');
</script>
.blocks>(div>a[ href="/index.php?categoryID=$@845" target="_blank"]>span+img)*39
"Купить Просто" (1 лицензия)
@nailarch
nailarch / kvm-qemu.sh
Created May 16, 2019 09:58 — forked from doomedraven/kvm-qemu.sh
Linux - KVM + QEMU installer from sources :)
#!/bin/bash
#
# For latest version please check https://github.com/doomedraven/Tools/blob/master/Virtualization/kvm-qemu.sh
#
# https://www.doomedraven.com/2016/05/kvm.html
# Use Ubuntu 18.04 LTS
@nailarch
nailarch / backup-to-s3.sh
Created May 19, 2020 15:33 — forked from MikeRogers0/backup-to-s3.sh
A method of backing up your website to Amazon S3.
#!/bin/bash
## Email Variables
EMAILDATE=`date --date="today" +%y-%m-%d`
EMAIL="[email protected]"
SUBJECT="[servername] Backup Script Started! - "$EMAILDATE
EMAILMESSAGE="/tmp/emailmessage1.txt"
echo "Just to let you know that the backup script has started."> $EMAILMESSAGE
/bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE
@nailarch
nailarch / ssmtp_mail_alias
Created July 7, 2020 10:15 — forked from SBejga/ssmtp_mail_alias
Bash Script as alias of "mail" using "ssmtp" in ubuntu. Main purpose is sending mails via munin by ssmtp instead of postfix.
#!/bin/bash
# mail syntax: mail -s "any mail subject string" [email protected]
# or: mail "any mail subject string" [email protected]
if [ $1 == "-s" ]
then
subject=$2
recip=$3
else
subject=$1
recip=$2
@nailarch
nailarch / backup-to-s3.sh
Created July 10, 2020 14:02 — forked from gitsebs/backup-to-s3.sh
A method of backing up your website to Amazon S3.
#!/bin/bash
## Email Variables
EMAILDATE=`date --date="today" +%y-%m-%d`
EMAIL="[email protected]"
SUBJECT="[servername] Backup Script Started! - "$EMAILDATE
EMAILMESSAGE="/tmp/emailmessage1.txt"
echo "Just to let you know that the backup script has started."> $EMAILMESSAGE
/bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE
@nailarch
nailarch / dist-upgrade-buster-to-bookworm.sh
Created May 30, 2024 14:17 — forked from rrottmann/dist-upgrade-buster-to-bookworm.sh
Dist-Upgrade Debian 10 Buster to Debian 12 Bookworm
# Dist-Upgrade Debian 10 Buster to Debian 12 Bookworm
# Debian 10
apt-get -y update
apt-get -y upgrade
apt-get -y full-upgrade
cat > /etc/apt/sources.list <<"EOF"
deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main
deb http://security.debian.org/debian-security stable-security/updates main