Skip to content

Instantly share code, notes, and snippets.

@nestoru
nestoru / gist:93086b694fe3177c4a32
Created May 8, 2014 20:21
Capture NFS traffic Linux
fallocate -l 5M /tmp/5Meg
sudo tcpdump -s0 -S -i eth0 host nfs.sample.com > /tmp/capture &
cp /tmp//5Meg /mnt/nfs/
sudo killall tcpdump
less /tmp/capture
@nestoru
nestoru / gist:7905ea6a482c858bf4d8
Created May 8, 2014 20:22
Capture NFS traffic Solaris
mkfile 5M /tmp/5MegSol
sudo snoop -t a host nfs.sample.com > /tmp/capture &
cp /tmp/5MegSol /mnt/nfs/
ps -ef|grep snoop|grep -v grep |awk '{print $2}'|xargs sudo kill 2>/dev/null
less /tmp/capture
@nestoru
nestoru / gist:c47b320dc0d356459d90
Created May 8, 2014 20:24
NFS traffic from Solaris client
13:49:23.32024 solaris.sample.com -> nfs.sample.com TCP D=2049 S=1016 Push Ack=2575691166 Seq=2647130780 Len=1460 Win
=49640
13:49:23.32056 nfs.sample.com -> solaris.sample.com TCP D=1016 S=2049 Ack=2647108880 Seq=2575691166 Len=0 Win=501
13:49:23.32058 solaris.sample.com -> nfs.sample.com TCP D=2049 S=1016 Ack=2575691166 Seq=2647132240 Len=1460 Win=4964
0
13:49:23.32059 solaris.sample.com -> nfs.sample.com TCP D=2049 S=1016 Push Ack=2575691166 Seq=2647133700 Len=1460 Win
=49640
13:49:23.32175 nfs.sample.com -> solaris.sample.com TCP D=1016 S=2049 Ack=2647111800 Seq=2575691166 Len=0 Win=501
13:49:23.32179 solaris.sample.com -> nfs.sample.com TCP D=2049 S=1016 Ack=2575691166 Seq=2647135160 Len=1460 Win=4964
0
@nestoru
nestoru / gist:4b1c8585f4ac13fa5beb
Created May 10, 2014 12:26
Dr. William Edwards Deming quality control ratio
Quality = Result of Work Efforts / Total Costs
@nestoru
nestoru / gist:4bff53860285a4b41f64
Last active August 29, 2015 14:01
Subversion anonymous access for certain paths
# /etc/apache2/sites-available/subversion
<VirtualHost *>
ServerName svn.sample.com
ServerAlias subversion.sample.com
DocumentRoot /var/local/svn/subversion.sample.com
<Location /repos/reporting>
DAV svn
SVNListParentPath off
@nestoru
nestoru / gist:7d51cad8b928ee479e85
Created May 14, 2014 20:39
Classycle usage example
# Installing
$ sudo mkdir /opt/tools
$ sudo chown dev /opt/tools
$ mv ~/Downloads/Classycle1.4.1 /opt/tools
# Running the "Analyser"
$ cd /opt/tools/Classycle1.4.1
$ java -jar classycle.jar -mergeInnerClasses -xmlFile=spring-core-classycle.xml /home/dev/.m2/repository/org/springframework/spring-core/3.2.4.RELEASE/spring-core-3.2.4.RELEASE.jar
# Running the "Dependency Checker"
@nestoru
nestoru / As a Talend user I want a component called tFileInputDelimitedExtract
Last active August 29, 2015 14:01
As a Talend user I want a component called tFileInputDelimitedExtract
Narrative
=========
* As a Talend user
* I want a component called tFileInputDelimitedExtract
that accepts an input delimited file,
the delimiter and a list of column names
and generates as output *just* the columns in the specified list order
* So that I can guarantee a fixed schema
@nestoru
nestoru / Remove the 7th unneeded column from a pipe delimited file
Last active August 29, 2015 14:01
Remove the 7th unneeded column from a pipe delimited file
cut -d'|' -f1-6,8-100 ~/input.bcp > ~/output.bcp
@nestoru
nestoru / Send Email from Windows using VBS and optional SSL Authentication
Last active August 29, 2015 14:01
Send Email from Windows using VBS and optional SSL Authentication
'''''''''''''''''''''''''''''''''''''''''''''''
'
' c:\scripts\events\sendEmail.vbs
'
' @Author: Nestor Urquiza
'
'
' @Description: Sends an email
'
'
@nestoru
nestoru / Apache 500 error due to mod proxy 502 error log
Last active August 29, 2015 14:01
Apache 500 error due to mod proxy 502 error log
[Thu May 22 09:42:31.269552 2014] [proxy:error] [pid 22446:tid 139728275740416] (502)Unknown error 502: [client 192.168.1.65:61702] AH01084: pass request body failed to 172.16.1.12:8443 (node1.sample.com)
[Thu May 22 09:42:31.269617 2014] [proxy:error] [pid 22446:tid 139728275740416] [client 192.168.1.65:61702] AH00898: Error during SSL Handshake with remote server returned by /login
[Thu May 22 09:42:31.269624 2014] [proxy_http:error] [pid 22446:tid 139728275740416] [client 192.168.1.65:61702] AH01097: pass request body failed to 172.16.1.12:8443 (node1.sample.com) from 192.168.1.65 (
)