Skip to content

Instantly share code, notes, and snippets.

View imammubin's full-sized avatar

Imam Mubin imammubin

View GitHub Profile
<?php
/*
Plugin Name: hide admin dashboard bar
Plugin URI: http://bit.ly/hide-admin-dashboard-bar-plugin-v1
Description: hide admin bar dashboard when not in wp-admin
Version: 1.0
Author: iMubin
Author URI: http://www.imammubin.com
*/
<?php
/*
Plugin Name: addJQueryGoogle
Plugin URI: http://bit.ly/jquery-google-plugin-v1
Description: add JQUERY LIBRARY from google
Version: 1.0
Author: iMubin
Author URI: http://www.imammubin.com
*/
<?php
function GoogleURLShorterner($url)
{
$curlHandle = curl_init();
curl_setopt($curlHandle, CURLOPT_URL, 'https://www.googleapis.com/urlshortener/v1/url');
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curlHandle, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, '{"longUrl":"'.$url.'"}');
keytool -list -v -keystore C:\Users\{change_with_window_username}\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android
keytool -list -v -keystore C:\Users\iMubin\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android
keytool -importcert -file D:\My\Downloads\upload_cert1.der -keystore C:\Users\iMubin\.android\debug.keystore
keytool -exportcert -alias androiddebugkey -keystore C:\Users\iMubin\.android\debug.keystore -list -v
BUAT KEYPAIR BARU
keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore cobain.jks
keytool -genkeypair -alias ptpr -keyalg RSA -keysize 2048 -validity 9125 -keystore ptpr.jks
/*
Android Activity LAUNCHER SCREEN
+ Firebase Login Detect
+ Runable
http://github.com/imammubin
*/
private StringRequest stringRequest = new StringRequest(Request.Method.POST, url_register, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
String result = response.toString();
textView.setText(result);
Log.d("vol ", "onResponse: "+result);
////////// CONVERT STRING TO JSON
try {
if(ContextCompat.checkSelfPermission (this,Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED)
{
ActivityCompat.requestPermissions(this,new String[]
{
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.READ_EXTERNAL_STORAGE,
},1);
}
File folder = new File(Environment.getExternalStorageDirectory() + File.separator + "AAMubin");
function removeSpaces(string) {
return string.split(' ').join('');
}
function text_number_only(string){
return string.replace(/\D/g,"");
}
function number_only(e){
var key; var keychar;