apt-get install mkisofs
mkdir /tmp/custom_iso
| #!/usr/bin/env bash | |
| #=========================================================================== | |
| # Works only with the official image available in the Mac App Store. | |
| # Make sure you download the official installer before running this script. | |
| #=========================================================================== | |
| # Change this at your desire. Sometimes this works out of the box, sometimes not. | |
| # Default size: ~16 GB | |
| DISK_SIZE="15361m" |
| #!/usr/bin/python3 | |
| import yaml | |
| import psutil | |
| # function to validate it an IP address is real, or NA to skip (used for NS2) | |
| def validate_ip(s): | |
| if s.upper() == "NA": | |
| return True | |
| a = s.split('.') |
| #!/bin/env python3 | |
| from flask import Flask | |
| import geoip2.database | |
| app = Flask(__name__) | |
| reader = geoip2.database.Reader('GeoLite2-City.mmdb') | |
| @app.route("/") | |
| def hello(): |
| #!/usr/bin/env python3 | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| see: https://gist.github.com/UniIsland/3346170 | |
| """ | |
#Country ban with UFW#
Grab your different country ip addresses and save as Linux IPTables
http://www.ip2location.com/free/visitor-blocker
##Add country## Run the following command
| from flask import Flask, render_template | |
| app = Flask(__name__) | |
| @app.route('/') | |
| @app.route('/index') | |
| def index(chartID = 'chart_ID', chart_type = 'bar', chart_height = 350): | |
| chart = {"renderTo": chartID, "type": chart_type, "height": chart_height,} | |
| series = [{"name": 'Label1', "data": [1,2,3]}, {"name": 'Label2', "data": [4, 5, 6]}] | |
| title = {"text": 'My Title'} |
| curl -X POST -H "Content-Type: application/json" -d '{"src":"XXXXXXXXX","dst":"YYYYYYYYY","text":"こんにちはお元気ですか"}' -L -u <AUTHID>:<AUTHTOKEN> https://api.plivo.com/v1/Account/<AUTHID>/Message/ | |
| where: | |
| XXXXXXXXX = source Plivo number (it must be a Phone Number in your Plivo account) | |
| YYYYYYYYY = destination mobile number | |
| <AUTHID> = Plivo AUTHID | |
| <AUTHTOKEN> = Plivo AUTHTOKEN |
| from flask import Flask, render_template | |
| app = Flask(__name__) | |
| @app.route('/') | |
| @app.route('/index') | |
| def index(chartID = 'chart_ID', chart_type = 'bar', chart_height = 350): | |
| chart = {"renderTo": chartID, "type": chart_type, "height": chart_height,} | |
| series = [{"name": 'Label1', "data": [1,2,3]}, {"name": 'Label2', "data": [4, 5, 6]}] | |
| title = {"text": 'My Title'} |