Skip to content

Instantly share code, notes, and snippets.

@Garfonso
Garfonso / iobroker-aura.js
Last active November 7, 2020 23:17
Control Asus Aura LEDs from ioBroker
//use aura-sdk to switch aura light with iobroker :-)
//based on this: https://github.com/DanielRamosAcosta/aura-sdk/blob/master/example/rainbow.js
//known issue: The aura-sdk is not very reliable. I did not find a way to solve this, sadly. Sometimes it just won't switch at all.
//needs 32bit. For windows:
// * install iobroker instance using installer.
// * note node.js version that get's installed (or look it up after install by running node --version in iobroker terminal)
// * download the same node.js version in 32Bit (x86) from here: https://nodejs.org/dist/ as zip file,
// * make sure you download the file containinig win-x86, for example: https://nodejs.org/dist/v10.17.0/node-v10.17.0-win-x86.zip
// * go to the ioBroker-instance folder and rename the nodejs subfolder do nodejs_64
// * create a new folder named nodejs -> extract the zip contents there
@nottux
nottux / opencl-amd_aur_ubuntu.bash
Last active October 19, 2023 20:23
bash implementation of opencl-amd AUR package, Install opencl amdgpu amdgpu-pro opencl only. Supports ubuntu and others with standard prefix
#!/bin/bash
# DO NOT run the line 167 standalone. It will remove the necessary files besides the junk!
if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h\|\-\-no\-deb\|\-\-no\-install\|\-\-no\-cleaning\|\-\-assume\-debian"
then :
else echo wrong entry\(ies\) !
help=yes
fi
if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h" || [ "$help" = yes ]
@kitek
kitek / gist:1579117
Created January 8, 2012 17:50
NodeJS create md5 hash from string
var data = "do shash'owania";
var crypto = require('crypto');
crypto.createHash('md5').update(data).digest("hex");