First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
<?php | |
class SubdomainComponent extends Object { | |
var $__settings = array( | |
'base' => 'example.com', | |
'domains' => array(), | |
'param' => 'subdomain', | |
'redirect' => true, | |
'redirectTo' => 'http://example.com', | |
'model' => 'DomainPrefix', |
#!KAMAILIO | |
# | |
# Kamailio (OpenSER) SIP Server v4.1 - default configuration script | |
# - web: http://www.kamailio.org | |
# - git: http://sip-router.org | |
# | |
# Direct your questions about this file to: <[email protected]> | |
# | |
# Refer to the Core CookBook at http://www.kamailio.org/wiki/ | |
# for an explanation of possible statements, functions and parameters. |
//this script is based on coding by Reverse Fad http://www.revfad.com | |
function flip() { | |
var result = flipString(document.f.original.value.toLowerCase()); | |
document.f.flipped.value = result; | |
} | |
function flipString(aString) { | |
var last = aString.length - 1; | |
var result = new Array(aString.length) | |
for (var i = last; i >= 0; --i) { | |
var c = aString.charAt(i) |
######################### | |
# This gist is meant to be used to install everything needed to get up and running with the Ionic Framework on Windows using Chocolatey (http://chocolatey.org) | |
# Read "How to use this Gist File" section below for instructions. | |
######################### | |
######################### | |
# NOTE : for those familiar with Chocolatey, there are a couple of custom packages used as part of the install that are not published and are waiting on maintainers to make updates to their packages. | |
######################### |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
{ | |
"ab":{ | |
"name":"Abkhaz", | |
"nativeName":"аҧсуа" | |
}, | |
"aa":{ | |
"name":"Afar", | |
"nativeName":"Afaraf" | |
}, | |
"af":{ |
public class LogOutTimerUtil { | |
public interface LogOutListener { | |
void doLogout(); | |
} | |
static Timer longTimer; | |
static final int LOGOUT_TIME = 600000; // delay in milliseconds i.e. 5 min = 300000 ms or use timeout argument | |
public static synchronized void startLogoutTimer(final Context context, final LogOutListener logOutListener) { |
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} -d [OR] | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteRule ^ ^$1 [N] |
const sqlFormatter = require('sql-formatter') | |
const promisify = require('promisify-node') | |
const fs = promisify('fs') | |
const path = require('path') | |
const INDENT = '\t' | |
const SCHEMAFILE = path.resolve(__dirname, 'schema.sql') | |
(async () => { | |
try { |