Skip to content

Instantly share code, notes, and snippets.

@Nokius
Nokius / readme.md
Last active Oct 31, 2020 — forked from ubergesundheit/readme.md
systemd traefik.service
View readme.md

systemd Service Unit for Traefik

Adapted from caddy systemd Service Unit

The provided file should work with systemd version 219 or later. It might work with earlier versions. The easiest way to check your systemd version is to run systemctl --version.

Instructions

We will assume the following:

@Nokius
Nokius / bot.md
Last active Oct 30, 2020
home assistant more interactive telegram bot
View bot.md

Home Assistant random snips telegram bot with interaction per state

Have a dynamic bot to responde on therten state.

- alias: Telegram controle xyz
  initial_state: 'on'
  trigger:
    platform: event
    event_type: telegram_command
@Nokius
Nokius / homematic_ip.md
Created Oct 11, 2020
Home Assistant snips for Homematic IP
View homematic_ip.md

Home Assistant Homematic IP random snips

Just a copy & past of some of snips may others wanna setup too.

Enjoy and hack on!

Notify if saboate happes on one of the enteties

configure custom binary sensor

@Nokius
Nokius / renkforce.md
Created Sep 19, 2019
Renkforce RSL366R
View renkforce.md

Funksteckdosen Renkforce Codes

Protocol: 1

Gruppe I:

1 ON: 1381717 1 OFF: 1381716

2 ON: 1394005 2 OFF: 1394004

View gist:e2822a571a1f5377c0149f7187c15526
Umstellen horizontal nach vertikal
vertical split to horizontall split
Ctrl-w t Ctrl-w K
horizontall split to vertical split
Ctrl-w t Ctrl-w H
View gist:154f4aeea35d3bc7ec3979c2f4927411

Finden von hidden characters in puppet code

cat -A < my_puppet >.pp

cat -n -A < my_puppet >.pp | grep < line number >

@Nokius
Nokius / git_fragen_bewerber.md
Created Aug 16, 2019
[git questions] Du willst deinen Bewerben ein paar fragen zu git stellen? Dan los!
View git_fragen_bewerber.md

Basic

Frage I

  • Initialisiere in einem neuen Ordner eine git repository.

$> mkdir my_fancy_project ; cd my_fancy_project ; git init

Frage II

@Nokius
Nokius / Yi_Discovery_Action_Camera_(J22).md
Created Jul 19, 2018
Yi Discovery Action Camera (J22) Protocol Reverse Engineering
View Yi_Discovery_Action_Camera_(J22).md

Yi Discovery Action Camera (J22) Protocol Reverse Engineering

Photo Mode

Request:

{"msg_id":16777228,"param":"precise quality;off","token":x}

Response:

{"rval":0,"msg_id":16777228}{"msg_id":7,"type":"setting_changed","param":"capture_mode","value":"precise quality","related":[{"dewarp_support_status":"off"},{"eis_support_status":"off"},{"rec_audio_support":"on"},{"support_sharpness":"on"},{"photo_size":"16M"},{"iq_photo_shutter":"auto"},{"timelapse_photo_shutter":"auto"}]}{"msg_id":7,"type":"setting_changed","param":"capture_mode","value":"precise quality","related":[{"dewarp_support_status":"off"},{"eis_support_status":"off"},{"rec_audio_support":"on"},{"support_sharpness":"on"},{"photo_size":"16M"},{"iq_photo_shutter":"auto"},{"timelapse_photo_shutter":"auto"}]}
@Nokius
Nokius / install.md
Last active Nov 24, 2020
Install SailfishOS on Xperia™ Z3 Tablet Compact (SGP621)
View install.md

Install SailfishOS on Xperia™ Z3 Tablet Compact (SGP621)

SailfishOS

!!!! Backup your data you do it on your own risk !!!!

@Nokius
Nokius / README.md
Created Mar 6, 2018
[Terraform][proxmox] small VM created with terraform on proxmox
View README.md

terraform-provider-proxmox

simple VM created with terraform-provider-proxmox

  • one core
  • 512MB RAM
  • Ubuntu netinstall CDROM
  • 32GB IDE HDD
  • bridged network interface