Place wekan.service in /etc/systemd/system
, then use sudo systemctl start wekan
to start the service.
This file contains hidden or 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 pathlib import Path | |
import onnx | |
model_path = Path("my_model.onnx") | |
extra_output = "/up1/Concat_3_output_0" # One good way to get this identifier for your node is to use https://netron.app/ | |
extra_output_shape = [1, 1024, 55, 55] | |
new_model_path = model_path.with_stem(model_path.stem + "-" + extra_output.replace("/", "_").replace(".", "_").strip("_")) | |
model = onnx.load(model_path) |
This file contains hidden or 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
version: "3.5" | |
services: | |
adguard: | |
container_name: adguard | |
image: adguard/adguardhome:latest | |
volumes: | |
- "./adguard-work/:/opt/adguardhome/work" | |
- "./adguard-conf/:/opt/adguardhome/conf" | |
ports: | |
- "53:53/tcp" |
This file contains hidden or 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 | |
# Given an output PDF filename and a list of images, adjust and OCR the images and create a PDF | |
OUT_NAME=$1 | |
shift | |
mogrify -auto-orient $@ | |
TMPDIR=`mktemp -d` | |
scantailor-cli -l=1 --dewarping=auto --start-filter=1 --end-filter=6 $@ "$TMPDIR" | |
for IN in $@ | |
do | |
FILENAME=`basename -s .jpg "$IN"` |
This file contains hidden or 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
evaluate-commands %sh{ | |
common_accent="rgb:e6b450" | |
common_bg="rgb:0a0e14" | |
common_fg="rgb:b3b1ad" | |
common_ui="rgb:3d424d" | |
syntax_tag="rgb:39bae6" | |
syntax_func="rgb:ffb454" | |
syntax_entity="rgb:59c2ff" | |
syntax_string="rgb:c2d94c" | |
syntax_regexp="rgb:95e6cb" |
This file contains hidden or 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
[stepper_x] | |
step_pin: ar54 | |
dir_pin: ar55 | |
enable_pin: !ar38 | |
step_distance: .0125 | |
endstop_pin: ^!ar3 | |
#endstop_pin: ^ar2 | |
position_endstop: 0 | |
position_max: 330 | |
homing_speed: 50 |
This file contains hidden or 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 | |
# Usage example: | |
# if roottex=$(~/findroot.sh .); then; echo $roottex; else; echo No root found;fi | |
# This constant determines how many directories will be searched. | |
# A value of 0 will result in no searching at all, 1 will search the directory of the given file or the given directory | |
SEARCHDEPTH=3 | |
## This part is only parameter validation |
This file contains hidden or 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 | |
# This script converts all xournal xoj files in subdirectories of the current working directories to pdf files | |
# It also checks if the file was recently changed. | |
# To do this, it compares modification timestamps of these files with the modification timestamp of the script files itself. | |
# The script will also update its own modification timestamp afterwards. | |
SCRIPT="$(realpath "$0")" | |
# Converts a single xoj file to pdf. | |
function convertXoj { |
This file contains hidden or 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 | |
bottoken=<INSERT TOKEN> | |
chatid=<INSERT CHAT> | |
matrikel=<INSERT MATRIKEL> | |
# USE curl https://api.telegram.org/bot$bottoken/getUpdates to get the chatID! | |
telegrambase=https://api.telegram.org/bot$bottoken/sendMessage?chat_id=$chatid | |
if [[ $(curl -vs -F "matrikel=$matrikel" http://dekanat.cs.uni-dortmund.de/web/de/cgi-bin/zqueryBA.cgi 2>&1 | grep Zeugnis_Nicht_Vorhanden) ]]; then |
This file contains hidden or 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 PIL import Image | |
"""Credit: https://www.hackerearth.com/notes/beautiful-python-a-simple-ascii-art-generator-from-images/ | |
One change: the scaled images width is doubled to create better ASCII art. | |
""" | |
ASCII_CHARS = [ '#', '?', '%', '.', 'S', '+', '.', '*', ':', ',', '@'] | |
def scale_image(image, new_width): | |
"""Resizes an image preserving the aspect ratio. |
NewerOlder