Skip to content

Instantly share code, notes, and snippets.

Avatar
Halfway back to productivity

Dolores Portalatin meskarune

Halfway back to productivity
View GitHub Profile
@meskarune
meskarune / plants.md
Last active Jan 13, 2021
Plant Wish List
View plants.md

Orchids

  • Monnierara Millennium Magic 'Witchcraft'
  • Dendrobium pseudo equitans
  • Dendrobium Blue Happiness
  • Dendrobium blue twinkle
  • Aerangis fastuosa
  • Vanilla
  • Ludisia Discolor
  • Brassavola nodosa (species) or Brassavola little stars (more vigorous hybrid)
View ruuviconfig.md

Option 1 - INI file:

[time]
; timezone in TZ https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone = Europe/Helsinki

[F4:65:A0:A6:D9:71]
name = one
location = bedroom
View ruuvi-tables.sql
CREATE TABLE IF NOT EXISTS Sensors (
MAC_Address INT PRIMARY KEY NOT NULL,
Name TEXT NOT NULL,
Location TEXT NOT NULL);
CREATE TABLE IF NOT EXISTS Readings (
MAC_Address INT NOT NULL references sensors (MAC_Address),
Tempurature REAL NOT NULL,
Humidity REAL NOT NULL,
Pressure REAL NOT NULL,
View ble.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
from bleson import get_provider, Observer, logger
#import sqlite3
import datetime
import pytz
import threading
View gist:d0eaa367a7a62aa6606af63173106822
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
PowerlineSymbols.otf: "PowerlineSymbols" "Medium"
LiberationMono-Bold.ttf: "Liberation Mono" "Bold"
LiberationMono-Italic.ttf: "Liberation Mono" "Italic"
LiberationMono-BoldItalic.ttf: "Liberation Mono" "Bold Italic"
Fura Code Regular Nerd Font Complete Mono.otf: "FuraCode Nerd Font Mono" "Regular"
Fura Code Regular Nerd Font Complete Mono.ttf: "FuraCode Nerd Font Mono" "Regular"
Fura Code Retina Nerd Font Complete Mono.otf: "FuraCode Nerd Font Mono" "Retina"
Fura Code Retina Nerd Font Complete Mono.ttf: "FuraCode Nerd Font Mono" "Retina"
Fura Code Medium Nerd Font Complete Mono.otf: "FuraCode Nerd Font Mono" "Medium"
View gist:e16d029dd3fb10fb19333e9c06fa9c35
fc-cache -v
Font directories:
/usr/share/fonts
/usr/local/share/fonts
/home/meskarune/.local/share/fonts
/home/meskarune/.fonts
/usr/share/fonts/100dpi
/usr/share/fonts/75dpi
/usr/share/fonts/OTF
/usr/share/fonts/OpenImageIO
View combination-lock.md

Pull the lock up at 0

turn until it clicks

write down numbers, 12 in total

7 have .5 - they stop between whole numbers, they are decoys

5 are whole numbers

View irc.lua
irc.conn = function (irc_config)
-- the config would need irc_config.authtype, for now I'll set it for testing
-- this could be one of nicksserve, sasl or none
local authtype = 'sasl'
if authtype == 'sasl' then
irc.connection:send(('CAP REQ :sasl\r\n'))
end
irc.connection:send(('NICK %s\r\n'):format(irc_config.handle))
irc.connection:send(('USER %s * 8 :%s\r\n'):format(irc_config.ident, irc_config.gecos))
end
@meskarune
meskarune / vimrc
Created Jun 3, 2019
My Vim configuration
View vimrc
" Vim defaults rather than vi ones. Keep at top.
set nocompatible
" set Vim-specific sequences for RGB colors - needed with tmux
if &term =~# 'tmux\|tmux-256color'
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
endif
" Colors
" True color support
if $TERM =~# 'xterm-termite\|xterm-kitty'
View gist:12c463181279e81e085da6136c8d9bce
Dark Sky, currently supported in API:
"clear-day" = "☀"
"clear-night" = "🌕" or "🌙" or "🌑"
"rain" = "🌧" or "💧"
"snow" = "🌨" or "❄"
"sleet" = "🌧" or "💧"
"wind" = "💨" or "🌬️" or "🍃"
"fog" = "🌫" or "🌁"
"cloudy" = "☁"