Skip to content

Instantly share code, notes, and snippets.

@noghartt
noghartt / cc.md
Last active April 28, 2024 12:43
Resources to learn more about Computer Science and related stuffs
@dglaude
dglaude / 1st_readme.txt
Last active April 28, 2024 12:40
Home Assistant Rainbow Loop with Ikea Tradfri RGB light
Please find below the various piece of code that together control my RGB light to loop in Rainbow.
Every two seconds, it change from one colour to another based on the value of the second.
So it compute 30 differents RGB value in a "circle", all with the same Saturation and Brightness both forced to 1.0
The transition from one colour to another is done in one seconds.
The name of my Tradfri RGB light bulb is "light.couleur"
A link to my video on Twitter:
https://twitter.com/DavidGlaude/status/1059596285991366657
@4lgn
4lgn / arch-linux-cleanup.md
Last active April 28, 2024 12:36
Arch Linux Cleanup

Arch Linux Cleanup

Basic notes and commands/scripts to help ease the cleanup process of your Arch Linux installation.

Introduction

One of the big pros of using Arch Linux is obviously the reduced bloat on your system, as you are obviously the sole proprietor of such bloat.

However, just as a large software project that gets developed on constantly, we end up with technical debt - and when using your Arch system as a daily driver, you will probably acquire a certain amount of such "bloat debt" over the years.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timer Test</title>
<style>
.block {
width: 100px;
height: 100px;
// Using performance.now()
const performanceTimerStart = performance.now();
let performanceTimerElapsed;
// Set the duration for the test (10 seconds)
const testDuration = 10000; // 10 seconds in milliseconds
// Using setTimeout and clearInterval
let setTimeoutTimerStart;
let setTimeoutTimerElapsed;
@rickklaasboer
rickklaasboer / how-to-setup-plex-with-sonarr-radarr-jackett-overseerr-and-qbittorrent-using-docker.md
Last active April 28, 2024 12:32
How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

This is a guide that will show you how to setup Plex Media Server with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent with Docker. It is written for Ubuntu 20.04 but should work on other Linux distributions as well (considering supported distributions by Docker). It is also written for people who have some experience with Linux and Docker. If you are new to Docker, I recommend you to read the Docker documentation, and if you are new to Linux, I recommend you to read the Ubuntu documentation.

Now, let's get started!

Please note: This guide was written without considering hardlinking for Sonarr/Radarr. If you want to use hardlinking refer to #Hardlinking

Prerequisites

@uwezi
uwezi / 20240309_opencv.py
Last active April 28, 2024 12:31
[video inclusion in Manim] Include video objects picture-in-picture. #manim #animate #video #opencv #videomobject
import cv2
from PIL import Image, ImageOps
from dataclasses import dataclass
@dataclass
class VideoStatus:
time: float = 0
videoObject: cv2.VideoCapture = None
def __deepcopy__(self, memo):
return self
@AFAgarap
AFAgarap / autoencoder-pytorch.ipynb
Last active April 28, 2024 12:30
PyTorch implementation of an autoencoder.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 28, 2024 12:29
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname