Skip to content

Instantly share code, notes, and snippets.

View Torrakanor611's full-sized avatar
:octocat:
Is it just me or is getting crazier out there

Pedro Abreu Torrakanor611

:octocat:
Is it just me or is getting crazier out there
  • Aveiro, Portugal
View GitHub Profile
@Lzok
Lzok / cluster-leds.py
Last active March 22, 2023 23:09
Script to be used in my Raspberry Pi 4 cluster to show information about CPU Load, Ram Load and CPU Temperature.
#!/usr/bin/env python3
"""
=============== DISCLAIMER ===================
The original library (blinkt) belongs to Pimoroni Company.
https://github.com/pimoroni/blinkt.
I just adapted some examples to meet my needs.
=============== END DISCLAIMER ===============
@dcts
dcts / workbench.colorCustomizations.json
Created April 14, 2020 16:51 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
@ricferr
ricferr / gist:90583f608f0b0ae9c3cf6833be04ab85
Created May 24, 2018 09:13
How to create a systemd service for python script with virtualenv
[Unit]
Description=Some description
After=network.target
[Service]
Type=simple
User=user
WorkingDirectory=/home/user/somedir
Environment=PYTHONPATH=/home/user/somedir
ExecStart=/home/user/venv/bin/python script.py
@Geoyi
Geoyi / install virtualenv ubuntu 16.04.md
Created September 16, 2017 12:19 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 

Kafka installation with systemd

0. Create kafka user

sudo adduser kafka
sudo adduser kafka sudo
su -l kafka

1. Download and Install kafka archive