Skip to content

Instantly share code, notes, and snippets.

View Code Igniter 4 error with http code 500
# on public/index.php add
error_reporting(E_ALL);
ini_set("display_errors", 1);
sudo apt-get install php-intl
sudo /etc/init.d/apache2 restart
View stop mysql 5.7 root login without password
MYSQL 5.7
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'rootpasswd' ;
View catatan seputar react native
### UBUNTU ERROR
#### REMOVE NODE
##### https://github.com/yarnpkg/yarn/issues/6914
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
apt-get install -y nodejs
yarn add expo-cli -g
yarn expo init MyProjectName
https://medium.com/@saurabh.friday/install-watchman-on-ubuntu-18-04-ba23c56eb23a
https://stackoverflow.com/questions/31939729/regenerate-makefiles-sh-generates-libtoolize-linking-error-when-compiling-irstlm
View keytool android keystore for Android Studio Windows 10
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
View Example
Get Cordinate GMAP from click
https://jsfiddle.net/4wz4z17j/2/
View redirectPost.js
/*
CONTOH PENGGUNAAN:
var redirect = 'http://www.website.com/page?id=23231';
$.redirectPost(redirect, {x: 'example', y: 'abc'});
*/
$.extend(
View jquery.redirect.js
/*
CARA PAKAI:
$.redirect('/URL_FOLDER/', {'arg1': 'value1', 'arg2': 'value2'});
*/
;(function ($) {
'use strict';
View PostresultActivity.java
package id.co.kopkarbsm.votingsystem;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
View sudo command install sqlsrv ubuntu 18.04 php 7.2
apt-get install php7.2-dev php7.2-xml -y --allow-unauthenticated
sudo curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
sudo curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install msodbcsql17 -y
sudo ACCEPT_EULA=Y apt-get install mssql-tools -y
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
source ~/.bashrc
View webview.goback()
@Override
public boolean onKeyDown(int keyCode, KeyEvent event){
if(event.getAction()==KeyEvent.ACTION_DOWN){
switch (keyCode){
case KeyEvent.KEYCODE_BACK:
if(webView.canGoBack()){
webView.goBack();
}else{
finish();
}