Posts

Showing posts with the label Script

[NEW] Script Terbaru auto Reaction Facebook dan auto refresh token

Image
Release lagi nih : [PHP] Script Auto Reaction Timeline Facebook dengan kemampuan : Auto refresh token Support multiple accounts Flexible (Native/Command line) Options untuk like komen (true/false) Settingan per akun Nah tidak lama-lama langsung saja visit Download Script Auto Reaction Timeline Facebook

Get CPU usage / RAM usage [PHP]

if you mean how much ram/cpu php is using then you can do the following using plain php without using any package: this returns the ram usage: function get_server_memory_usage(){ $free = shell_exec('free'); $free = (string)trim($free); $free_arr = explode("\n", $free); $mem = explode(" ", $free_arr[1]); $mem = array_filter($mem); $mem = array_merge($mem); $memory_usage = $mem[2]/$mem[1]*100; return $memory_usage; } cpu usage: function get_server_cpu_usage(){ $load = sys_getloadavg(); return $load[0]; } Native Conditions: $load = sys_getloadavg(); $limit =15; //percent cpu if ($load[0] >= $limit) { die("Oops Server Busy, this message was automate from Dimas Lanjaka For telling users, there too many processed."); }

[NEW] Script auto reaction facebook dan auto refresh token PHP

Image
Download Script auto reaction facebook Step by Step Install BOT reaction for cPanel Download Scriptnya . simpan dengan nama bot.php Kalau sudah, Save File Bot nya lalu Upload ke Hosting kalian masing-masing.. Sekarang waktunya Setting Cronjob buat File Bot kalian, agar bisa berjalan dalam waktu yg udah ditentukan :) Untuk settingannya kalian bisa lihat seperti gambar dibawah ini : nb. Untuk Waktu Eksekusi, itu terserah sesuai kalian masing2.. :) Kalo udah mantep settingannya, Klik Add New Cron Job. dan Lihatlah Akun facebook agan bakal ngelike status temen secara otomatis sesuai waktu yang sudah ditentukan tadi. Atau bila kalian bingung dengan tutorial pemasangan cronjob diatas. anda bisa menggunakan alternatif Di Pencarian ini atau Cara Membuat Cron Job Menggunakan webcron.org Cara Install Bot Auto Reaction Facebook Lewat Termux Download Scriptnya . simpan dengan nama bot.php Taruh fil

Pure Javascript Geolocation

Image
Read How to async defer CSS JS perfectly <script> function locationSuccess(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; var altitude = position.coords.altitude; var accuracy = position.coords.accuracy; var altitudeAccuracy = position.coords.altitudeAccuracy; var heading = position.coords.height; var speed = position.coords.speed; var timestamp = position.timestamp; // bekerja dengan informasi ini sesuka Anda! } function locationError(error) { var code = error.code; var message = error.message; // baca kode dan pesan dan putuskan bagaimana Anda ingin menangani ini! } navigator.geolocation.getCurrentPosition(locationSuccess, locationError); </script>

Install deb package via Termux

Image
Packages are manually installed via the dpkg command (Debian Package Management System). dpkg is the backend to commands like apt-get and aptitude , which in turn are the backend for GUI install apps like the Software Center and Synaptic. Something along the lines of: dpkg --> apt-get , aptitude --> Synaptic, Software Center But of course the easiest ways to install a package would be, first, the GUI apps (Synaptic, Software Center, etc..), followed by the terminal commands apt-get and aptitude that add a very nice user friendly approach to the backend dpkg, including but not limited to packaged dependencies, control over what is installed, needs update, not installed, broken packages, etc.. Lastly the dpkg command which is the base for all of them. Since dpkg is the base, you can use it to install packaged directly from the command line. Install a package sudo dpkg -i DEB_PACKAGE For

FTP Backup File Recursively PHP Script

Image
FTP FILE BACKUP RECURSIVELY Auto Zipping All files Inside Directory Auto Send Zipped files to FTP at once Auto Cleaning sent Zipped files on local storage <?php define("user", "username_ftp", true); //Your FTP Username define("password", "password_ftp", true); //Your FTP Password define("host", "host_ftp", true); //eg: ftp.drivehq.com define("port", "21", true); //default ftp port is 21 /*** Script_By_Dimas_Lanjaka ***/ if (defined("user") && defined("password") && defined("host")){ // Get real path for our folder// Get real path fo $rootPath = realpath(__DIR__); //array_map('unlink', glob("$rootPath*.zip")); // Initialize archive object $zip = new ZipArchive(); $cdate = str_replace('.', '-', $_SERVER['HTTP_HOST']); $zip->open($cdate . '.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE); //

00webhost unzipper script php

Image
Features: Detect zip file automatically Extract zip to custom folder Detect zip file on subfolder Unzipper tools php script <?php /** * The Unzipper extracts .zip or .rar archives and .gz files on webservers. * It's handy if you do not have shell access. E.g. if you want to upload a lot * of files (php framework or image collection) as an archive to save time. * As of version 0.1.0 it also supports creating archives. * * @author Andreas Tasch, at[tec], attec.at * @license GNU GPL v3 * @package attec.toolbox * @version 0.1.1 */ define('VERSION', '0.1.1'); $timestart = microtime(TRUE); $GLOBALS['status'] = array(); $unzipper = new Unzipper; if (isset($_POST['dounzip'])) { // Check if an archive was selected for unzipping. $archive = isset($_POST['zipfile']) ? strip_tags($_POST['zipfile']) : ''; $destination = isset($_POST['extpath']) ? strip_tags($_POST['extpath']) : ''; $

00webhost file manager alternative

Image
Feature: Support unzip file Support edit file/script on different encodings Support upload,edit,open,delete,rename,and other. Support add username and password. And any other. H3K | Tiny File Manager Modified By Dimas Lanjaka <?php /** * H3K | Tiny File Manager * CCP Programmers * http://fb.com/ccpprogrammers * https://github.com/prasathmani/tinyfilemanager */ // Default language $lang = 'en'; // Auth with login/password (set true/false to enable/disable it) $use_auth = true; // Users: array('user' => 'user', 'user' => 'user2', etc); $auth_users = array( 'your_username' => md5('your_password'), 'user2' => md5('pass2'), ); // Readonly users (usernames array) $readonly_users = array( 'user2' ); // Show or hide files and folders that starts with a dot $show_hidden_files = true; // Enable highlight.js (https://highlightjs.org/) on view's page $use_h