Skip to content

Instantly share code, notes, and snippets.

View ibnux's full-sized avatar
💭
korban PHP di Jawa

iBNu Maksum ibnux

💭
korban PHP di Jawa
View GitHub Profile
@ibnux
ibnux / video_convert_recursive.php
Last active December 20, 2021 03:26
This script for converting all videos on your NAS, i use this script for converting video on my Synology NAS, This will recursively convert all your video
<?php
/*
Created by @ibnux January 2015
Use with your own risk
This script for converting all videos on your NAS
i use this script for converting video on my Synology NAS
This will recursively convert all your video
put this in your home folder
@ibnux
ibnux / index.php
Created September 22, 2015 00:23
hasil compile waruga menjadi phar membutuhkan file ini agar waruga.phar bisa digunakan
<?php
/* Waruga installer
aplikasi untuk Install Waruga
http://ibnux.github.io/Waruga/
Untuk PC atau laptop jalankan di webserver PHP
Untuk Android install aplikasi Server for PHP
https://play.google.com/store/apps/details?id=com.esminis.server.php
jalankan aplikasi untuk install server
@ibnux
ibnux / Pikaso.java
Created May 19, 2016 21:49
Caching image with Picasso Library for Android
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.widget.ImageView;
import com.squareup.picasso.Callback;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.RequestCreator;
import com.squareup.picasso.Transformation;
@ibnux
ibnux / pokestop.sh
Created August 8, 2016 01:25
simple pokemon go bot for rooted android
#!/bin/bash
# set an infinite loop
echo "pokestop @ alun2 serang"
echo "10 seconds before started"
while :
do
echo "tap left pokestop x=200 y=800"
input touchscreen tap 200 800
echo "sleep 2 second"
sleep 2
@ibnux
ibnux / KeyPinStore.java
Created March 4, 2017 15:49
SSL Pinning Android using CloudFLare SSL
package your.package;
import android.content.Context;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManagerFactory;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.KeyManagementException;
@ibnux
ibnux / gist:59dd7d64bd9cb7e1e670b6ddd70ad991
Last active May 28, 2024 13:04
Mikrotik Script for DHCP Lease to Queue simple
:local queueName "Client-$leaseActMAC";
:local ipAdd "$leaseActIP/32";
:if ([:len [/queue simple find name=$queueName]] = 0) do={
:log info "No Queue";
/queue simple add name=$queueName target=($ipAdd) limit-at=10M/4M max-limit=10M/4M comment=[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name];
} else={
:log info "exists";
:local ada [/queue simple get [find name=$queueName] target];
@ibnux
ibnux / cekktp.func.php
Created September 24, 2018 08:14
Validasi Nomor KTP sederhana dari tanggal lahir
<?php
// Validasi KTP sederhana
function cekKTP($nik,$tanggal,$bulan,$tahun){
if(strlen($nik) != 16){
return false;
}
$d = substr($nik, 6, 2);
$m = substr($nik, 8, 2);
$y = substr($nik, 10, 2);

Keybase proof

I hereby claim:

  • I am ibnux on github.
  • I am ibnux (https://keybase.io/ibnux) on keybase.
  • I have a public key ASBzi3k6eRNZsjQENN1gjWhz7T3NYMYrb1HpFVhLgGLjiQo

To claim this, I am signing this object:

@ibnux
ibnux / scanCSS.php
Created April 23, 2020 09:27
PHP Script to scan CSS class in folder, it will create json array you can use to strip unused css
<?php
$class = array();
$path = "template/";
cariFile($path);
print_r($class);
file_put_contents("css_class.json",json_encode($class,JSON_PRETTY_PRINT));
//class="
function cariFile($path){
$list = scandir($path);
@ibnux
ibnux / convertKeyGenMusic.php
Created May 4, 2020 18:14
convert KeyGen Music Pack on mac using VLC command line
<?php
// php -f convertKeyGenMusic.php
$path = "KEYGENMUSiC/";
$command = '/Applications/VLC.app/Contents/MacOS/VLC -I dummy -vvv --sout \
"#transcode{acodec=MP3,ab=128}:std{access=file,mux=wav,dst="/Users/ibnux/Desktop/KeyGenMusic_MusicPack_2020-03-full/MUSICKEYGEN/[DEST]"}" \
"/Users/ibnux/Desktop/KeyGenMusic_MusicPack_2020-03-full/[SOURCE]" vlc://quit';
scanDirectory($path);
function scanDirectory($path){