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
<!-- contact form --> | |
<div class="contact-form mb-5"> | |
<form id="contactform" name="contactform" method="post"> | |
<div class="row"> | |
<div class="col-md-6 spaces"> | |
<input name="email" class="form-control" type="text" placeholder="Email" aria-label="Email"> | |
</div> | |
<div class="col-md-6"> | |
<input name="phonenumber" class="form-control" type="text" placeholder="Phone Number" aria-label="Request live demo"> | |
</div> |
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
<div class="contact-form"> | |
<form id="contactform" name="contactform" method="post"> | |
<div class="row"> | |
<div class="col-sm-6"> | |
<input name="name" class="form-control" type="text" placeholder="Name*"/> | |
</div> | |
<div class="col-sm-6"> | |
<input name="email" class="form-control" type="email" placeholder="Email*"/> | |
</div> | |
<div class="clearfix"></div> |
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 | |
# | |
# Newfies-Dialer - Stress testing stack | |
# Copyright (C) <2019> <Belaid Arezqui> | |
# | |
# | |
# Install and run SIPP | |
# | |
# Usage: | |
# bash run-sipp.sh install |
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
import hmac | |
import hashlib | |
import requests | |
from datetime import datetime | |
utc_str_date = datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT") | |
secret = 'SECRET' | |
api_key = "API KEY" | |
url = 'https://rest.messagemedia.com/v1/messages' |
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 | |
# | |
# Arezqui Belaid <[email protected]> | |
# | |
FS_CONFIG_PATH=/etc/freeswitch | |
FS_BASE_PATH=/usr/src | |
FS_VERSION=v1.7 | |
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 | |
### BEGIN INIT INFO | |
# Provides: freeswitch | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Freeswitch debian init script. | |
# Author: Matthew Williams | |
# |
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
-- | |
-- PLLUAU example calling API when new Customer are created | |
-- | |
CREATE TABLE customer ( | |
id bigserial primary key, | |
full_name varchar(200) NOT NULL, | |
email varchar(200) NOT NULL, | |
created_date timestamp default NOW() |
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
-- | |
-- Benchmark PLPGSQL | |
-- | |
DROP TABLE accumulator; | |
CREATE TABLE accumulator (id BIGSERIAL PRIMARY KEY, new_value INT, sum_previous INT); | |
CREATE OR REPLACE FUNCTION "fillaccumulator"() RETURNS boolean AS | |
$BODY$ |
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
-- | |
-- Benchmark PLV8 | |
-- | |
DROP TABLE accumulator; | |
CREATE TABLE accumulator (id BIGSERIAL PRIMARY KEY, new_value INT, sum_previous INT); | |
-- DROP FUNCTION IF EXISTS fillaccumulator(); | |
CREATE OR REPLACE FUNCTION fillaccumulator () RETURNS void AS $$ | |
var rows = plv8.execute( "SELECT count(*), SUM(new_value) FROM accumulator" ); |
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
-- | |
-- Benchmark PLLUA | |
-- | |
DROP TABLE accumulator; | |
CREATE TABLE accumulator (id BIGSERIAL PRIMARY KEY, new_value INT, sum_previous INT); | |
CREATE OR REPLACE FUNCTION fillaccumulator() RETURNS void AS $$ | |
local query = server.execute('SELECT count(*), SUM(new_value) FROM accumulator', true, 1) -- read-only, only 1 | |
local random = math.random |
NewerOlder