(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
import http.server | |
import socket | |
import ssl | |
import os | |
server_address = ('0.0.0.0', 9000) | |
hostname = socket.gethostname() | |
local_ip = socket.gethostbyname(hostname) | |
print("Open https://localhost:9000") |
#!/usr/bin/env python | |
import re | |
import json | |
STATUS_FILE_PATH = "/var/cache/nagios3/status.dat" | |
def read_status(): | |
hosts = {} | |
services = {} |
<!DOCTYPE html> | |
<html lang="en" > | |
<head> | |
<meta charset="UTF-8"> | |
<title>Raycaster</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" /> | |
</head> | |
<body> | |
<div class="container-fluid fixed-top header disable-selection"> |
### DML ### | |
# Keyspace Name | |
keyspace: kairos | |
# The CQL for creating a keyspace (optional if it already exists) | |
keyspace_definition: | | |
CREATE KEYSPACE kairos WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 2}; | |
# Table name |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Example of `object pool' design pattern | |
# Copyright (C) 2011 Radek Pazdera | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
$ uname -r
from flask import Flask, request, jsonify, json, abort | |
from flask_cors import CORS, cross_origin | |
import pandas as pd | |
import numpy as np | |
app = Flask(__name__) | |
cors = CORS(app) |
from multiprocessing import Pool as MPool | |
from time import sleep | |
import datetime | |
import multiprocessing | |
import random | |
def time_request(): | |
from gevent import monkey; monkey.patch_socket | |
from jsonrequester import JsonRequester |