Skip to content

Instantly share code, notes, and snippets.

[ 0.000000] Linux version 5.19.7-1-pve (build@proxmox) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PREEMPT_DYNAMIC PVE 5.19.7-1 (Tue, 06 Sep 2022 07:54:58 + ()
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.19.7-1-pve root=/dev/mapper/pve-root ro quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
@kenci
kenci / alarmsystem2.ino
Created January 10, 2020 13:16
Alarmsystem atmega328/168p
///////////
// Set UTC time from Serial 1607,yy,m,d,h,m,s
///////////
#include <EEPROM.h>
#include <TimeAlarms.h>
#include <DS3232RTC.h> //http://github.com/JChristensen/DS3232RTC
#include <Streaming.h> //http://arduiniana.org/libraries/streaming/
#include <Time.h> //http://playground.arduino.cc/Code/Time
#include <Wire.h> //http://arduino.cc/en/Reference/Wire
1. Boden und Wände reinigen
2. Wasserspiegel absenken (Rückspülen aktivieren)
3. PH-Wert auf 7,0-7,2 einstellen
4. Schockchlorung durchführen
5. Filteranlage ca. 4h durchlaufen lassen
6. Winter-Pflegemittel dazugeben
7. Winterstopfen anbringen (Düsen + Skimmer)
8. Kugelhähne schliessen
9. Alle Rohrleitung trocken legen
10. Eisdruckpolster verwenden
@kenci
kenci / power_consumption_rf24.txt
Created October 7, 2017 09:07
MySensors Power
5v arduino nano -> 3v3 nrf24l01+ -> 3v3 bh1750 = 6.9mA
5v arduino nano -> 5v adapter -> nrf24l01+ -> 3v3 bh1750 = 10.6mA
5v arduino nano -> 3v3 adapter -> nrf24l01+ -> 3v3 bh1750 = 22.3mA
5v arduino nano -> 3v3 nrf24l01+ -> 5v bh1750 = 6.9mA
5v arduino pro -> 5v adapter -> 3v3 nrf24l01+ -> 5v bh1750 = 10mA
5v arduino pro w/o led -> 5v adapter -> 3v3 nrf24l01+ -> 5v bh1750 = 3.7mA?
@kenci
kenci / anet a8
Last active August 8, 2017 16:37
m92 - m503
Send: M503
Recv: echo:Steps per unit:
Recv: echo: M92 X99.46 Y99.91 Z401.81 E115.00
Recv: echo:Maximum feedrates (mm/s):
Recv: echo: M203 X400.00 Y400.00 Z8.00 E50.00
Recv: echo:Maximum Acceleration (mm/s2):
Recv: echo: M201 X1000 Y1000 Z100 E5000
Recv: echo:Accelerations: P=printing, R=retract and T=travel
Recv: echo: M204 P400.00 R1000.00 T400.00
Recv: echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s), Z=maximum Z jerk (mm/s), E=maximum E jerk (mm/s)
@kenci
kenci / emon_pulse_decoder_ethernet_mqtt.ino
Last active November 15, 2016 16:36
Emon pulse counter
//---------------------------------------------------------------------
// Pulse String Decoder Sketch with Ethernet forwarding
// GNU GPL openenergymonitor.org
// Author: Trystan Lea
// Modified: kenci
// Added DSB1820 Sensors
//---------------------------------------------------------------------
#include <Ethernet.h>
#include <SPI.h>
#include <PubSubClient.h>
@kenci
kenci / broker_state.md
Last active November 15, 2016 09:56
MQTT Status

##Broker Status

Clients can find information about the broker by subscribing to topics in the $SYS hierarchy as follows. Topics marked as static are only sent once per client on subscription. All other topics are updated every sys_interval seconds. If sys_interval is 0, then updates are not sent.

Note that if you are using a command line client to interact with the $SYS topics and your shell interprets $ as an environment variable, you need to place the topic in single quotes '$SYS/...' or to escape the dollar symbol: $SYS/... otherwise the $SYS will be treated as an environment variable.

$SYS/broker/bytes/received The total number of bytes received since the broker started.

$SYS/broker/bytes/sent

@kenci
kenci / snapshot.sh
Last active October 22, 2016 08:13
RTSP stream snapshot
avconv -i rtsp://192.168.1.243:554/onvif1 -r 10 -vsync 1 -qscale 1 -vframes 1 -vf "hflip" image.jpg
@kenci
kenci / install.md
Last active September 22, 2016 07:16
RTSP save stream

Installation

sudo apt-get install livemedia-utils

Usage

openRTSP -u user pass -d 10 -4 rtsp://192.168.1.90:554/1 &gt; lol.mp4

@kenci
kenci / wordpress.md
Last active September 5, 2016 12:21
Wordpress permissions

WordPress Server Configurations Link Now we know about permissions and how to read them. But before proceeding to change all of our permissions, we need to understand how our server is set up. Because permissions deal with user accounts and groups, we need to know how our WordPress website runs. A lot of different server configurations are out there. Different configurations need different sets of permission modes for WordPress to work correctly and securely. We’ll talk about just the two most common configurations and the proper permissions for them: Standard server configuration: You have a user account. Your Web server runs as another user account. Shared server configuration or suEXEC configuration: You have a user account. Other people who use the server have user accounts and might share the same group with your user account. Your Web server runs as the owner of your WordPress files.