Strongly typed | Weakly typed | |
---|---|---|
Dynamically typed | Python | Perl, JavaScript |
Statically typed | C, C++, Java | NA |
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 | |
# Run from ~/.bashrc as | |
# if pgrep oom-warner > /dev/null; then | |
# echo oom-warner already running, exiting... | |
# else | |
# nohup ~/bin/oom-warner.sh & | |
# fi | |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Getopt::Long; | |
my $pwdfile; | |
GetOptions( "file=s" => \$pwdfile ) or die "Error in cmd args"; | |
if ( !$pwdfile ) { |
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 | |
hosts=(nqpc001 nqpc002 nqpc003 drft045 localhost "127.0.0.1") | |
for h in ${hosts[@]}; do | |
result=$(ping -c 2 -W 1 -q $h | grep transmitted) | |
pattern="0 received"; | |
if [[ $result =~ $pattern ]]; then | |
echo "$h is down" | |
else | |
echo "$h is up" |
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
{ | |
"name": "phantomgzip", | |
"version": "1.0.0", | |
"description": "Showcase of inability to support gzip", | |
"main": "server.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "UKNC", | |
"license": "ISC", |
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
#!/usr/bin/perl | |
################################################################################# | |
# Author: NQPC | |
# Description: determines range of ephemeral ports and number of unused ports | |
# OS: CentOS | |
################################################################################## | |
use strict; | |
use warnings; |
In the manual the steps required to install headless Firefox on CentOS 6 are described. Headless Firefox may be needed to perform GUI automated testing.
All steps of this manual have been validated on CentOS 6.8. It should not be a problem to adapt the solution to other distros.