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
#OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $ | |
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options override the |
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 | |
sudo apt-get update ##update package list | |
sudo apt-get upgrade -y ##install newest packages, y flag assumes your answer is yes on any prompts | |
sudo apt-get install wget ##installl wget to download sample pdf | |
for package in python3-pip nodejs npm ##install nodejs, node package manager and python package manager | |
do | |
sudo apt install $package -y | |
done |
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 python3 | |
from subprocess import check_output | |
from crontab import CronTab | |
import os | |
def replace_text(filename,find,replace): | |
with open(filename, 'r') as file : | |
filedata = file.read() | |
filedata = filedata.replace(find, replace) |
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 flask import Flask,jsonify,send_from_directory | |
from flask_restful import Api,Resource,reqparse | |
import werkzeug | |
from PyPDF2 import PdfFileMerger | |
import os | |
app = Flask(__name__) | |
app.config["CLIENT_PDF"] = '/home/****USERNAME GOES HERE****/appscript/' | |
api = Api(app) |
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/sh | |
sudo /usr/local/lib/node_modules/forever/bin/forever restartall |
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/sh | |
/usr/local/bin/forever start -s --minUptime 1000 --spinSleepTime 1000 -c python3 ~/appscript/merge_app.py |
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 binance_data import DataClient | |
if __name__ == '__main__': | |
pair_list = DataClient().get_binance_pairs() | |
store_data = DataClient().kline_data(pair_list,'4h',start_date='01/01/2019',end_date='10/10/2019',storage=['csv','binance_data'],progress_statements=True) |
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
<?php | |
/** | |
* General overview output for HTML pages. | |
* | |
* @package query-monitor | |
*/ | |
class QM_Output_Html_Overview extends QM_Output_Html { | |
public function __construct( QM_Collector $collector ) { |
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 requests | |
symbols = ['STRATBTC','OMGBTC','BTCUSDT'] | |
something_else = 'hello world' | |
query_string = str(symbols)+'&'+something_else | |
url = f'http://****public ip goes here****:5000/symbols/{query_string}' | |
r = requests.get(url) | |
data = r.json() | |
print (data) |
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 flask import Flask | |
from flask_restful import Api,Resource | |
from binance.client import Client | |
app = Flask(__name__) | |
api = Api(app) | |
class Prices(Resource): | |
def get(self,symbols,something_else): | |
client = Client(None,None) |