Skip to content

Instantly share code, notes, and snippets.

View jpoppe's full-sized avatar
💭
🦄 🌴

Jasper Poppe jpoppe

💭
🦄 🌴
View GitHub Profile
@markusressel
markusressel / esphome_hx711_smart_scale.yaml
Last active March 12, 2024 05:05
ESPHome sample configuration for an HX711 powered Smart Scale including Auto-Tare functionality.
Moved to https://github.com/markusressel/ESPHome-Smart-Scale
@Zeinok
Zeinok / wine-breeze-dark-theme.md
Last active April 24, 2024 12:12
Breeze Dark theme for Wine

Made possible with this reddit post.

Install

wine regedit wine-breeze-dark.reg

Uninstall (Reset Wine color scheme)

wine regedit wine-reset-theme.reg

@stefanszymanski
stefanszymanski / pinentry-wrapper.md
Last active April 15, 2023 14:21
Pinentry wrapper

I started using this script as pinentry-program in my gpg-agent.conf when I wanted pass (https://www.passwordstore.org/) to work in qutebrowser.

I saved it as /usr/bin/pinentry-auto and always start qutebrowser with PINENTRY_USER_DATA=gtk qutebrowser.

#!/bin/bash

case $PINENTRY_USER_DATA in
 gtk) exec /usr/bin/pinentry-dmenu "$@" ;;
@ramlaxman
ramlaxman / Ansible Summary.md
Last active December 23, 2020 09:02
Ansible Summary.md

Ansible

It's an automation language, engine and orchestration tool developed by Red hat written in Python using YAML format for writing instructional scripts, affectionately known as "Ansible playbook".

It has an automation engine that runs Ansible playbooks. Cloud provider is present in the ecosystem (AWS, Azure, Google, DigitalOcean, OVH, etc…).

Pros

  • It is an agent-less tools In most scenarios, it use ssh as a transport layer. In some way you can use it as 'bash on steroids'
  • It is very easy to start. If you are familiar with ssh concept - you already know Ansible (ALMOST).
@danmikita
danmikita / init.vim
Created November 16, 2018 19:16
File preview with FZF, RG, Bat, and Devicons
nnoremap <silent> <leader>e :call Fzf_dev()<CR>
" ripgrep
if executable('rg')
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"'
set grepprg=rg\ --vimgrep
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0)
endif
" Files + devicons
@fnky
fnky / ANSI.md
Last active April 26, 2024 16:45
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@aykevl
aykevl / fire.py
Last active January 29, 2024 17:17
FastLED animations for MicroPython, see: https://forum.micropython.org/viewtopic.php?f=15&t=3749
import machine
import pixels
import array
import urandom
import time
# Source:
# https://github.com/FastLED/FastLED/blob/master/examples/Fire2012WithPalette/Fire2012WithPalette.ino
heatColors = array.array('L', [0x000000,
@boneskull
boneskull / README.md
Last active November 12, 2021 22:45
MicroPython on ESP32: MQTT and DS18B20 temperature sensor full example
@scottashipp
scottashipp / softwareengineering
Last active June 9, 2022 22:21
Software Engineering Quotes for fortune
# from https://codeburst.io/how-i-hacked-my-terminal-so-a-happy-whale-would-spout-software-quotes-at-me-6791e6c74fc6
%
Simple things should be simple, complex things should be possible.
The Wiki Way: Quick Collaboration on the Web, Bo Leuf, Ward
Cunningham
%
Simplicity is the soul of efficiency.
Austin Freeman
%