Sample entry root@192.168.168.100:/mnt/streamstorage53/stage.k/ura/web /opt/kaltura/web fuse.sshfs _netdev,auto 0 0 nJoy π
Decoding parameters in Bash script (1 space delimited)
This is a small script that takes a bash command and decodes the parameters in non sequential order except definers. #!/bin/bash if [ "$#" -ne 1 ] || ! [ -d "$1" ]; then echo "Usage: $0 " >&2 exit 1 fi while [[ $# > 1 ]] do key=β$1β³ echo $key shift case $key…
Enable X11 Forwarding on Centos/Redhat
1) Install the following: xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils 2) Enable the following in the sshd_config file X11Forwarding yes 3) Use an appropriate X-Server on your desktop nJoy π
Color highlight IPs in stream with grep
Simple: ifconfig | grep –color -E ‘^|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}’ nJoy π
Rate Limiting in iptables
iptables -A INPUT -p tcp –syn –dport 80 -m connlimit –connlimit-above 15 –connlimit-mask 32 -j REJECT –reject-with tcp-reset
Allowing Apache to see client ip from Behind a trusted proxy.
With high speed caching based on nginx, varnish or CDNs in general the client ip gets lost. All IPs get reported as 127.0.0.1 since the proxy is making the socket request. Solution is two phased: 1) enable reporting the client IP to theΒ X-Forwarded-For header at the proxy or CDN. This depends on the proxy will…
How to test varnish vcl file
Unlike most other configuration systems varnish went with a compiled configuration so if there is a mistake all you get is : Starting varnish HTTP accelerator: [FAILED] To check what the problem is use the following : varnishd -C -f default.vcl varnishd -C -f default.vcl Message from VCC-compiler: Expected return action name. (input Line…
How To Install WordPress on Centos 6
About WordPress WordPress is a free and open source website and blogging tool that uses php and MySQL. It was created in 2003 and has since then expanded to manage 22% of all the new websites created and has over 20,000 plugins to customize its functionality.
Gluster peer probe fails (repeated UUID)
The UUID for a node is stored in /var/lib/glusterd/glusterd.info The uuidgen tool is used to create a new UUID. voila nJoy π
Installing couchbase
Tested in AWS and CENTOS6 sudo yum install wget -y mkdir binaries cd binaries http://packages.couchbase.com/releases/2.2.0/couchbase-server-community_2.2.0_x86_64_openssl098.rpm sudo yum install -y pkgconfig -y sudo yum install openssl098e -y sudo yum install couchbase-server*.rpm -y nJoy π