- Illustrator export with presentation attributes.
- SVGO the single files.
- svg-sprite --symbol svg/*.svg --dest=out # where the single files are in svg/ and output will be in out/
- Use jade: svg use(xlink:href="#id_of_symbol")
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
scp -rp sourcedirectory user@dest:/path | |
from http://serverfault.com/questions/264595/can-scp-copy-directories |
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
echo -n "Enter FROM hostname: " | |
read HOST1 | |
echo -n "Enter FROM user: " | |
read USER1 | |
echo -n "Enter FROM password: " | |
read -s PASS1 | |
echo -n "Enter TO hostname: " |
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
#include <AutoItConstants.au3> | |
#include <MsgBoxConstants.au3> | |
; This is where the backups are stored | |
Global Const $BACKUP_DIR = "G:\NREYNOLD-LAP" | |
$free = DriveSpaceFree($BACKUP_DIR) | |
; Don't delete backups if more than 60 GB is available (i.e. enough for another new backup directory to be created) | |
if $free > 60 * 1024 then |
###Step by step
- Install smartmontools with
sudo apt-get install smartmontools
- Create a new telegram bot via the botfather (see https://core.telegram.org/bots#3-how-do-i-create-a-bot).
You will need the token of the bot from
botfather
. - Initiate a chat with your new bot.
- Send a GET to
https://api.telegram.org/bot{YOUR_TOKEN}/getUpdates
.
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 -e | |
chatid="CHAT_ID" | |
message=$1 | |
apikey="BOT_TOKEN" | |
curl -G --data-urlencode "chat_id=${chatid}" --data-urlencode "text=${message}" --data-urlencode "parse_mode=Markdown" https://api.telegram.org/bot${apikey}/sendMessage | |
# Usage: sh telegram-notify.sh "Message" |
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 | |
CURRENT_ROOT=$(df / | grep / | awk '{ print $5}' | sed 's/%//g') | |
CURRENT_BACKUP=$(df /dev/sda | grep / | awk '{ print $5}' | sed 's/%//g') | |
THRESHOLD_ROOT=85 | |
THRESHOLD_BACKUP=75 | |
MESSAGE_ROOT="My root disk's remaining free space is critically low. 🙈 | |
*Used: ${CURRENT_ROOT}%.*" | |
MESSAGE_BACKUP="My backup disk's remaining free space is critically low. 🙈 | |
*Used: ${CURRENT_BACKUP}%.*" |
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 | |
CURRENT_ROOT=$(df / | grep / | awk '{ print $5}' | sed 's/%//g') | |
CURRENT_BACKUP=$(df /dev/sda | grep / | awk '{ print $5}' | sed 's/%//g') | |
MESSAGE="Just had a look at the space of my disks 🔬. | |
My *root disk's* remaining free space is *${CURRENT_ROOT}%*. | |
My *backup disk's* remaining free space is *${CURRENT_BACKUP}%*." | |
sh telegram-notify.sh "${MESSAGE}" |
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
<?php | |
if(is_admin()) { | |
wp_die('Sorry, the WordPress interface is currently not available. This website is moving to another server just now. Please come back later.'); | |
} | |
?> |
Use e.g. https://github.com/rcarmo/imapbackup
Navigate to target backup folder, then:
imapbackup --ssl --server=$SERVER --user=$USER --pass=$PASS
OlderNewer