Skip to content

Instantly share code, notes, and snippets.

View rigaspapas's full-sized avatar

Rigas Papathanasopoulos rigaspapas

View GitHub Profile
FROM node:10-latest
EXPOSE 3000
RUN mkdir app
WORKDIR app
COPY . .
RUN npm install
RUN chmod a+x docker-entrypoint.sh
@rigaspapas
rigaspapas / color_rain.py
Created April 5, 2017 22:04
A color rain effect for Corsair RGB keyboards
from cue_sdk import CUESDK, CAM, CLK, CorsairLedColor
import os
from random import choice
import time
# The directory where CUESDK is located
SDK_DIR = "D:\\Portable Apps\\CUEAudioVisualizer\\x86"
# The filename of the SDK dll file
SDK_DLL = "CUESDK_2015.dll"
# How much each animation will last (in 1/100 seconds)
@rigaspapas
rigaspapas / reflect_screen.py
Last active March 5, 2017 15:48
A Python script that reflect the screen's image to your Corsair RGB keyboard
# CUE SDK from: https://github.com/10se1ucgo/cue_sdk
from cue_sdk import *
# Pillow library: https://pillow.readthedocs.io/en/4.0.x/
import ImageGrab
import os
import time
# Setup the keys matrix
keys = [['Escape', 'F1', 'F2', 'F3', 'F4', 'F5', 'F6', 'F7', 'F8', 'F9', 'F10', 'F11', 'F12'],
['GraveAccentAndTilde', '_1', '_2', '_3', '_4', '_5', '_6', '_7', '_8', '_9', '_0', 'MinusAndUnderscore', 'EqualsAndPlus', 'Backspace'],