curl wttr.in/Lahore
mplayer filename.mp3 or filename.mp4
<?PHP | |
// Generates a strong password of N length containing at least one lower case letter, | |
// one uppercase letter, one digit, and one special character. The remaining characters | |
// in the password are chosen at random from those four sets. | |
// | |
// The available characters in each set are user friendly - there are no ambiguous | |
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option, | |
// makes it much easier for users to manually type or speak their passwords. | |
// | |
// Note: the $add_dashes option will increase the length of the password by |
#!/bin/bash | |
if [ "$1" = "" ]; then | |
echo "no directory defined!" | |
exit | |
fi | |
if [ "$2" = "" ]; then | |
echo "no file extension defined!" |
#!/bin/bash | |
if [ "$1" = "" ]; then | |
echo "no directory defined!" | |
exit | |
fi | |
if [ "$2" = "" ]; then | |
echo "no file extension defined!" |
#!/bin/bash | |
if [ "$1" = "" ]; then | |
echo "no directory defined!" | |
exit | |
fi | |
if [ "$2" = "" ]; then | |
echo "no file extension defined!" |
#!/bin/bash | |
ffmpeg -i ${1} -f mp3 -ab 192000 -vn ${2} |
-- Active issues | |
-- Count of total active issues in the specified time frame | |
-- Source: githubarchive public data set via Google BigQuery http://githubarchive.org/ | |
SELECT | |
COUNT(DISTINCT JSON_EXTRACT_SCALAR(events.payload, '$.issue.id')) AS events_issue_count | |
FROM (SELECT * FROM TABLE_DATE_RANGE([githubarchive:day.],TIMESTAMP('2015-09-01'),TIMESTAMP('2016-08-31'))) | |
AS events | |
-- 10,723,492 active issues |
#Stop the Mouse event problem | |
Type in the matlab | |
!synclient HorizTwoFingerScroll=0 | |
Reference | |
* http://installfights.blogspot.com/2016/03/fix-mevent-case-in-matlab.html | |
* https://www.mathworks.com/matlabcentral/answers/112528-mevent-case-when-two-finger-scrolling |
function create_subdomain($subDomain,$cPanelUser,$cPanelPass,$rootDomain) { | |
// $buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain; | |
$buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain . "&dir=public_html/subdomains/" . $subDomain; | |
$openSocket = fsockopen('localhost',2082); | |
if(!$openSocket) { | |
return "Socket error"; | |
exit(); |
<?php | |
return [ | |
/** | |
* DataTables search options. | |
*/ | |
'search' => [ | |
/** | |
* Smart search will enclose search keyword with wildcard string "%keyword%". | |
* SQL: column LIKE "%keyword%" |