Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
until ["ls /dev/ttyUSB0" & pgrep gimx]
do
/bin/ln -s "/dev/ttyAMA0" "/dev/ttyUSB0"
sleep 1
/usr/bin/gimx -c "LogitechG25_W10_G29.xml" -p "/dev/ttyUSB0"
sleep 1
done
echo "Gimx avviato!"
#!/bin/bash
#
# This version uses September 2017 august stretch image, please use this image
#
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
#!/bin/sh
# Kill existing Skype Session
kill -9 `pgrep -f Skype`
# Change into the application data folder
cd ~/Library/Containers/com.microsoft.SkypeForBusiness/Data/Library/Application\ Support/com.microsoft.SkypeForBusiness
# Backup db
cp DataStore.sqlite DataStore.sqlite.bk_$(date +%Y-%m-%d)
# Remove all Conversations
sqlite3 DataStore.sqlite "delete from Conversation"
# Remove all Conversation items
#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
# Hello, this program is written in Python - http://python.org
programname = 'html2csv - version 2002-09-20 - http://sebsauvage.net'
import sys, getopt, os.path, glob, HTMLParser, re
try: import psyco ; psyco.jit() # If present, use psyco to accelerate the program
except: pass
#!/bin/bash
mkdir ~/Desktop/tmp
cd ~/Desktop/tmp
git clone https://github.com/rbsec/sslscan.git
cd sslscan
#wget https://www.openssl.org/source/openssl-1.0.2d.tar.gz
#tar -xzvf openssl-1.0.2d.tar.gz
#mv openssl-1.0.2d/ openssl
xcode-select --install
#cd openssl
blueprint:
domain: automation
name: Philips Hue v2 Smart Dimmer Switch and Remote
description: Philips Hue v2 Smart Dimmer Switch and Remote (RWL022) using Zigbee Home Automation
input:
zha_device:
name: Philips Hue v2 Smart Dimmer Switch and Remote
description: List of available Philips Hue v2 Smart Dimmer Switch and Remote devices
selector:
device: