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
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
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
#!/bin/python | |
from blessed import Terminal | |
from concurrent.futures import ThreadPoolExecutor | |
from queue import SimpleQueue | |
from threading import Lock | |
import re | |
import socket | |
import subprocess | |
import time |
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
::1 | |
localhost | |
arch | |
127.0.0.1 | |
172.*.*.* | |
192.*.*.* | |
10.*.*.* | |
82.157.25.86 | |
39.106.86.136 | |
152.136.199.195 |
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
# *-- coding: utf-8 --* | |
import logging | |
from .backup import Backup | |
__alias__ = 'FeelUOwn Collection Backup' | |
__version__ = '0.0.1' | |
__feeluown_version__ = '2.3.0' | |
__desc__ = 'Backup FeelUOwn collections with GitHub gist.' |
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
# Install tmux 2.8 on Centos | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# cd src | |
cd /usr/local/src | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz |
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
# Display keyboard input using pygame. Only prints letters (no numbers | |
# or special chars). Backspace deletes one character. Return clears | |
# the entire input. | |
# | |
# Run with the following command: | |
# python pygame-display-input.py | |
import pygame | |
from pygame.locals import * | |