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
#!/usr/local/bin/bash | |
# Asterisk sip config maker for FreeBSD | |
# echo 'alias an="/usr/local/etc/asterisk/spbpost/an.sh"' >> ~/.bashrc && . ~/.bashrc | |
WONOK='\033[37;1;42m' | |
WONWARN='\033[37;1;46m' | |
WONERR='\033[37;1;41m' | |
NORMAL='\033[0m' | |
Secret=$(date +%s | md5 | head -c 6) # Hash a current unixtime and cut it - "md5" util for *BSD | |
Tmp="/usr/local/etc/asterisk/spbpost/an_num.tmp" # Temporary file path to save previous Number value | |
Tmpg=$(cat $Tmp) |
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
/* Save this file with a jsx extension and place in your | |
Illustrator/Presets/en_US/Scripts folder. You can then | |
access it from the File > Scripts menu */ | |
var decimalPlaces = 3; | |
if (app.documents.length > 0) { | |
if (app.activeDocument.selection.length < 1) { | |
alert('Select a path'); |