Skip to content

Instantly share code, notes, and snippets.

php_flag engine off
<FilesMatch "\.(php|php[34578]?|phtml)$">
RemoveHandler .php .php3 .php4 .php5 .php7 .php8 .phtml
RemoveType .php .php3 .php4 .php5 .php7 .php8 .phtml
ForceType text/plain
Require all denied
</FilesMatch>
Options -ExecCGI
<a href="https://github.com/" class="newtab">github.com</a>
<script>
const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
mutation.addedNodes.forEach(function(node) {
if (node.nodeType === 1 && node.matches('a.newtab[href]')) {
node.setAttribute('target', '_blank');
node.setAttribute('rel', 'noopener noreferrer');
} else if (node.nodeType === 1) {
@zaengit
zaengit / Encrypt-Decrypt-laravel.php
Created June 16, 2025 06:20
Encrypt/Decrypt Otomatis in Model Laravel
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Crypt;
class Profile extends Model
{
/**
* Atribut terenkripsi.
*/
protected $encryptable = [
https://alpinejs.dev/directives/cloak
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Navbar Mega Menu - About Dropdown Fixed</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.13.3/cdn.min.js" defer></script>
<style>
@import url('https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css');
npm install -D browser-sync
npm install -D concurrently
"scripts": {
"server": "php -S localhost:8111",
"watch": "npx tailwindcss -i ./public/assets/css/inputw.css -o ./public/assets/css/tw.css --watch",
"serve": "npx wait-on http://localhost:8111 && browser-sync start --proxy 'localhost:8111' --files 'application/views/**/*.php, public/assets/css/**/*.css'",
/r{1,2}\d{1,2}---sn-[a-z0-9\-]+\.googlevideo\.com/
wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64.deb
sudo dpkg -i cloudflared-linux-arm64.deb
sudo nano /etc/cloudflared/config.yml
proxy-dns: true
proxy-dns-port: 5053
proxy-dns-upstream:
- https://dns.adguard.com/dns-query
#melihat skrip mana yang sedang digunakan oleh proses tertentu
lsof -u user123 | grep 'php'
#Menghitung Entry Processes untuk user tertentu
ps -u user123 | grep 'php' | wc -l
zgrep 2024-10-13 /var/log/exim_mainlog-20241013.gz | awk '$3 ~ /^cwd/{print $3}' | sort | uniq -c | sed "s|^ *||g" | sort -nr | head -15
grep 2024-10-14 /var/log/exim_mainlog | awk '$3 ~ /^cwd/{print $3}' | sort | uniq -c | sed "s|^ *||g" | sort -nr | head -15