Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, March 13, 2016

PHPUnit

https://phpunit.de/getting-started.html

use phpunit.phar or install phpunit of each linux distribution

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
























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

Tuesday, October 28, 2014

find by size

http://heatware.net/linux-unix/find-files-less-greater-certain-size/

$ find . -type f -size -100c

Friday, October 24, 2014

Linux command cheat sheet

http://linoxide.com/linux-command/linux-commands-cheat-sheet/




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

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

Tuesday, March 04, 2014

Signal

http://man7.org/linux/man-pages/man7/signal.7.html




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.


Saturday, February 15, 2014

IBM Power Linux

http://en.wikipedia.org/wiki/PowerLinux
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.

Sunday, February 02, 2014

Tuesday, January 21, 2014

Related Posts Plugin for WordPress, Blogger...