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
@dseeni
dseeni / html.lua
Created September 30, 2023 20:20 — forked from soulik/html.lua
HTML/XML grammar LPEG parser for Lua
local lpeg = require 'lpeg'
local L = lpeg.locale()
local P,V,C,Ct,S,R,Cg,Cc =
lpeg.P, lpeg.V, lpeg.C, lpeg.Ct, lpeg.S, lpeg.R, lpeg.Cg, lpeg.Cc
local ws = S'\r\n\f\t\v '
local ws0 = ws^0
local ws1 = ws^1
local name = S'_ ' + L.digit + L.alpha
@meskarune
meskarune / github.md
Created March 25, 2019 18:43
git repo syncing

git remote add upstream https://github.com//.git

git fetch upstream

git checkout master

git merge upstream/master

git push

@shenghaoyang
shenghaoyang / blueEnable_ALARM_non_mainline.md
Last active October 3, 2024 20:32
Bluetooth support on Raspberry Pis running Arch Linux ARM with non-mainline kernel.

#1 Update: Recent Rapsberry Pi (downstream) kernel dt-overlays now exposes a config option "krnbt" that negates the need for all this.

Relevant PRs: raspberrypi/linux#3682

Enabling bluetooth

[Pi 3B (Non-Plus) / Pi Zero W ONLY]

As of kernel package, linux-raspberrypi-4.14.59-1, support for notifying the kernel of the

@meskarune
meskarune / ansiseq.txt
Created March 13, 2018 03:22
list of ansi escape sequences
╔══════════╦════════════════════════════════╦═════════════════════════════════════════════════════════════════════════╗
║ Code ║ Effect ║ Note ║
╠══════════╬════════════════════════════════╬═════════════════════════════════════════════════════════════════════════╣
║ 0 ║ Reset / Normal ║ all attributes off ║
║ 1 ║ Bold or increased intensity ║ ║
║ 2 ║ Faint (decreased intensity) ║ Not widely supported. ║
║ 3 ║ Italic ║ Not widely supported. Sometimes treated as inverse. ║
║ 4 ║ Underline ║ ║
║ 5 ║ Slow Blink ║ less than 150 per
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active June 5, 2025 09:23
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@meskarune
meskarune / weechat-relay-info.lua
Last active August 11, 2018 12:01
get version info from weechat relay
#!/usr/bin/lua
-- libraries: lua-socket, lua-sec, lua-argparse
-- weechat relay documentation: https://weechat.org/files/doc/stable/weechat_relay_protocol.en.html
local socket = require("socket")
local ssl = require("ssl")
local argparse = require "argparse"
-- Setup CLI options - docs: https://argparse.readthedocs.io/en/stable/index.html
local parser = argparse() {
name = "Weechat relay info",
@Rishabh04-02
Rishabh04-02 / myweechat.md
Created May 3, 2017 21:22 — forked from pascalpoitras/1.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf

Jelly Beans Terminal Color Theme

https://ptpb.pw/qUwt.png

Terminal Colors

@ornicar
ornicar / bgs
Created February 11, 2017 10:07
https://9to5mac.files.wordp2/galaxy.jpg
http://lichess1.org/assets/images/background/
http://www.uncalke.com/i/darth-maul-wallpaper-background.jpg
https://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-95299.jpg
http://lichess1.org/assets/images/background/landscape.jpg
http://wallpaper-gallery.net/image.php?pic=/images/purple-images/purple-images-19.jpg
http://i.imgur.com/gq3khFg.png
http://lichess1.org/assets/images/background/wood.jpg
http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-229265.jpg
http://wallpapercave.com/wp/8ltWi0l.jpg