Skip to content

Instantly share code, notes, and snippets.

View vjui388's full-sized avatar
๐Ÿ˜‡

VJ_UI388 vjui388

๐Ÿ˜‡
View GitHub Profile
@vjui388
vjui388 / ipcyberpanel.txt
Created April 25, 2025 03:10
Konfigurasi Akses Virtual Host IP CyberPanel
Konfigurasi/ Configuration
1. Instal Cyberpanel
2. Akses root dengan Putty (Root access with PuTTY)
sudo cat .litespeed_password
3. Buka Cyberpanel (Open Cyberpanel), Buat website dengan Virtual Host (Create a website with a Virtual Host)
pilih centang :
SSL
@vjui388
vjui388 / cyberpanel.txt
Created April 25, 2025 02:59
CyberPanel Instal Ubuntu Version
install manual UBUNTU 20.04
1 sudo su -
2 sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
@vjui388
vjui388 / Ubuntu.txt
Created April 25, 2025 02:56
Cara Instal PHP v7.4 Untuk CyberPanel Ubuntu Version
sudo apt-get install lsphp74*
@vjui388
vjui388 / amp-frame.html
Last active April 25, 2025 02:57
AMP Embed
The basics principles of AMP iframe
You have the ability to show an iframe within your web page by operating the amp-iframe feature.
Iframes are especially handy in AMP to reveal content not provided in the primary web page context, like web content requesting user-authored JavaScript.
Demands for amp-iframe
- Need to be at least 600px or 75% of the 1st viewport away from the top ( other than iframes that utilize a placeholder).
- May only seek resources by HTTPS, and they should certainly not be inside the identical origin just as the container until they do not identify allow-same-origin.
@vjui388
vjui388 / callnametag.php
Created August 16, 2021 05:58
memanggil kumpulan nama tags pada post_id separated comma
<?php echo strip_tags ( get_the_tag_list('',', ','') ); ?>
@vjui388
vjui388 / tagfunctions.php
Created August 16, 2021 05:03
Tampilkan tag dan category di page wordpress
function myplugin_settings() {
// Add tag metabox to page
register_taxonomy_for_object_type('post_tag', 'page');
// Add category metabox to page
register_taxonomy_for_object_type('category', 'page');
}
// Add to the admin_init hook of your theme functions.php file
add_action( 'init', 'myplugin_settings' );
@vjui388
vjui388 / url-line.txt
Created April 24, 2021 11:20
Url untuk Line ID
https://line.me/ti/p/~{user-id}
@vjui388
vjui388 / blob.txt
Created August 1, 2020 04:42
Cara Download Blob Video
Bentuk URL blob video biasanya seperti ini:blob:http://xxx.xxx/5047eabf-77e0-41f9-9d05-b6932669d712
Langkah 1. Pakai browser Google Chrome untuk membuka URL yang terdapat videonya, play videonya.
Langkah 2. Buka menu developer tools.
Langkah 3. Klik tab Network.
Langkah 4. Masukkan m3 di Filter pencarian. Maka akan muncul file .m3u8 atau .m3u4, klik filenya dan pilih tab Headers. Copy semua path URL di Request URL, contoh:https://xxx.akamaihd.net/i/video/3/5d/caa3/35dcaa3a16a81523.mp4/master.m3u8
Langkah 5. Buka VLC player dan klik Media pilih Open Network Stream...
@vjui388
vjui388 / .htaccess
Created June 30, 2020 11:44
Input Header jika ada file berurl HTTP untuk memaksimalkan HTTPS
Header set Content-Security-Policy: upgrade-insecure-requests
@vjui388
vjui388 / fullyears.html
Created June 30, 2020 09:26
Input Tahun Inline HTML Menggunakan Script JS
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>