- DOS usb boot -> ubuntu live iso usb boot(too big), minimal_linux_live_20-Jan-2017_64-bit.iso(only 6.8MB)
- diskgenius for dos -> testdisk("No Log\Proceed\Intel\Analyse\Quick Search", better than fdisk), gnome-disks
- norton ghost for dos -> "fsarchiver savefs" "fsarchiver restfs", remastersys
- windows xp -> debian+de(lxde, xfce), kali, ubuntu
- ntldr boot.ini -> grub menu.lst, boot-repair
- RemapKey/KeyTweak -> xmodmap -pke > ~/.Xmodmap then modify it, it will be loaded automatically
- myboard.exe -> myboard.py + modified xorg-server + modified libgtk2.0-0 + fcitx-googlepinyin
- MagicMover(D:\Program Files) -> remastersys restored sda1 + UnionFS-FUSE(pivot_root) sda2
- WinHex -> wxHexEditor, bless, (sublime hexviewer only can edit one line)
- emEditor(PHP/C braces outline, csv editor) -> sublime(ctrl+r to list functions, addon packages: AlignTab,SublimeCodeIntel,Codecs,ConvertToUTF8), SciTE(to view log files)
create this file:
/etc/nginx/sites-available/crp-pmte-stage.spatialdevmo.com
This file will handle visits to crp-pmte-stage.spatialdevmo.com. A Node.js app running on port 5000 needs to be served. Give the file this content:
upstream crp-pmte-stage {
server 127.0.0.1:5000;
}
This file contains hidden or 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 mechanize | |
import requests | |
import re | |
import logging | |
import argparse | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf8') |
This file contains hidden or 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 multiprocessing | |
bind = "unix:/run/app.sock" #Socket su cui deve ascoltare gunicorn | |
threads = multiprocessing.cpu_count() * 2 + 1 | |
wsgi_app = "start:app" #Modulo contenente la flask app |
This file contains hidden or 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 sqlite3 | |
import telebot | |
TOKEN = "<YOUR BOT TOKEN>" | |
bot = telebot.TeleBot(TOKEN) | |
# I suggest you to download SQLite Studio for creating database and tables... | |
conn = sqlite3.connect('database.db', check_same_thread=False) # Connecting to the database | |
cursor = conn.cursor() |