Skip to content

Instantly share code, notes, and snippets.

@mammuthus
mammuthus / GetShapeArea.jsx
Last active May 25, 2020 13:54 — forked from bryanbuchanan/GetShapeArea.jsx
Script to find the area of shapes in Adobe Illustrator
/* 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');
@mammuthus
mammuthus / Asterisk_sip_config_maker
Last active April 9, 2021 09:43
RussianPost: sip config maker for Asterisk and FreeBSD
#!/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)