Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=Matrix Telegram Bridge
After=network.target
[Service]
User=matrix-bridge-telegram
Group=matrix-bridge-telegram
Environment="VIRTUAL_ENV=/opt/mautrix-telegram"
Environment="PATH=/opt/mautrix-telegram/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/opt/mautrix-telegram/bin/python -m mautrix_telegram
Changing monitoring state from "Offline" to "Detecting serial port"
Serial port list: ['/dev/ttyACM0']
Connecting to: /dev/ttyACM0
Changing monitoring state from "Detecting serial port" to "Opening serial port"
Connected to: Serial<id=0x6b2fb390, open=True>(port='/dev/ttyACM0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Changing monitoring state from "Opening serial port" to "Connecting"
Recv: echo:Unknown command: "echo: Last Updated: Aug 8 2016 11:27:24 | Author: (none, default config)"
Send: N0 M110 N0*125
Recv: ok
Changing monitoring state from "Connecting" to "Operational"
@Kunsi
Kunsi / config.py
Last active August 1, 2018 20:32
i3pystatus
from i3pystatus import Status
from i3pystatus.updates import pacman, cower
status = Status()
status.register("pulseaudio",
format="♪ {db}dB",
format_muted="♪ muted",
step="2",
sink="alsa_output.pci-0000_00_1b.0.analog-stereo")
daemon=6
syslog=yes
mail-failure=felix@kunsmann.eu
pid=/var/run/ddclient.pid
use=if, if=eth3
protocol=dyndns2, server=dyndns.inwx.com, ssl=no, login=kaworu.kunbox.net, password=m00
kaworu.kunbox.net
@Kunsi
Kunsi / key.md
Created June 7, 2018 11:13
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

16:53:26.393 T:1832903600 INFO: WEATHER: Downloading weather
16:53:26.394 T:1466954672 DEBUG: Thread LanguageInvoker start, auto delete: false
16:53:26.394 T:1466954672 INFO: initializing python engine.
16:53:26.394 T:1466954672 DEBUG: CPythonInvoker(7, /home/pi/.kodi/addons/weather.openweathermap.extended/default.py): start processing
16:53:26.462 T:1466954672 DEBUG: -->Python Interpreter Initialized<--
16:53:26.462 T:1466954672 DEBUG: CPythonInvoker(7, /home/pi/.kodi/addons/weather.openweathermap.extended/default.py): the source file to load is "/home/pi/.kodi/addons/weather.openweathermap.extended/default.py"
16:53:26.463 T:1466954672 DEBUG: CPythonInvoker(7, /home/pi/.kodi/addons/weather.openweathermap.extended/default.py): setting the Python path to /home/pi/.kodi/addons/weather.openweathermap.extended:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/us
21:03:47.427680 IP kunsi-macbookpro > kaito.kunbox.net: ICMP echo request, id 21911, seq 38335, length 44
21:03:47.458281 IP ip5886bb52.dynamic.kabel-deutschland.de > kunsi-macbookpro: ICMP time exceeded in-transit, length 148
21:03:47.505712 IP kunsi-macbookpro > kaito.kunbox.net: ICMP echo request, id 21911, seq 38336, length 44
21:03:47.525005 IP ip5886c0b0.static.kabel-deutschland.de > kunsi-macbookpro: ICMP time exceeded in-transit, length 76
21:03:47.583970 IP kunsi-macbookpro > kaito.kunbox.net: ICMP echo request, id 21911, seq 38337, length 44
21:04:04.195114 IP kunsi-macbookpro.58882 > kaito.kunbox.net.ssh: Flags [S], seq 2553521987, win 29200, options [mss 1460,sackOK,TS val 570396776 ecr 0,nop,wscale 7], length 0
Feb 12 00:26:14 kunsi-macbookpro kernel: INFO: task kworker/u8:2:15341 blocked for more than 120 seconds.
Feb 12 00:26:14 kunsi-macbookpro kernel: Tainted: P W O 4.14.15-1-ARCH #1
Feb 12 00:26:14 kunsi-macbookpro kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Feb 12 00:26:14 kunsi-macbookpro kernel: kworker/u8:2 D 0 15341 2 0x80000000
Feb 12 00:26:14 kunsi-macbookpro kernel: Workqueue: events_unbound async_run_entry_fn
Feb 12 00:26:14 kunsi-macbookpro kernel: Call Trace:
Feb 12 00:26:14 kunsi-macbookpro kernel: ? __schedule+0x296/0x8b0
Feb 12 00:26:14 kunsi-macbookpro kernel: schedule+0x2f/0x90
Feb 12 00:26:14 kunsi-macbookpro kernel: schedule_preempt_disabled+0x11/0x20
Feb 12 00:26:14 kunsi-macbookpro kernel: __mutex_lock.isra.2+0x288/0x510
general {
output_format = "i3bar"
colors = true
interval = 5
}
order += "ipv6"
order += "disk /"
order += "disk /home"
order += "wireless wlp3s0"
#!/bin/bash
scrot -z /home/kunsi/screenlock.png
gm convert -scale 10% -scale 1000% /home/kunsi/screenlock.png /home/kunsi/screenlock.png
gm composite -gravity center /home/kunsi/Pictures/screenlock-overlay.png /home/kunsi/screenlock.png /home/kunsi/screenlock.png
i3lock -i /home/kunsi/screenlock.png