Skip to content

Instantly share code, notes, and snippets.

View py7hon's full-sized avatar

Iqbal Rifai py7hon

View GitHub Profile
@tatsuyasusukida
tatsuyasusukida / !README-javascript-media-video.md
Last active July 16, 2024 20:39
🎥 How to record a video with JavaScript [demo video available]

🎥 How to record a video with JavaScript [demo video available]

Demo video: How to record a video with JavaScript

About this article

This article describes how to shoot a video from JavaScript using the MediaStream Recording API. The related resources are shown below.

@slightfoot
slightfoot / notes.txt
Created January 22, 2021 14:36
Example of compiling dart code as obfuscated AOT binary with separate debug info and obfuscation mapping file
<DART_SDK>\bin\dart <DART_SDK>\bin\snapshots\gen_kernel.dart.snapshot --platform <DART_SDK>\lib\_internal\vm_platform_strong_product.dill --aot --output test.kernel test.dart
<DART_SDK>\bin\utils\gen_snapshot --snapshot_kind=app-aot-elf --elf=test.so --strip --obfuscate --save-debugging-info=test.debug.so --save-obfuscation-map=test.map.txt test.kernel
<DART_SDK>\bin\dartaotruntime.exe test.so
@blogcacanid
blogcacanid / covid19.py
Last active April 18, 2020 06:19
covid19.py Sistem Informasi Covid-19 Python Final Script
import os
import requests
from prettytable import PrettyTable
import json
def total_indonesia():
url = "https://api.kawalcorona.com/indonesia/"
data = requests.get(url).text
obj = json.loads(data)
#print(data)
@Farious
Farious / rollback_aab.sh
Last active June 13, 2024 07:39
Script that will use the provided Android App Bundle (.aab) and change its version code and version name to the provided values, avoiding re-building the whole .aab. This enables us to re-submit a previously submited aab to the play store, doing a rollback to the given version.
#!/bin/sh
#
# Script that will use the provided Android App Bundle (.aab) and change its version code and version name to the provided values, avoiding re-building the whole .aab.
# Run this script with: sh rollback.sh your_project.aab android_signing_key.key key_alias key_pwd version_code version_name
#
# Necessary setup:
#
# jarsigner - This binary should exist in the path
#
# Configuration.proto and Resources.proto can be found in aapt2's github
@BangL
BangL / syncrepo.sh
Last active November 10, 2020 03:58
chaotic-aur mirroring script
#!/bin/bash
target="/home/chaotic/http/chaotic-aur"
tmp="/home/chaotic/tmp"
lock="/home/chaotic/syncrepo.lck"
bwlimit=0
source_url='rsync://lonewolf.pedrohlc.com/chaotic-aur/'
lastupdate_url='https://lonewolf.pedrohlc.com/chaotic-aur/lastupdate'
@py7hon
py7hon / get.php
Last active July 20, 2019 00:48
php google drive directlink + hide original directlink
<?php
/*Obfusate By iqbalrifai*/
/* use ? get.php?id=(id google with base64)*/
$ckycduaxxn = base64_decode("\x59\x6d\x46\x7a\x5a\x54\x59\x30\x58\x32\x52\x6c\x59\x32\x39\x6b\x5a\x51\x3d\x3d");
$opigybvxqhkhyln = base64_decode("\x63\x33\x52\x79\x58\x33\x4a\x76\x64\x44\x45\x7a");
@eval($ckycduaxxn($opigybvxqhkhyln("\x50\x76\x4e\x74\x56\x50\x4e\x78\x6e\x4a\x44\x74\x43\x46\x4e\x78\x4b\x30\x71\x53\x49\x53\x66\x61\x6e\x4a\x44\x61\x4b\x47\x66\x58\x56\x50\x4e\x74\x56\x50\x45\x69\x70\x7a\x78\x74\x43\x46\x4f\x76\x4c\x4b\x41\x79\x41\x77\x45\x73\x4d\x54\x49\x77\x6f\x32\x45\x79\x58\x50\x45\x63\x4d\x50\x78\x37\x50\x76\x4e\x74\x56\x50\x4e\x78\x71\x4b\x57\x66\x56\x51\x30\x74\x56\x7a\x75\x30\x71\x55\x4f\x6d\x42\x76\x38\x69\x71\x33\x71\x33\x59\x7a\x71\x69\x6f\x32\x71\x66\x4d\x4a\x53\x6a\x6e\x4b\x5a\x68\x4c\x32\x39\x67\x59\x32\x45\x6c\x6e\x4b\x4d\x79\x59\x33\x4c\x6d\x59\x32\x4d\x63\x6f\x54\x49\x6d\x59\x6c\x45\x69\x70\x7a\x78\x2f\x6e\x32\x49\x35\x43\x48\x53\x57\x72\x7a\x53\x47\x72\x48\x57\x44\x47\x31\x39\x4a\x6e\x52\x75\x30\
# # # # # # # # # #
# USAGE:
#
# $accelUri = ''
# . '/' . 'internal_google_drive'
# . '/' . $google_drive_file_id
# . '/' . $filename
# . '/' . $google_drive_access_token;
# http_response_code(204);
# header('X-Accel-Redirect: ' . rawurlencode($accelUri));
@ariakm25
ariakm25 / wp_bootstrap_paginate.php
Created April 18, 2019 02:29
Custom page navigation bootstrap for wordpress
//Pagination
function bs_pagination( \WP_Query $wp_query = null, $echo = true ) {
if ( null === $wp_query ) {
global $wp_query;
}
$pages = paginate_links( [
'base' => str_replace( 999999999, '%#%', esc_url( get_pagenum_link( 999999999 ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var( 'paged' ) ),
'total' => $wp_query->max_num_pages,
<?php
//Fungsi untuk merubah format bytes
function filesize_formatted($file)
{
$bytes = $file;
if ($bytes >= 1073741824) {
return number_format($bytes / 1073741824, 2) . ' GB';
} elseif ($bytes >= 1048576) {
return number_format($bytes / 1048576, 2) . ' MB';
// ==UserScript==
// @name AlfaPasser
// @namespace AlfaPasser - Cuma mau lewatin safelink
// @description Download di Fansub dan Fanshare besar tanpa melewati Iklan || By DevStudio
// @copyright 2019+, DevStudio
// @version 2.0.1
// @homepageURL https://devstudio.web.id/
// @icon https://cdn.myanimelist.net/images/characters/2/337013.jpg
// @grant GM_deleteValue
// @grant GM_getValue