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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<meta name="author" content="HKLCF"> | |
<title>Cloudflare API (List DNS record)</title> | |
</head> | |
<body> | |
<div id="result"></div> |
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
sudo -i | |
for pkg in $(dpkg --get-selections | egrep -v 'deinstall' | egrep python | awk '{print $1}'); do apt-get -y --allow-downgrades install --reinstall $pkg ; done | |
sudo apt install aptitude -y && sudo aptitude install libsqlite3-dev -y && sudo wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz && sudo tar -xzf Python-2.7.18.tgz && cd Python-2.7.18 | |
./configure --prefix=/usr --prefix=/home/python27 --enable-shared --enable-loadable-sqlite-extensions --enable-optimizations | |
sudo make && sudo make install | |
./configure; make libinstall; make sharedinstall |
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
# System_Info.py - experimenting with platform and os modules | |
/python2 ``` | |
import sys, os, platform | |
# flag to control level of printing out values here | |
longOutput = False | |
print '»sys Module' | |
print '----------' |