This file has been truncated, but you can view the full file.
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
[{"City":"Postville","DBTZ":"A","Name":"Postville Airport","Country":"Canada","IATA/FAA":"YSO","Longitude":"-59.785278","ICAO":"CCD4","Airport ID":"7252","Latitude":"54.910278","Timezone":"223","DST":"-4","destinations":["5492","188","5502"]},{"City":"Osubi","DBTZ":"U","Name":"Warri Airport","Country":"Nigeria","IATA/FAA":"QRW","Longitude":"5.45","ICAO":"DNSU","Airport ID":"6972","Latitude":"5.31","Timezone":"50","DST":"1","destinations":["260","273"]},{"City":"Rockland","DBTZ":"A","Name":"Knox County Regional Airport","Country":"United States","IATA/FAA":"RKD","Longitude":"-69.0992303","ICAO":"KRKD","Airport ID":"4026","Latitude":"44.0601111","Timezone":"56","DST":"-5","destinations":["3448"]},{"City":"Jacksn Hole","DBTZ":"A","Name":"Jackson Hole Airport","Country":"United States","IATA/FAA":"JAC","Longitude":"-110.73775","ICAO":"KJAC","Airport ID":"4027","Latitude":"43.607333333","Timezone":"6451","DST":"-7","destinations":["3536","3751"]},{"City":"Flores","DBTZ":"U","Name":"Mundo Maya International","Count |
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
''' | |
Establish a socket connection through an HTTP proxy. | |
Author: Fredrik Østrem <[email protected]> | |
License: | |
This code can be used, modified and distributed freely, as long as it is this note containing the original | |
author, the source and this license, is put along with the source code. | |
''' |
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 apt update -qq | |
sudo apt remove --purge vim vim-common vim-runtime vim-gnome vim-tiny vim-gui-common vim-nox-py2 | |
sudo apt install -y liblua5.1-dev luajit libluajit-5.1 python-dev python3-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev | |
#Optional: so vim can be uninstalled again via `dpkg -r vim` | |
sudo apt install checkinstall | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim |
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 python | |
from datetime import datetime | |
from json import loads | |
from time import gmtime, mktime, strptime | |
# LevelDict é um wrapper usando dicionário para LevelDB | |
# https://github.com/maurobaraldi/leveldict | |
from leveldict import LevelJsonDict | |
from requests import get |
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
# Start a local webserver to serve the file of your current directory on the LAN: | |
# Python version 2.x: | |
python -m SimpleHTTPServer | |
# Python version 3.x: | |
python3 -m http.server | |
#Start a local SMTP server to debug your app emails. Emails will be printed on stdout: | |
python -m smtpd -c DebuggingServer -n | |
#Parse and prettify a JSON string with: |
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 python | |
# -*- coding: utf-8 -*- | |
import httplib | |
import re | |
import sys | |
import base64 | |
import subprocess | |
import urllib | |
import lxml.etree |