Model: mlc-chat-Llama-2-13b-chat-hf-q4f16_1
Five cute names for a pet weasel
This is based on Method 2 in https://websiteforstudents.com/installing-the-latest-python-3-7-on-ubuntu-16-04-18-04/
First, you need to install Python 3.7 (you will currently have Python 3.5.2):
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
Metadata-Version: 2.1 | |
Name: testcontainers-postgres | |
Version: 0.0.1rc1 | |
Summary: PostgreSQL component of testcontainers-python. | |
Home-page: https://github.com/testcontainers/testcontainers-python | |
Requires-Python: >=3.7 | |
Description-Content-Type: text/x-rst | |
Requires-Dist: testcontainers-core | |
Requires-Dist: sqlalchemy | |
Requires-Dist: psycopg2-binary |
$ wget -e robots=off -r -np 'http://example.com/folder/'
import sqlite3 | |
# Connect to the test.db database | |
conn = sqlite3.connect(":memory:") | |
cursor = conn.cursor() | |
# Create the news table | |
cursor.execute( | |
""" | |
CREATE TABLE IF NOT EXISTS news ( |
I made this Toga app as a Bash one-liner:
python -c '
import toga
import urllib.request
import json
def fetch_json(url):
with urllib.request.urlopen(url) as response:
if response.getcode() == 200:
localhost:~$ ssh example.com | |
ubuntu@example.com:~$ | |
... ooh, I could really do with a port forwarding to something on here ... | |
Type ENTER TILDE CAPITAL-C | |
ssh> | |
Secret SSH shell! | |
ssh> -L8080:localhost:8080 |
.grow-wrap { | |
/* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */ | |
display: grid; | |
} | |
.grow-wrap::after { | |
/* Note the weird space! Needed to preventy jumpy behavior */ | |
content: attr(data-replicated-value) " "; | |
/* This is how textarea text behaves */ | |
white-space: pre-wrap; |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
function slugify(s) { | |
return s | |
.toLowerCase() | |
.replace(/[^-\w\s]/g, "") // remove non-alphanumerics | |
.trim() | |
.replace(/[-\s]+/g, "-") // spaces to hyphens | |
.replace(/-+$/g, ""); // trim trailing hyphens | |
} | |
function slugAutoFill() { |