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 python3 | |
''' | |
Les Wright 21 June 2023 | |
https://youtube.com/leslaboratory | |
A Python program to read, parse and display thermal data from the Topdon TC001 Thermal camera! | |
''' | |
print('Les Wright 21 June 2023') | |
print('https://youtube.com/leslaboratory') | |
print('A Python program to read, parse and display thermal data from the Topdon TC001 Thermal camera!') | |
print('') |
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
#!/bin/bash | |
set -x | |
# Crate a virtual environment: | |
python3 -m venv .venv | |
# Update pip: | |
.venv/bin/pip install -U pip |
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
import collections | |
class SimpleTree(collections.defaultdict): | |
""" | |
>>> tree = SimpleTree() | |
>>> tree.add(keys=("1",), value="value 1") | |
>>> tree.add(keys=("2a", "2b"), value="value 2.1") |
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
# https://docs.vagrantup.com | |
# https://github.com/YunoHost/package_check | |
Vagrant.configure("2") do |config| | |
# https://app.vagrantup.com/ubuntu/boxes/focal64 | |
config.vm.box = "ubuntu/focal64" | |
config.vm.provider "virtualbox" do |vb| |
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
import asyncio | |
import random | |
import ssl | |
from asyncio import StreamReader, StreamWriter | |
from pathlib import Path | |
from OpenSSL import crypto | |
BASE_PATH = Path(__file__).parent |
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
... | |
Collecting xlwt==1.3.0 | |
Downloading https://www.piwheels.org/simple/xlwt/xlwt-1.3.0-py2.py3-none-any.whl (99 kB) | |
|████████████████████████████████| 99 kB 1.8 MB/s | |
Requirement already satisfied: setuptools in ./local_test/venv/lib/python3.7/site-packages (from django-axes==5.27.0->-r ./conf/requirements.txt (line 37)) (40.8.0) | |
Collecting tablib[html,ods,xls,xlsx,yaml]>=3.0.0 | |
ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not: | |
tablib[html,ods,xls,xlsx,yaml]>=3.0.0 from https://www.piwheels.org/simple/tablib/tablib-3.1.0-py3-none-any.whl#sha256=41f3950bb717a7beb857ffe1ed8c18a2ea7dbb8549400446c48ff3533327d407 (from django-import-export==2.6.1->-r ./conf/requirements.txt (line 48)) | |
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
-- | |
-- copyleft (c) 2012 by htFX, Jens Diemer - http://www.htFX.de | |
-- | |
-- https://gist.github.com/2392735 | |
-- http://www.scriptspot.com/3ds-max/scripts/maxscript-to-turn-off-backface-cull-on-all-objects | |
-- | |
actionMan.executeAction 0 "40472" -- MAX Script: MAXScript Listener | |
clearListener() |
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
from django.apps import apps as global_apps | |
from django.db import migrations | |
from djangocms_file.models import get_templates as get_file_templates | |
from djangocms_picture.models import get_templates as get_picture_templates | |
def forwards_filer_file(apps, schema_editor): | |
try: | |
CMSPluginFilerFile = apps.get_model('cmsplugin_filer_file', | |
'FilerFile') |
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
#!/bin/bash | |
set -ex | |
cd /tmp | |
wget --timestamp https://www.zoom.us/client/latest/zoom_amd64.deb | |
sudo dpkg -i zoom_amd64.deb |
NewerOlder