Skip to content

Instantly share code, notes, and snippets.

View nurulimamnotes's full-sized avatar

Nurul Imam nurulimamnotes

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
UPDATE `barang` SET `kode`=LPAD(FLOOR(RAND() * 999999.99), 16, '1')
menuentry 'Windows 10 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-322E48622E482169' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 322E48622E482169
else
search --no-floppy --fs-uuid --set=root 322E48622E482169
fi
parttool ${root} hidden-
<div class="panel-heading">Grafik Data Rawan Bencana</div>
<div class="panel-body">
<div id="kecamatan"></div>
</div>
<script type="text/javascript">
Morris.Bar({
element: 'kecamatan',
data: [
<?php $idkec = $_GET['id']; foreach (lihat("SELECT `data`.id, count(data.jenis) AS jenis, data.kecamatan, kecamatan.nama FROM `data` INNER JOIN kecamatan ON `data`.kecamatan = kecamatan.id WHERE data.kecamatan = $idkec GROUP BY `data`.kecamatan") as $data) {
$namakecamatan = cari("kecamatan", "id", $data['kecamatan']);
find * -type d -exec chmod 755 {} \;
find * -type f -exec chmod 644 {} \;
@nurulimamnotes
nurulimamnotes / remove_ds_store
Created May 21, 2016 07:47
Remove .DS_Store Mac / Linux
sudo find / -name ".DS_Store" -depth -exec rm {} \;
@nurulimamnotes
nurulimamnotes / key-ssh
Created May 1, 2016 20:49
Setup Private Key SSH Login & Change Default Port
ssh-keygen -b 2048 -t rsa
chmod 700 .ssh
mv .ssh/id_rsa.pub .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
cat .ssh/id_rsa
rm -rf .ssh/id_rsa
nano /etc/ssh/sshd_config
service sshd restart
array(1) {
["rajaongkir"]=>
array(5) {
["query"]=>
array(3) {
["origin"]=>
string(3) "106"
["destination"]=>
string(3) "151"
["weight"]=>
location ~ \.(hh|php)$ {
fastcgi_intercept_errors on;
error_page 500 501 502 503 = @fallback;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_keep_conn on;
fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
user www-data;
worker_processes 2;
pid /run/nginx.pid;
worker_rlimit_nofile 10000;
events {
use epoll;
worker_connections 1024;
multi_accept on;
}