Skip to content

Instantly share code, notes, and snippets.

; Disallow international with exceptions
exten => _9810800.,1,Goto(outbound-allroutes,${EXTEN},1) ; Toll free ok!
exten => _9810.,1,GotoIf($["${CALLERID(num)}" = "335"]?outbound-allroutes,${EXTEN},1) ; Allow 8-10
exten => _9810.,1,GotoIf($["${CALLERID(num)}" = "336"]?outbound-allroutes,${EXTEN},1) ; Allow 8-10
exten => _9810.,n,Playback(feature-not-avail-line) ; Disallow 8-10
exten => _9810.,n,Hangup()
exten => _900.,1,Playback(feature-not-avail-line) ; Disallow 00
exten => _900.,n,Hangup()
@varnav
varnav / queryhhjobs.php
Last active December 22, 2016 16:07
Get amount of jobs with given salaries from hh.ru
#!/usr/bin/php
<?php
// Get amount of jobs with given salaries from hh.ru
// Add this to /etc/cron for every 2 hours check and record:
// 00 */2 * * * user /home/user/queryhhjobs.php >> /home/user/jobs.csv
// or use user-level crontab with "crontab -e"
function getjobcount($salary_from = -1)
@varnav
varnav / adusers_weblist.php
Last active January 7, 2024 10:24
Web table listing active directory users
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Список сотрудников</title>
<style>
a {text-decoration : none}
a:link {color : #000000}