Skip to content

Instantly share code, notes, and snippets.

@ibLeDy
ibLeDy / Dockerfile
Created October 10, 2022 17:33 — forked from iagoalonsomrf/Dockerfile
Best practices for writing Dockerfiles
# Tags should be as specific as possible
FROM ubuntu:jammy-20220815
# Add metadata to the image
LABEL maintainer="ops@marfeel.com"
# Use diff-friendly syntax for multi-line commands
# Do not install non-necessary packages
# Sort dependencies
# Clean non-necessary files after installing dependencies
@ibLeDy
ibLeDy / .editorconfig
Created October 10, 2022 17:33 — forked from iagoalonsomrf/.editorconfig
Standardised editor configuration
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
[*.{json,py,tf}]
@ibLeDy
ibLeDy / .pre-commit-config.yaml
Created June 17, 2022 07:49 — forked from os-ia/.pre-commit-config.yaml
Example pre-commit config for Python projects
repos:
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-added-large-files
- id: check-ast
@ibLeDy
ibLeDy / pyproject.toml
Last active December 9, 2023 19:19 — forked from os-ia/pyproject.toml
Example configuration files for Python packages
[build-system]
requires = [
"setuptools",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 120
skip-string-normalization = true
@ibLeDy
ibLeDy / extramaus.c
Last active December 9, 2023 19:20 — forked from dvdantunes/extramaus.c
ExtraMaus is a tool that shows an additional mouse cursor. Useful for VLC recording. Author: Dodger Tools
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <X11/extensions/shape.h>
// Include the mouse cursor xbm directly
#define mouse_width 12
@ibLeDy
ibLeDy / mute_spotify_ads.sh
Last active December 20, 2023 11:23 — forked from pcworld/_README.md
Linux Spotify Ad Mute
#!/usr/bin/env bash
ADMUTE=0
PAUSED=0
get_pactl_nr(){
pactl list | grep -E '(^Sink Input)|(media.name = \"Spotify\"$)' | cut -d \# -f2 \
| grep -v Spotify
}