Skip to content

Instantly share code, notes, and snippets.

View oscarvs's full-sized avatar

Oscar Calcaterra oscarvs

View GitHub Profile
@oscarvs
oscarvs / DDOS Tools
Created June 6, 2016 06:40
Command Line Tools for DDOS related
IPs are being connected to the server and how many connections are for each IP:
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
How many connections are being received by each server IP:
netstat -plan |grep :80 | awk '{print $4}' | cut -d: -f1 | sort | uniq -c | sort -n
To see the total amount of active apache connections:
netstat -apn | grep :80 | wc -l
Tail log Apache errors:
@oscarvs
oscarvs / 13eOBV
Last active February 21, 2021 01:45
Pinescript Indicators for TradingView
study(title="13ema of On Balance Volume", shorttitle="13eOBV")
src = close, len = input(13, minval=1, title="Length")
out = cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0*volume)
out2 = ema(out, len)
plot(out, color=orange, title="OBV")
plot(out2, title="EMA", color=gray)
@oscarvs
oscarvs / forex_killzones
Last active April 4, 2023 14:59
Forex Kill Zones
// Created by https://www.tradingview.com/u/oscarvs @ 19 October 2014 | @theoscarvs
// Inspired by @ICT_MHuddleston concepts, code based on @ChrisMoody scripts
// https://github.com/oscarvs/forex-killzones
// Time sessions are directly sync from exchange/tv data (Change manually if you need to adjust DST Daylight saving time)
study(title="Forex Kill Zones v1 [oscarvs]",shorttitle="Forex Kill Zones v1", overlay=true)
timeinrange(res, sess) => time(res, sess) != 0
// **** Checkboxes and custom Session
iKZNY = input(true, title="New York Kill Zone")
@oscarvs
oscarvs / Bitcoin_KillZones
Last active July 2, 2020 21:22
PineScript "Bitcoin Kill Zones" for TradingView.com
// Created by https://www.tradingview.com/u/oscarvs @ 18 October 2014 | @theoscarvs
// Inspired by @ICT_MHuddleston concepts and @CRInvestor courses, code based on @ChrisMoody scripts
// https://github.com/oscarvs/bitcoin-killzones
// Time sessions are directly sync from exchange/tv data (Change manually if you need to adjust DST Daylight saving time)
study(title="Bitcoin Kill Zones v2 [oscarvs]",shorttitle="Bitcoin Kill Zones v2", overlay=true)
timeinrange(res, sess) => time(res, sess) != 0
// **** Checkboxes and custom Session
iKZNY = input(true, title="New York Kill Zone")
@oscarvs
oscarvs / user_settings.txt
Last active December 26, 2015 03:19
sublime-settings
// instalar Package Control: https://sublime.wbond.net/installation#st2
// Luego instalar Soda Theme desde el Package Control
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/Monokai Bright (SL).tmTheme",
"fade_fold_buttons": false,
"font_size": 13.0,
"highlight_line": true,
"highlight_modified_tabs": true,
@oscarvs
oscarvs / README.md
Last active December 22, 2015 10:29 — forked from oodavid/README.md

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • servidor cpanel
  • exec activo en PHP
  • shell access
  • remote key

Setup git