Skip to content

Instantly share code, notes, and snippets.

View dariyanto's full-sized avatar

Dariyanto dariyanto

View GitHub Profile
@dariyanto
dariyanto / index.html
Created May 22, 2024 06:52
Multiple server RAM Monitoring
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VPS Monitor</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
@dariyanto
dariyanto / install_vps_monitor.sh
Created May 22, 2024 06:51
Install VPS Monitor
#!/bin/bash
# Update package lists (adjust for your package manager)
sudo apt update # Debian/Ubuntu
# sudo yum update # RedHat/CentOS
# Install Apache
sudo apt install apache2 -y # Debian/Ubuntu
# sudo yum install httpd -y # RedHat/CentOS
@dariyanto
dariyanto / crontab.md
Created August 31, 2023 14:41 — forked from jhowbhz/crontab.md
create job in laravel with crontab in ubuntu 1 in 1 minute
First

Create a job in laravel with command artisan

php artisan make:command ExampleCron --command=example:cron

Second

Navigate to file create in project

app\Console\Commands\ExampleCron.php

@dariyanto
dariyanto / release-android-debuggable.md
Created May 30, 2022 16:27 — forked from nstarke/release-android-debuggable.md
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable