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
/* An OpenSCAD squircle | |
Copyright (C) 2022 by Brendan M. Sleight | |
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. | |
https://en.wikipedia.org/wiki/Squircle | |
A squircle is a shape intermediate between a square and a circle. | |
A superellipse, where x^4 + y^4 = 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
# SPDX-License-Identifier: LGPL-3.0-or-later | |
# Copyright (C) 2020 Daniel Thompson | |
"""Logo demo for PineTime | |
~~~~~~~~~~~~~~~~~~~~~~~~~ | |
This demo is simply an alternating sweep of the Pine64 and | |
MicroPython logos. It cycles through a variety of colours | |
and swaps between the logos every 5 images (so if you change | |
anything make sure len(colors) is not a multiple of 5). |
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
include <lasercut.scad>; | |
$fn=60; | |
thickness = 0.36; | |
overlapfactor=20; | |
overlap_distance=overlapfactor*thickness; | |
kindle_x=117; | |
kindle_y=169; |
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
mosquitto_pub -h localhost -t "owntracks/bms/WorkPhone/cmd" -m '{"_type":"cmd","action":"setConfiguration","configuration":{"_type":"configuration","monitoring":1}}' -u "bms" -P "XXXX" |
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
$fn=100; | |
words("ILOVEYOU", "OPENSCAD"); | |
module single_letter(tx,ty, ifont, size) | |
{ | |
scale([size/10, size/10,size/10]) | |
{ | |
intersection() { | |
translate([0,10,0]) rotate([90,0,0]) linear_extrude(height =10) text(tx, font = ifont); |
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
$fn=100; | |
words("ILOVEYOU", "OPENSCAD"); | |
module single_letter(tx,ty, ifont, size) | |
{ | |
scale([size/10, size/10,size/10]) | |
{ | |
intersection() { | |
translate([0,10,0]) rotate([90,0,0]) linear_extrude(height =10) text(tx, font = ifont); |
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
<VirtualHost *:80> | |
ServerName paperless.lan | |
Alias /static/ /home/paperless/paperless/static/ | |
<Directory /home/paperless/paperless/static> | |
Require all granted | |
</Directory> | |
WSGIScriptAlias / /home/paperless/paperless/src/paperless/wsgi.py | |
WSGIDaemonProcess paperless.lan user=paperless group=paperless threads=5 |
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 bash | |
# Bash script to instal paperless in lxc containter | |
# Get apt up to date | |
apt-get update | |
# Needed for plain Paperless | |
apt-get -y install unpaper gnupg libpoppler-cpp-dev python3-pyocr tesseract-ocr imagemagick optipng |
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 kivy.app import App | |
from kivy.logger import Logger | |
try: | |
from jnius import autoclass | |
from android.runnable import run_on_ui_thread | |
android_api_version = autoclass('android.os.Build$VERSION') | |
AndroidView = autoclass('android.view.View') | |
AndroidPythonActivity = autoclass('org.renpy.android.PythonActivity') |
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 | |
end=$(($1 + $2)) | |
lstart=$(($1 + 1)) | |
for i in `seq $lstart $end`; | |
do | |
start=$(printf %03d $1); | |
counter=$(printf %03d $i); | |
cp $3/frame_$start.gif $3/frame_$counter.gif | |
done |
NewerOlder