This Web Components keeps the year in your copyright notice up-to-date.
export { CopyrightYearElement }
const name = "copyright-year";
class CopyrightYearElement extends HTMLSpanElement {
This will allow you to test a specific frequency that you hear when you do your resonance testing in Klipper and potentially track down where extra peaks are coming from. If something is rattling at a specific frequency, you can specify that frequency and feel around the printer until you track it down.
Code was adopted by zifnab from somewhere in Klipper.
You have to have [resonance_holder]
in your printer.cfg.
The command is HOLD_RESONANCE AXIS=<axis> FREQ=int SECONDS=<seconds>
(WIP)
##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:alexpchin/.git
template <int, typename> | |
struct List; | |
struct Nil { | |
template <int _NValue> | |
using Append = List<_NValue, Nil>; | |
}; | |
template <int _Value, typename _Next> | |
struct List { |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# https://toster.ru/q/72866 | |
# How to | |
# wget http://gist.github.com/... | |
# chmod +x ya.py | |
# ./ya.py download_url path/to/directory | |
import os, sys, json |
# SGR color constants | |
# rene-d 2018 | |
class Colors: | |
""" ANSI color codes """ | |
BLACK = "\033[0;30m" | |
RED = "\033[0;31m" | |
GREEN = "\033[0;32m" | |
BROWN = "\033[0;33m" | |
BLUE = "\033[0;34m" |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
#!/bin/bash | |
# author: ravi joshi | |
# date: 19 mar 2020 | |
# this shell script converts all PDF files to JPG files | |
# it walks recursively inside the given directory | |
# requirement: it uses ImageMagick command line tool for PDF to JPG convertion. | |
# check here (https://github.com/ravijo/image-video-editing#install-imagemagick-on-ubuntu-1404) | |
# for more information | |
if [ $# -eq 0 ]; then |
openssl s_client -crlf -connect imap.gmail.com:993 | |
tag login user@gmail.com passwordhere | |
tag list "" "*" | |
tag select "inbox" | |
tag fetch 1:3 body[header] | |
tag fetch 3 body[header] | |
tag fetch 3 body[text] | |
tag fetch 2 all | |
tag fetch 2 fast | |
tag fetch 2 full |