To keep the changes from the commit you want to undo
$ git reset --soft HEAD^
To destroy the changes from the commit you want to undo
$ git reset --hard HEAD^
You can also say
| # This is for x64 only | |
| # To check x32 vs x64, run: getconf LONG_BIT | |
| # Tested on Centos x64 - on a FreePBX Distro 13 x64 | |
| echo ------- | |
| echo This installs opus codec from the Digium website | |
| echo ------- | |
| read -rsp $'Press any key to continue OR CTRL-c to QUIT ...\n' -n1 key | |
| cd ~ | |
| wget http://downloads.digium.com/pub/telephony/codec_opus/asterisk-13.0/x86-64/codec_opus-13.0_1.1.0-x86_64.tar.gz |
| For OpenVZ refer this URL: (https://openvz.org/User_Guide/Operations_on_Containers) | |
| ======================= | |
| vzlist -a ------ To list all the containers on OpenVZ including running and stopped. | |
| vzlist -a 101 ----- To check specific container is present or not (101 => Container ID) | |
| /vz/template/cache ------ Contains all the OS templates | |
| /vz/private/ ----- it contains list of all the existing containers. |
| How to add 2 gateways and seperate clients by Chupaka | |
| /ip firewall mangle add chain=prerouting src-address=198.54.15.0/24 action=mark-routing new-routing-mark=r_178 | |
| /ip firewall mangle add chain=prerouting src-address=192.168.10.0/24 action=mark-routing new-routing-mark=r_178 | |
| /ip firewall mangle add chain=prerouting src-address=192.168.11.0/24 action=mark-routing new-routing-mark=r_172 | |
| /ip firewall mangle add chain=prerouting src-address=192.168.12.0/24 action=mark-routing new-routing-mark=r_172 | |
| /ip route add gateway=178.242.0.200 routing-mark=r_178 | |
| /ip route add gateway=172.16.0.200 routing-mark=r_172 |
| <?php | |
| function require_auth() { | |
| $AUTH_USER = 'admin'; | |
| $AUTH_PASS = 'admin'; | |
| header('Cache-Control: no-cache, must-revalidate, max-age=0'); | |
| $has_supplied_credentials = !(empty($_SERVER['PHP_AUTH_USER']) && empty($_SERVER['PHP_AUTH_PW'])); | |
| $is_not_authenticated = ( | |
| !$has_supplied_credentials || | |
| $_SERVER['PHP_AUTH_USER'] != $AUTH_USER || | |
| $_SERVER['PHP_AUTH_PW'] != $AUTH_PASS |
To keep the changes from the commit you want to undo
$ git reset --soft HEAD^
To destroy the changes from the commit you want to undo
$ git reset --hard HEAD^
You can also say
| <?php | |
| $host = 'localhost'; | |
| $user = 'root'; | |
| $password = '123456'; | |
| $dbname = 'pdoposts'; | |
| // Set DSN | |
| $dsn = 'mysql:host='. $host .';dbname='. $dbname; | |
| // Create a PDO instance |
| <?php | |
| function encode($string,$key) { | |
| $key = sha1($key); | |
| $strLen = strlen($string); | |
| $keyLen = strlen($key); | |
| for ($i = 0; $i < $strLen; $i++) { | |
| $ordStr = ord(substr($string,$i,1)); | |
| if ($j == $keyLen) { $j = 0; } | |
| $ordKey = ord(substr($key,$j,1)); | |
| $j++; |
Head over to developer.facebook.com and create an App
On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App: https://developers.facebook.com/docs/graph-api/webhooks/v2.5
This guide shows a simple Vici Dial installtion on a debian6_x64 droplet in Digital Ocean.
General Guidelines:
We need to install all dependencies before proceeding to install the astguiclient.