https://phpunit.de/getting-started.html
use phpunit.phar or install phpunit of each linux distribution
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Sunday, March 13, 2016
Monday, June 08, 2015
Jenkins on Compute Engine
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
http://blog.cloudbees.com/2012/01/better-integration-between-jenkins-and.html
1. Create Ubuntu instance on Compute Engine
2. Install Jenkins on ubuntu (follow jenkins wiki)
3. Allow 8080 port
4. Install Jenkins GitHub plugin
5. Configure Jenkins "GitHub Web Hook"
6. Configure project with github and build trigger
http://blog.cloudbees.com/2012/01/better-integration-between-jenkins-and.html
1. Create Ubuntu instance on Compute Engine
2. Install Jenkins on ubuntu (follow jenkins wiki)
3. Allow 8080 port
4. Install Jenkins GitHub plugin
5. Configure Jenkins "GitHub Web Hook"
6. Configure project with github and build trigger
Friday, June 05, 2015
crontab
http://ubuntuforums.org/showthread.php?t=925450
Schedule daily shutdown device:
sudo crontab -e
mm hh * * * /sbin/shtudown -h now
[Note] cron, crond
Schedule daily shutdown device:
sudo crontab -e
mm hh * * * /sbin/shtudown -h now
[Note] cron, crond
Sunday, November 30, 2014
Tuesday, October 28, 2014
find by size
http://heatware.net/linux-unix/find-files-less-greater-certain-size/
$ find . -type f -size -100c
$ find . -type f -size -100c
Friday, October 24, 2014
Saturday, August 30, 2014
iptables : disable firewall
https://help.ubuntu.com/community/IptablesHowTo#Disabling_the_firewall
echo "Stopping firewall and allowing everyone..."
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Thursday, August 21, 2014
Resize VirtualBox linux partition
http://www.webupd8.org/2011/02/how-to-easily-resize-virtualbox-40-hard.html
http://derekmolloy.ie/resize-a-virtualbox-disk/
http://askubuntu.com/questions/24027/how-can-i-resize-an-ext-root-partition-at-runtime
http://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvdi
1. Resize disk image use VBoxmanage.exe
$ VBoxmanage modifyhd MyLinux.vdi --resize 40000
2. Boot into linux, fdisk the /dev/sda1, reboot to take effect
3. sudo resize2fs /dev/sda1
[Note] C:\Program Files\Oracle\VirtualBox>VBoxManage.exe
http://derekmolloy.ie/resize-a-virtualbox-disk/
http://askubuntu.com/questions/24027/how-can-i-resize-an-ext-root-partition-at-runtime
http://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvdi
1. Resize disk image use VBoxmanage.exe
$ VBoxmanage modifyhd MyLinux.vdi --resize 40000
2. Boot into linux, fdisk the /dev/sda1, reboot to take effect
3. sudo resize2fs /dev/sda1
[Note] C:\Program Files\Oracle\VirtualBox>VBoxManage.exe
Wednesday, April 09, 2014
Error opening terminal: xterm
http://rainstingtw.blogspot.com/2012/12/error-opening-terminal-xterm.html
if you got error when doing "make menuconfig"
export TERM=vt100
or
cd /usr/share/terminfo/x ; ln -s xterm-color xterm
if you got error when doing "make menuconfig"
export TERM=vt100
or
cd /usr/share/terminfo/x ; ln -s xterm-color xterm
Tuesday, March 04, 2014
Saturday, March 01, 2014
pkill : regex
http://linux.die.net/man/1/pkill
if we have some process like:
...... /usr/bin/valgrind --gen-suppressions=all ......
then:
$ pkill -f .*valgrind
[Note] seems killall can not kill valgrind event with regex
[Note] The process name used for matching is limited to the 15 characters present in the output of /proc/pid/stat.
if we have some process like:
...... /usr/bin/valgrind --gen-suppressions=all ......
then:
$ pkill -f .*valgrind
[Note] seems killall can not kill valgrind event with regex
[Note] The process name used for matching is limited to the 15 characters present in the output of /proc/pid/stat.
Saturday, February 15, 2014
IBM Power Linux
http://en.wikipedia.org/wiki/PowerLinux
http://www-01.ibm.com/software/data/infosphere/
http://www-01.ibm.com/software/data/infosphere/
In April 2012, IBM introduced two new Linux-specific systems focusing on solutions for big data analytics, industry applications and open-source infrastructure services such as Web-serving, email and social media collaboration services.
Sunday, February 09, 2014
Shared Memory file
http://man7.org/linux/man-pages/man7/shm_overview.7.html
On Linux, shared memory objects are created in a (tmpfs) virtua filesystem, normally mounted under /dev/shm.
Tuesday, February 04, 2014
Sunday, February 02, 2014
reverse-i-search
http://unix.stackexchange.com/questions/73498/how-to-cycle-through-reverse-i-search-in-bash
This will keep backward search whatYouWant
Ctrl+R whatYouWant Ctrl+R Ctrl+R ...
This will keep backward search whatYouWant
Saturday, February 01, 2014
Ignore error in makefile
http://sunsite.ualberta.ca/Documentation/Gnu/make-3.79/html_chapter/make_5.html#SEC48
The `-' is discarded before the command is passed to the shell for execution.
Tuesday, January 21, 2014
Friday, January 17, 2014
code analysis : lint , cppcheck
http://stackoverflow.com/questions/632057/c-c-free-alternative-to-lint
http://www.cnblogs.com/beifei/archive/2011/08/13/2137474.html
http://www.dotblogs.com.tw/larrynung/archive/2011/10/29/47866.aspx
http://developer.android.com/tools/debugging/improving-w-lint.html#commandline
http://cppcheck.sourceforge.net/devinfo/doxyoutput/cmdlineparser_8cpp_source.html
$ cppcheck . 2> err.txt
Friday, November 08, 2013
rabbitmq
https://github.com/rabbitmq/rabbitmq-tutorials
http://www.rabbitmq.com/tutorials/tutorial-one-python.html
http://en.wikipedia.org/wiki/RabbitMQ
[Note] acquired by VMWare
http://www.rabbitmq.com/tutorials/tutorial-one-python.html
http://en.wikipedia.org/wiki/RabbitMQ
RabbitMQ is open source message broker software (sometimes called message-oriented middleware) that implements the Advanced Message Queuing Protocol (AMQP).
[Note] acquired by VMWare
Thursday, November 07, 2013
Subscribe to:
Posts (Atom)









