Skip to content

Instantly share code, notes, and snippets.

View meskarune's full-sized avatar
Halfway back to productivity

Dolores Portalatin meskarune

Halfway back to productivity
View GitHub Profile
@meskarune
meskarune / weechatrelay-letsencrypt.md
Last active March 21, 2024 16:24
weechat relay with ssl certificates from let's encrypt
@meskarune
meskarune / cal.lua
Last active February 11, 2024 18:57
conky calendar and weather
#!/usr/bin/env lua
conky_color = "${color1}%2d${color}"
t = os.date('*t', os.time())
year, month, currentday = t.year, t.month, t.day
daystart = os.date("*t",os.time{year=year,month=month,day=01}).wday
month_name = os.date("%B")
@meskarune
meskarune / ical.md
Last active December 2, 2023 01:48
parsing ical file with python icalendar

Archwomen.ics file

BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VEVENT
CREATED:20170220T182458Z
LAST-MODIFIED:20170220T182458Z
DTSTAMP:20170220T182458Z
@meskarune
meskarune / vimrc
Last active November 3, 2023 07:58
simple functional vim status line - jellybeans theme colors
" status bar colors
au InsertEnter * hi statusline guifg=black guibg=#d7afff ctermfg=black ctermbg=magenta
au InsertLeave * hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
" Status line
" default: set statusline=%f\ %h%w%m%r\ %=%(%l,%c%V\ %=\ %P%)
" Status Line Custom
let g:currentmode={
@meskarune
meskarune / weather.lua
Created November 29, 2016 19:24
simple lua weather script, replace <API KEY> with your key from openweathermap.org
#!/usr/bin/lua
-- load the http module
http = require("socket.http")
-- load the json module
json = require("json")
weather = http.request("http://api.openweathermap.org/data/2.5/weather?id=4500546&units=imperial&APPID=<API KEY>")
response = json.decode(weather)
@meskarune
meskarune / cterm.txt
Created November 15, 2017 17:55
vim cterm colors
*cterm-colors*
NR-16 NR-8 COLOR NAME
0 0 Black
1 4 DarkBlue
2 2 DarkGreen
3 6 DarkCyan
4 1 DarkRed
5 5 DarkMagenta
6 3 Brown, DarkYellow
@meskarune
meskarune / plants.md
Last active July 23, 2023 20:39
Plant Wish List

Orchids

  • Monnierara Millennium Magic 'Witchcraft'
  • Dendrobium pseudo equitans
  • Dendrobium Blue Happiness
  • Dendrobium blue twinkle
  • Aerangis fastuosa
  • Vanilla - own
  • Ludisia Discolor - own
  • Brassavola nodosa (species) or Brassavola little stars (more vigorous hybrid)
@meskarune
meskarune / speech2text.sh
Created September 18, 2015 17:09
speech to text bash script using google's voice recognition api
#!/bin/bash
#http://blog.oscarliang.net/raspberry-pi-voice-recognition-works-like-siri/
echo “Recording… Press Ctrl+C to Stop.”
arecord -D “plughw:1,0” -q -f cd -t wav | ffmpeg -loglevel panic -y -i – -ar 16000 -acodec flac file.flac > /dev/null 2>&1
echo “Processing…”
wget -q -U “Mozilla/5.0” –post-file file.flac –header “Content-Type: audio/x-flac; rate=16000” -O – “http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium” | cut -d” -f12 >stt.txt
echo -n “You Said: ”
@meskarune
meskarune / ssh.yml
Created July 4, 2016 19:43
ansible playbook for setting up ssh
---
- hosts: new
vars:
- root_password: 'foo'
- minerva_password: 'bar'
tasks:
- name: Change root password
user:
name=root
@meskarune
meskarune / Jellybeans.colorscheme
Created August 6, 2018 02:04
color scheme for qterminal, you can save it in /usr/share/qtermwidget5/ccolor-schemes
[Background]
Bold=false
Color=18,18,18
[BackgroundIntense]
Bold=false
Color=34,34,34
[Color0]
Bold=false