Skip to content

Instantly share code, notes, and snippets.

@devnowcommit
devnowcommit / wake-up-light-alarm-with-sunrise-effect.yaml
Created March 8, 2023 08:01 — forked from sbyx/wake-up-light-alarm-with-sunrise-effect.yaml
Home Assistant Blueprint: Wake-up light alarm with sunrise effect
blueprint:
name: Wake-up light alarm with sunrise effect
description: 'A wake-up light alarm with a brightness and color temperature sunrise
effect. Note: Requires date_time_iso sensor in configuration, not manually executable!'
domain: automation
input:
light_entity:
name: Wake-up light entity
description: The light to control. Turning it off during the sunrise will keep
it off. Color temperature range is auto-detected.
@devnowcommit
devnowcommit / settings.md
Created December 2, 2022 16:08
PMR446.txt
CH Frequency
1 446.00625
2 446.01875
3 446.03125
4 446.04375
5 446.05625
6 446.06875
7 446.08125
8 446.09375
9 446.10625

Baofeng bf-t1 default frequency

Channel Frequency DCS /CTCSS
ch1 437.150 ct 69.3
ch2 439.250 ct 100.0
ch3 441.750 ct 151.4
ch4 443.450 ct 203.5
ch5 445.550 ct 241.8
@devnowcommit
devnowcommit / arrayBufferToBase64.js
Created December 21, 2021 18:47 — forked from subhodi/arrayBufferToBase64.js
arrayBufferToBase64 and vice versa
function arrayBufferToBase64(buffer) {
var binary = '';
var bytes = new Uint8Array(buffer);
var len = bytes.byteLength;
for (var i = 0; i < len; i++) {
binary += String.fromCharCode(bytes[i]);
}
return window.btoa(binary);
}
@devnowcommit
devnowcommit / .muttrc
Created December 5, 2019 14:59 — forked from villeheilala/.muttrc
Minimal configuration for Neomutt/Mutt and Gmail/G Suite
# Minimal configuration for Neomutt/Mutt and Gmail/G Suite
# Decrypts passwords quietly
# see: https://wiki.archlinux.org/index.php/Mutt#Passwords_management
source "gpg -dq $HOME/.my-pwds.gpg |"
# Username and password for your Gmail/G Suite account
set imap_user = "john.snow@winterfell.ext"
# Password assigned from decrypted file
set imap_pass = $my_pass
https://raw.githubusercontent.com/alwei/dotfiles/3760650625663f3b08f24bc75762ec843ca7e112/.vimrc
https://raw.githubusercontent.com/anekos/my-config/0afcd78455743a4d3fad31674136428052dc6ebe/.vimrc
https://raw.githubusercontent.com/sigwyg/dotfiles/8c70c4032ebad90a8d92b76b1c5d732f28559e40/.vimrc
https://raw.githubusercontent.com/basyura/vimfiles/ee086f25b8c58b8ea6bf025d26ebc11ae50e6ca1/rc/vimrc
https://raw.githubusercontent.com/osyo-manga/vimrc/9ef0ca9757abcdaa11c76024aa551f0b473624bf/vimrcs/default/vimrc
https://raw.githubusercontent.com/rhysd/dotfiles/8228ebaeab0e022ee7161d0eb9fc633876b0be41/vimrc
https://raw.githubusercontent.com/ebc-2in2crc/vimrc/f1ed88bf0d3668ebf8d702def40625d435f545cd/_vimrc
https://raw.githubusercontent.com/rbtnn/reading-vimrc/a92dae61200f50bd771f3a30c4f5fa06738c9aac/.vimrc
https://raw.githubusercontent.com/ujihisa/config/8c513ac93429e27ce27e6020a7d48e728b809169/_vimrc
https://gist.githubusercontent.com/thinca/3675965/raw/5739da5abedef838ed49b8328d9b29e3dd78bed4/bundle.vim
@devnowcommit
devnowcommit / .vimrc
Created February 25, 2019 06:00
Vim config.
syntax on " Color syntax on
colorscheme desert " Scheme of color syntax
set tabstop=2 " The width of a tab is set to 2
" Still it is a \t; it is just that
" vim will interpret it to be having
" a width of 2
set shiftwidth=2 " Indents will have a width of 2
set softtabstop=2 " Sets the number of columns for a tab
set expandtab " Expand tabs to spaces
set nowrap " No wrapping
# Run this in Sonic Pi: https://sonic-pi.net/
# Sick of Losing Soulmates by Dodie: https://youtu.be/mHUIoikgKT0
# Inspired by Deerful's cover: https://youtu.be/sfaEBsloiQk
use_synth :pluck
use_bpm 75
define :tab do |t|
last = nil
t.split('').map.with_index do |n, i|
@devnowcommit
devnowcommit / .vimrc
Created July 9, 2018 06:10 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on