Skip to content

Instantly share code, notes, and snippets.

View sysarcher's full-sized avatar
🦀
learning everyday!!

T sysarcher

🦀
learning everyday!!
  • Germany
View GitHub Profile
@sysarcher
sysarcher / nmap-helper.md
Created August 21, 2018 11:26
Get MAC addr using nmap
sudo nmap -n -sn 10.62.226.159/24 | awk '/Nmap scan report/{printf $5;printf " ";getline;getline;print $3;}' 
@sysarcher
sysarcher / .bashrc
Created April 26, 2019 07:44
Default Ubuntu .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@sysarcher
sysarcher / i3-config
Created June 13, 2019 20:46
i3 config that I'm using
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@sysarcher
sysarcher / mqtt-to-influx-bridge.py
Created June 27, 2019 16:40
A simple bridge I was testing
"""A MQTT to InfluxDB Bridge
This script receives MQTT data and saves those to InfluxDB.
"""
#import re
import json
import paho.mqtt.client as mqtt
r1---sn-cvh7knez.googlevideo.com
r2---sn-cvh7knez.googlevideo.com
r3---sn-cvh7knez.googlevideo.com
r4---sn-cvh7knes.googlevideo.com
r5---sn-cvh7knez.googlevideo.com
r6---sn-cvh7knez.googlevideo.com
r7---sn-cvh7knez.googlevideo.com
r8---sn-cvh7knez.googlevideo.com
r9---sn-cvh7knez.googlevideo.com
r10---sn-cvh7knez.googlevideo.com
#import logging
import asyncio
import sys
sys.path.insert(0, "..")
from asyncua import ua, Server
from asyncua.common.methods import uamethod
{
"flags": {
"show-welcome-banner": {
"state": "ENABLED",
"variants": {
"on": true,
"off": false
},
"defaultVariant": "off"
},