classy:~ root# dtrace -n 'syscall::open*:entry /execname == "crontab"/ { printf("%s %s",execname,copyinstr(arg0)); }'
dtrace: description 'syscall::open*:entry ' matched 4 probes
CPU ID FUNCTION:NAME
0 181 open:entry crontab /dev/dtracehelper
0 181 open:entry crontab /tmp/crontab.TdnlWVWmE4
2 967 open_nocancel:entry crontab /usr/share/locale/en_GB.UTF-8/LC_COLLATE
2 967 open_nocancel:entry crontab /usr/share/locale/en_GB.UTF-8/LC_CTYPE
2 967 open_nocancel:entry crontab /usr/share/locale/en_GB.UTF-8/LC_MONETARY
2 967 open_nocancel:entry crontab /usr/share/locale/en_GB.UTF-8/LC_NUMERIC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import string | |
| import sys | |
| import traceback | |
| from cxOracle import cx_Oracle | |
| #from collections import Counter grr not available.. | |
| #from threading import Thread | |
| import threading | |
| #set smartindent | |
| #set tabstop=4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat /pxe/2 | |
| # ks.cfg for cores by filippos ! | |
| install | |
| text | |
| network --bootproto dhcp | |
| cdrom | |
| lang en_US.UTF-8 | |
| keyboard us | |
| zerombr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #imagemagick | |
| #image filename style: IMG_5619.JPG | |
| for i in *.JPG ;do identify ${i} | perl -e 'while (<>) { my ($img, $h, $w) = (split /[x\ ]/, $_)[0,2,3]; print "$img -crop ${h}x${w}-" . int($h*0.01) . "-" . int($w*0.01) ." -resize \"99%\" s${img}\n" } ' | xargs convert ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # from within virtualenv | |
| len=0;ARRAY=(); for i in $(cat ~filippos/cfymisc/manager.reqs.txt) ; do len=$[$len +1]; p=${i/==*/}; pip show $p | grep -q '^Requires: $' && ARRAY=($i ${ARRAY[*]}) || ARRAY[$len]=$i ; done ; for i in ${ARRAY[*]}; do echo $i ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from jinja2 import Template | |
| from sys import argv, exit | |
| import shlex, subprocess | |
| import json | |
| import ast | |
| def apply_template(file,values): | |
| print "............" | |
| print file | |
| print values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # build my python! | |
| # bash ba.sh /tmp/build-agent/ http://storv11088:8008 | |
| # Config section | |
| PYVER=2.7.6 | |
| # export https_proxy=http://h:p | |
| # export http_proxy=http://h:p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| rpm -q --queryformat '%{Release}' $(rpm -q --whatprovides /etc/redhat-release ) | cut -d. -f1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat ../logstash-formula/formula-requirements.txt | while read x ; do o1=$(echo $x | sed s/=.*$//g | sed 's/git@/https:\/\/codeload./' | sed 's/m:/m\//' | sed 's/.git$/\/zip\//'); o2=$(echo $x | sed s/.*==//g) ; wget -O a.zip $o1$o2 ; ls -l a.zip; unzip a.zip ; rm -f a.zip ; o3=$(echo $x | sed 's/.*\/\(.*\)\.git.*/\1/') ; echo $o3 ; mv ${o3}* $o3 ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -o pipefail | |
| case "$1" in | |
| --list|-l) | |
| list_only=1 | |
| ;; | |
| --dry-run|-n) |
OlderNewer