This file contains 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
printf "%25s %6s %6s %10s\n" "Filename" "Lines" "Code" "Comments" && \ | |
find -name "*.js" -exec awk ' \ | |
/^[ \t]*([\/]*\*|\/\/)/ {comments++} \ | |
/^[ \t]*$/ {blank++} \ | |
END{printf "%25s %6s %6s %10s\n",FILENAME,FNR,FNR-comments-blank,comments} \ | |
' {} \; |
This file contains 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
{ | |
"capabilities": | |
[ | |
{ | |
"browserName": "firefox", | |
"version": "6.0.2", | |
"maxInstances":5 | |
} | |
], | |
"configuration": |
This file contains 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 | |
# | |
# Service for selenium (from http://www.thelinuxblog.com/adding-a-service-on-fedora/) | |
# | |
# Author: Fotios Lindiakos ([email protected]) | |
# | |
# chkconfig: 2345 55 45 | |
# | |
# description: This is the selenium service | |
# processname: selenium |
This file contains 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 | |
# | |
# This script should allow for selenium to be run on a headless Fedora box and connect to a hub server | |
# | |
# Author: Fotios Lindiakos (fotios at redhat.com) | |
EPHEMERAL_DIR="/usr/local/bin" | |
SELENIUM_DIR="/usr/lib/selenium" | |
HUB_SERVER="http://ec2-107-20-156-96.compute-1.amazonaws.com:4444" |
This file contains 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
# usage: objdump -D test.exe | perl this_script.pl > file.shellcode | |
while(<>){ | |
if (/^\s[\dA-Fa-f]+:\s(.*?)\s{2}/) { | |
foreach(split(/\s/,$1)){ | |
printf pack('H*',$_) ; | |
} | |
} | |
} |
This file contains 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
def setup | |
@url="http://localhost" | |
@verification_errors = [] | |
@tags = [] | |
@custom_data = { | |
"commit" => 'abcd1234', | |
"release" => 'rhc-site-0.79.4' | |
} | |
This file contains 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
--- !ruby/object:ExampleTest | |
_assertion_wrapped: false | |
_result: !ruby/object:Test::Unit::TestResult | |
assertion_count: 1 | |
channels: | |
CHANGED: | |
!ruby/object:Test::Unit::Util::ProcWrapper ? | |
a_proc: &id001 !ruby/object:Proc {} | |
hash: 140653561707680 |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <pwd.h> | |
#include <sys/types.h> | |
#include <time.h> | |
#define emailAddrLen 33 | |
#define IDStringLen 9 |
This file contains 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
set nocompatible | |
set smartindent | |
set number | |
set sw=2 | |
set ts=2 | |
set sts=2 | |
set et | |
syntax on | |
filetype plugin indent on |
OlderNewer