Skip to content

Instantly share code, notes, and snippets.

@popk
popk / mikrotik.py
Created April 26, 2017 23:31 — forked from windows98SE/mikrotik.py
mikrotik basic login script
#!/usr/bin/env python
'''
mikrotik basic login script
'''
import re
import requests
from md5 import md5
USER = 'i am groot'
@popk
popk / tmux-cheatsheet.markdown
Created April 26, 2017 19:11 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@popk
popk / Platformio-Dockerfile
Created March 6, 2017 09:12 — forked from andrewpmiller/Platformio-Dockerfile
Platformio for RPi Dockerfile
FROM resin/rpi-raspbian
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y curl python
RUN python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)"
@popk
popk / Platformio-Dockerfile
Created March 6, 2017 09:12 — forked from andrewpmiller/Platformio-Dockerfile
Platformio for RPi Dockerfile
FROM resin/rpi-raspbian
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y curl python
RUN python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)"
@popk
popk / Platformio-Dockerfile
Created March 6, 2017 09:12 — forked from andrewpmiller/Platformio-Dockerfile
Platformio for RPi Dockerfile
FROM resin/rpi-raspbian
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y curl python
RUN python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)"
@popk
popk / Makefile
Created February 27, 2017 16:36 — forked from living42/Makefile
openwrt中能正常输出提示信息的mentohust
#
# Copyright (C) 2006-2011 Xmlad.com
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mentohust
@popk
popk / README.md
Created January 30, 2017 10:20 — forked from jmb/README.md
MQTT Data Subscriber for Dashing

Description

Dashing job to subscribe to MQTT messages.

MQTT is a lightweight publish/subscribe messaging transport. This job allows Dashing to subscribe to these messages and send them as events. There is no associated widget as the data can take any form - commonly numbers, but not necessarily. The script as laid out below sends events with value, current (the same contents) and last values so can be plugged directly into the Numbers or Meter widgets using the data-id in the dashboard file. The send_event could easily be modified if required.

Set up

Add to Gemfile:

@popk
popk / LICENSE.md
Created January 20, 2017 17:17 — forked from davefp/LICENSE.md
Weather Widget for Dashing

The MIT License (MIT)

Copyright (c) 2014 David Underwood

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@popk
popk / README.md
Created January 15, 2017 15:28 — forked from dsample/README.md
Node-RED Flows

These Node-RED snippets accompany a blog post I wrote about using Docker and Node-RED on a Raspberry Pi to integrate IoT devices.

@popk
popk / root-ro
Created January 12, 2017 01:43 — forked from niun/root-ro
Read-only Root-FS with overlayfs for Raspian
#!/bin/sh
#
# Read-only Root-FS for Raspian
#
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with
# overlayfs integrated in Linux Kernel >= 3.18.
#
# Originally written by Axel Heider (Copyright 2012) for Ubuntu 11.10.
# This version can be found here:
# https://help.ubuntu.com/community/aufsRootFileSystemOnUsbFlash#Overlayfs