Disable WordPress Permalink dari Database

WordPress permalinks diciptakan untuk membuat alamat website atau URL lebih indah dan mudah untuk diingat. Tetapi hal ini juga dapat menimbulkan masalah apabila terjadi kesalahan konfigurasi, terlebih jika kita akan mengupload / deploy dari server lokal ke server online, yang mengakibatkan website tidak bisa diakses.

Force Reboot/Shutdown your linux machine

managing linux server remotely can be hard, especially when you need to phisically restart or shutdown the server. these are scripts to hard reset or hard shutdown your linux machine, hard means just like you sit in front of your machine and hit the reset / power button.

get updated files from svn repository

i was struggling to find little utility for export/get only changed file from my repository after some updates to be send as “patches” or “updates” to current production environtment or to the client. here is original nice bash commands for exporting updated files between 2 revision from svn repository found from  interspire developer network

Read Raw POST data in PHP

In PHP, to get form inputs, $_POST can be used if the post has a key, such as name=something can be captured by $_POST['name']. But what if it’s a raw post with only the post body and no key? Such as an xml api post? Simple: use “php://input” as a text stream and read it … Continue reading »

How to recursively delete .svn folder

when we working with the svn, and we need to copy/deploy our working copy directory to somewhere, we often forgot to delete the .svn folder created by the subversion. here are the quick command to delete the .svn folder recursively

Create & Applying patch from SVN

Create a patch for the change (e.g., r3199) by diffing its revision number against its predecessor: >cd working/copy/of/branch >svn diff -r 3198:3199 >r3199.diff if you want to create patch as unified diff format, use this command > svn diff –diff-cmd /usr/bin/diff -x “-ua ” -r3198:3199 > r3199.diff Apply the patch to a working-copy of the trunk: … Continue reading »