Skip to content

Instantly share code, notes, and snippets.

@Landrash
Landrash / Send infrared commands from the Arduino to the iRobot Roomba
Last active August 29, 2015 14:28 — forked from probonopd/Send infrared commands from the Arduino to the iRobot Roomba
Send infrared commands from the Arduino to the iRobot Roomba. Use a transistor to drive the IR LED from pin D3 for maximal range.
#include <IRremote.h>
/*
Send infrared commands from the Arduino to the iRobot Roomba
by probono
2013-03-17 Initial release
@Landrash
Landrash / multisensor_zwave_config.py
Last active August 19, 2016 06:01
Python configure multi sensor script for zwave by robbiet480
from openzwave.option import ZWaveOption
options = ZWaveOption('/dev/zwave', config_path='/home/pi/python-openzwave/openzwave/config', user_path='.', cmd_line='')
# or /usr/local/share/python-openzwave/config if installed
# /home/pi/python-openzwave/openzwave/config if testing
options.set_append_log_file(False)
options.set_console_output(True)
options.set_save_log_level('Debug')
options.set_logging(False)
options.lock()
from openzwave.network import ZWaveNetwork
@Landrash
Landrash / Send infrared commands from the Arduino to the iRobot Roomba
Created September 11, 2016 11:31 — forked from joeyvanderbie/Send infrared commands from the Arduino to the iRobot Roomba
Combined IR Roomba controll with ethernet webserver code from W.A. Smith, http://startingelectronics.com Extended script to send command 2 times, since the first command is most of the times not received by the Roomba. The short delay overwrites the first command if this is received, resulting in a total of 1 command excution of the Roomba, as d…
/*--------------------------------------------------------------
Program: eth_websrv_LED
Description: Arduino web server that serves up a web page
allowing the user to control an LED
Hardware: - Arduino Uno and official Arduino Ethernet
shield. Should work with other Arduinos and
compatible Ethernet shields.
- LED and resistor in series connected between
@Landrash
Landrash / quickdeb.sh
Created November 27, 2016 16:27 — forked from probonopd/quickdeb.sh
Quickly generate a deb
#!/bin/bash
# set -e
PROGRAMNAME=test
VERSION=0.1
ARCH=amd64
OUTPUT_FILENAME="${PROGRAMNAME}_${VERSION}_${ARCH}.deb"
echo "creating deb for '${PROGRAMNAME}'; output '${OUTPUT_FILENAME}'"
@Landrash
Landrash / openzwave-hassbian.sh
Last active February 3, 2019 02:52
Install script for openzwave for hassbian
#!/bin/bash
# Install by running:
# wget -Nnv https://gist.githubusercontent.com/Landrash/8afefca92bfb96c294b5501fc52f4cbc/raw/89ff001897859d70776d9b13e364a9dacc3861a9/openzwave-hassbian.sh && sudo bash openzwave-hassbian.sh
echo "Open Z-Wave Installer for Hassbian"
echo "Copyright(c) 2016 Dale Higgs <https://gitter.im/dale3h>"
echo
echo "Running apt-get preparation"
@Landrash
Landrash / automation.yaml
Created March 3, 2017 11:48
notification when home.
- alias: 'Presence Notifications'
initial_state: 'off'
trigger:
- platform: state
entity_id: device_tracker.pixel_pixel, device_tracker.iphone_iphone
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.stop_automation
@Landrash
Landrash / install_homebridge.sh
Created April 4, 2017 05:44 — forked from lindsaymarkward/install_homebridge.sh
Install homebridge on hassbian
#!/bin/bash
echo
echo "Homebridge install script for Hassbian"
echo
if [ "$(id -u)" != "0" ]; then
echo "This script must be run with sudo. Use \"sudo ${0} ${*}\"" 1>&2
exit 1
fi

WannaCry|WannaDecrypt0r NSA-Cyberweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm.

SECURITY BULLETIN AND UPDATES HERE: https://technet.microsoft.com/en-us/library/security/ms17-010.aspx

@Landrash
Landrash / AT+HELP
Created September 6, 2017 18:23
CC2541
********************************************************************
* Command Description *
* ---------------------------------------------------------------- *
* AT Check if the command terminal work normally *
* AT+RESET Software reboot *
* AT+VERSION Get firmware, bluetooth, HCI and LMP version *
* AT+HELP List all the commands *
* AT+NAME Get/Set local device name *
* AT+PIN Get/Set pin code for pairing *
* AT+PASS Get/Set pin code for pairing *
@Landrash
Landrash / scene.yaml
Created January 4, 2018 17:46
Good Night Scene
scene:
- name: Good Night
entities:
light.tradfri_bulb_e14_ws_opal_400lm_2:
state: on
brightness: 25
color_temp: 455
light.tradfri_bulb_e14_ws_opal_400lm:
state: on
brightness: 25