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 -wT | |
# A Nagios script that checks if a server is listed in a RBL | |
# by Sherwin Daganato <sherwin@daganato.com>, 20070607 | |
$|++; | |
use strict; | |
use Getopt::Long; | |
# --- BEGIN config |
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: phantomjs | |
Version: 2.0.0 | |
Release: 1%{?dist} | |
Summary: A headless WebKit with JavaScript API | |
Group: Applications/Internet | |
License: BSD-3-Clause | |
URL: http://phantomjs.org | |
Source0: https://bitbucket.org/ariya/phantomjs/downloads/%{name}-%{version}-source.zip |
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/env perl | |
# Nagios plugin to check network interface throughput | |
# by Sherwin Daganato, 20170415 | |
use CHI; | |
use Time::HiRes qw(gettimeofday tv_interval); | |
use Cwd qw(realpath); | |
use Monitoring::Plugin; | |
use List::Util qw(max); |
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
retry_cmd() | |
{ | |
attempts=15 | |
false | |
while [ "${?}" -gt 0 ]; do | |
if [ "${attempts}" -eq 0 ]; then | |
logger --tag "$0" -- "Failed to run $*: $output" | |
return | |
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
//@version=3 | |
// | |
// Based on the "logical trading" post of Charles Cornley (thanks!). | |
// | |
// Indicator States: | |
// | |
// Very Bullish (Lime) = USD trend rising and JPY trend falling and Gold trend falling and US 10Y Bond trend falling and | |
// Dow Jones trend rising and Nasdaq trend rising and Russell 2000 trend rising and | |
// S&P 500 trend rising and Nikkei 225 trend rising | |
// |
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
//@version=3 | |
// | |
// A port of the trading strategy described at http://technical.traders.com/content/TTlink.asp?mo=12&yr=2015 | |
// | |
// "In “Trading The Loonie,” which appeared in the December 2015 issue of STOCKS & COMMODITIES, author Markos Katsanos | |
// explains the heavy correlation between the Canadian dollar and crude oil. He then goes on to describe how one could | |
// trade this correlation. Using similar logic as that employed in Bollinger Bands, Katsanos has built a study to | |
// provide buy and sell signals for trading the Canadian dollar future." | |
// | |
// See Also: |
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
//@version=3 | |
// | |
// A port of the MT4 indicator of Mladen Rakic found at https://www.mql5.com/en/forum/179876 | |
// which is based on Dynamic Zones that was originally published in Stocks & Commodities 1996 issue. | |
// | |
// Dynamic Zones is meant to be applied to oscillators to get dynamic overbought and oversold levels | |
// quantified using statistical methods. | |
// | |
// | |
// ----------------------------------------------------------------------------- |
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
//@version=3 | |
// | |
// This volume indicator works best on comparatively small timeframes (15 minutes, for example). | |
// | |
// Based on: | |
// - Normalized Volume Oscillator - indicator for MetaTrader 4 <https://www.mql5.com/en/code/8208> | |
// - Using Tick Volume in Forex: A Clear NVO Based Example <http://mechanicalforex.com/2010/08/using-tick-volume-in-forex-clear.html> | |
// | |
// See also: | |
// - Are price updates a good proxy for actual traded volume in FX? <https://www.fxstreet.com/education/are-price-updates-a-good-proxy-for-actual-traded-201104220000> |
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
//@version=3 | |
// | |
// 10-Year Bond Yield Spread using Quandl data | |
// | |
// See also: | |
// - https://seekingalpha.com/article/3697846-drives-foreign-exchange-rate-differentials | |
// - https://www.babypips.com/learn/forex/interest-rates-101 | |
// - https://www.forexfactory.com/showthread.php?p=3382194#post3382194 | |
// | |
// ----------------------------------------------------------------------------- |
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
//@version=3 | |
// | |
// Measures buying and selling pressure over a given lookback period. | |
// As described at http://traders.com/Documentation/FEEDbk_docs/2015/10/TradersTips.html | |
// | |
// See also: | |
// - Are price updates a good proxy for actual traded volume in FX? <https://www.fxstreet.com/education/are-price-updates-a-good-proxy-for-actual-traded-201104220000> | |
// - Using Tick Volume in Forex: A Clear NVO Based Example <http://mechanicalforex.com/2010/08/using-tick-volume-in-forex-clear.html> | |
// | |
// ----------------------------------------------------------------------------- |
OlderNewer