This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule deflate_module> | |
# Enable compression for the following file types. | |
AddOutputFilterByType \ | |
DEFLATE \ | |
application/javascript \ | |
text/css \ | |
text/html \ | |
text/javascript \ | |
text/plain \ | |
text/xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# compress text, html, javascript, css, xml: | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ifModule mod_gzip.c> | |
mod_gzip_on Yes | |
mod_gzip_dechunk Yes | |
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ | |
mod_gzip_item_include mime ^application/x-javascript.* | |
mod_gzip_item_include mime ^text/.* | |
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* | |
mod_gzip_item_exclude mime ^image/.* | |
mod_gzip_item_include handler ^cgi-script$ | |
</ifModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType text/cache-manifest "access 0 seconds" | |
ExpiresByType text/xml "access 0 seconds" | |
ExpiresByType application/xml "access 0 seconds" | |
ExpiresByType application/json "access 0 seconds" | |
ExpiresByType application/rss+xml "access 1 hour" | |
ExpiresByType application/atom+xml "access 1 hour" | |
ExpiresByType application/pdf "access 1 year" | |
ExpiresByType application/javascript "access 1 year" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const isMobile = function () { | |
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { | |
// true apabila mobile device | |
return true | |
} | |
else { | |
// false apabila bukan mobile device | |
return false | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$contoh1 = "Berhasil!"; | |
echo $contoh1; // output: Berhasil! | |
echo "<br>"; | |
echo rtrim($contoh1, "!"); // output: Berhasil | |
echo "<br>"; | |
$contoh2 = "https://ahonerd.com"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Deluge Web Interface | |
After=network-online.target deluged.service | |
Wants=deluged.service | |
[Service] | |
Type=simple | |
User=debian-deluged | |
Group=debian-deluged | |
UMask=002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const setMultipleAttr = (elm: any, attributes: any) => { | |
for (const key in attributes) | |
elm.setAttribute(key, attributes[key]) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-app> | |
<v-navigation-drawer | |
v-model="drawer" | |
app | |
clipped | |
floating | |
color="indigo lighten-5" | |
> | |
<!-- untuk navigasi --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(LED_BUILTIN, LOW); // LED dinyalakan | |
delay(1000); | |
digitalWrite(LED_BUILTIN, HIGH); // LED dimatikan | |
delay(2000); | |
} |