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
BEGIN Trading Script | |
INITIALIZE logging, settings, and environment | |
IF no open positions exist THEN | |
IF the market is trending AND not overbought/oversold THEN | |
GET the most common trade signal (BUY or SELL) | |
OPEN a new trade based on the signal | |
END IF | |
ELSE IF there is one open position THEN |
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
# Identify the interface with the default route to the Internet (0.0.0.0 route) | |
$defaultRoute = Get-NetRoute -DestinationPrefix "0.0.0.0/0" | Sort-Object -Property RouteMetric | Select-Object -First 1 | |
$interfaceIndex = $defaultRoute.InterfaceIndex | |
# Retrieve all network interfaces | |
$interfaces = Get-NetIPInterface -AddressFamily IPv4 | |
# Set the priority for the interface with the default route to the highest (lowest metric) | |
foreach ($interface in $interfaces) { | |
if ($interface.InterfaceIndex -eq $interfaceIndex) { |
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
# """THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND | |
# NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE | |
# DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, | |
# WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
# SOFTWARE.""" | |
# Bitcoin Cash (BCH) qpz32c4lg7x7lnk9jg6qg7s4uavdce89myax5v5nuk |
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
iptables -t mangle -A OUTPUT -p udp -j DSCP --set-dscp-class ef | |
root@raspberrypi:~# iptables -t nat -L | |
Chain PREROUTING (policy ACCEPT) | |
target prot opt source destination | |
Chain INPUT (policy ACCEPT) | |
target prot opt source destination |
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
apt update | |
apt upgrade -y | |
apt install linux-xanmod-edge -y | |
apt install glances htop nmap bleachbit git python3-pip iperf3 easy-rsa iptables-persistent tuned neofetch net-tools fail2ban ntpdate ntp ntpstat -y | |
service tuned start | |
tuned-adm list | |
tuned-adm profile throughput-performance | |
service tuned restart | |
apt autoclean -y |
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
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help | |
driftfile /var/lib/ntp/ntp.drift | |
logfile /var/log/ntp.log | |
# Enable this if you want statistics to be logged. | |
#statsdir /var/log/ntpstats/ | |
statistics loopstats peerstats clockstats | |
filegen loopstats file loopstats type day enable |
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
import time | |
import praw | |
import sqlite3 | |
from random import randint | |
from time import sleep | |
# FROMSUB = "cyber" # The subreddit you want to take posts from | |
# TOSUBS = ["cyber_security", "cyberlaws", "security", "privacy", | |
# "netsec", "technology", "computerforensics", "ComputerSecurity"] # The | |
# subreddits you want to post to |
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
Avg Price Mar Req 1/pt 2/pt 3/pt | |
20 4.2 4.2 8.4 12.6 | |
30 6.3 6.3 12.6 18.9 | |
50 10.5 10.5 21 31.5 | |
70 14.7 14.7 29.4 44.1 | |
85 17.85 17.85 35.7 53.55 | |
102 21.42 21.42 42.84 64.26 | |
119 24.99 24.99 49.98 74.97 | |
136 28.56 28.56 57.12 85.68 | |
153 32.13 32.13 64.26 96.39 |
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
from datetime import datetime | |
import time | |
import threading | |
########################### | |
from multiprocessing import Process | |
import random | |
########################### | |
import dns.resolver | |
import dns.reversename | |
import ftplib |
NewerOlder