CI htaccess

11 06 2016

DirectoryIndex index.php
RewriteEngine on

RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]


Kaedah islam

22 05 2016

Untuk mengelak perbalahan dalam islam dalam menuntut ilmu.

al musbitu mukaddamu ‘ala nafi (benda yang disabitkan ( di iyakan) lebih dahulu dari yang dinafikan


Kita selalu dengar Nabi Muhammad saw menyebut ummati ummati kita di akhir hanyat beliau. Dalam pada yang sama kenyataan tersebut tidak benar.
Jadi kita guna info yang pertama tu dahulu. tak perlu berbalah dengan orang yang membawa kenyataan yang tidak nabi tidak berkata ummati ummati.

Di samping itu kita haruslah mencari kebenaran kenyataan tersebut dari hadis2 yang soheh.

ref: Ustaz Fawwaz Mat Jan

windows command uninstall windows update

11 01 2016

wusa /uninstall /kb:3035583 /kb:2976978 /kb:KB2952664

bye2 windows 10 auto update wgx and windows installer hammer my hdd

Disable Digital Signature in Windows 7, 64 bit

7 05 2014

Microsoft enforces a “Digital Signature Requirement” on all users of 64 bit version of Windows 7 and Vista. If you try to use any product driver that was not certified by Microsoft, you can still install it but Windows 7 – 64 bit won’t let you run the driver.

There are two ways to disable it:

Method 1.

Go to Start Menu and type “cmd.exe” in the Search Bar and press . (Remember you must be logged on as Administrator)

OR you can go to “All Programs”, then “Accessories”, right-click on “Command Prompt” and choose “Run as administrator”.

1. Now type the following and press after each line:

bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS

bcdedit.exe -set TESTSIGNING ON

2. Restart your computer

3. This will disable your Windows 7 driver signing.

If this did NOT work for you, here is another way to disable Windows 7 driver signing.

Method 2.

1. During boot-up, continuously press to get to Advanced Boot Options. Note: On some systems, you need to first press to go into Boot Menu, then press to reach Advanced Boot Options.

2. When the menu appears, use the DOWN arrow key to scroll to “Disable Driver Signature Enforcement.”

3. Press .

4. Continue the boot process.

5. After your computer has completed the boot process, please install the drivers per the included instructions.

freebsd git-remote-https.core

27 12 2013

portupgrade -f curl

freebsd port options

12 12 2013

make pretty-print-run-depends-list pretty-print-build-depends-list to get a list of dependencies.

run-depends-list, build-depends-list Print a list of all the compile and run dependencies and dependencies of those dependencies, by port directory.

all-depends-list Print a list of all dependencies for the port.

pretty-print-run-depends-list, pretty-print-build-depends-list Print a list of all the compile and run dependencies and dependencies of those dependencies, by port name and

missing Print a list of missing dependencies to be installed for the port.

You can use these targets to make a shell script to follow the dependencies (this was a stupid quick hack so there is probably a better way).


printdeps() {
local ni
local dep
local thisdir

port=`basename $dir`

cd “$dir”
echo ${i}$dir
for dep in `make build-depends-list` ; do
printdeps $dep “$ni”
cd “$thisdir”

printdeps $PWD

use strict; use warnings;

my @list =
{ make pretty-print-run-depends-list;
make pretty-print-build-depends-list

my $parse =
qr{\b This \s+ port \s+ requires \s+ package .+? “([^”]+)” }x;

my %seen;
print join “\n”
, sort { lc $a cmp lc $b }
grep !$seen{ $_ }++
, map { m/$parse/ ? split ‘ ‘ , $1 : () } @list ;

Add BATCH=yes to /etc/make.conf
Alternatively, run make install clean BATCH=yes

Upgrade FreeBSD 8.1 to 9.0 stable release

7 12 2013

For upgrading my FreeBSD box i use the binary freebsd-update. Well, i logged as root and i type:
# freebsd-update upgrade -r 9.0-RELEASE
# freebsd-update fetch
# freebsd-update install
# reboot
The system will reboot with the new kernel after the reboot, run freebsd-update install again
to install userland components and rebbot
# freebsd-update install
# reboot
You also need to update all packages, type:
# portsnap fetch update
# pkg_version -vIL=
# portupgrade -a

Update from FreeBSD 8.0 RELEASE to 9, Requires to update 8.0 RELEASE to 8.1 RELEASE. and then ports. Then run the routines above