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
#!/usr/bin/env bash
echo " $(tput setaf 7)█$(tput bold)█ $(tput sgr0)White"
echo " $(tput setaf 0)█$(tput bold)█ $(tput sgr0)Black"
echo " $(tput setaf 1)█$(tput bold)█ $(tput sgr0)Red"
echo " $(tput setaf 2)█$(tput bold)█ $(tput sgr0)Green"
echo " $(tput setaf 3)█$(tput bold)█ $(tput sgr0)Yellow"
echo " $(tput setaf 4)█$(tput bold)█ $(tput sgr0)Blue"
echo " $(tput setaf 5)█$(tput bold)█ $(tput sgr0)Magenta"
echo " $(tput setaf 6)█$(tput bold)█ $(tput sgr0)Cyan"
#!/usr/bin/env bash
FG=(7 0 1 2 3 4 5 6)
BG=(0 8 1 9 2 10 3 11 4 12 5 13 6 14 7 15)
LINE=""
COLOR=""
for bg_color in ${BG[@]}; do
COLOR="$COLOR$(tput setab $bg_color) $(tput sgr0)"
done

The first one just shows cloning, adding a file and then pushing the commits:

unicode: https://ptpb.pw/t/1kkA

no-unicode: https://ptpb.pw/t/gkoq

The next video is how to use rebase when the code on the server is ahead of the local and you have commits you want to push. Unlike merge it helps to preserve commit history.

unicode: https://ptpb.pw/t/pKxl

@meskarune
meskarune / weechatrelay-letsencrypt.md
Last active March 21, 2024 16:24
weechat relay with ssl certificates from let's encrypt
# http://www.robotstxt.org/
# https://developers.google.com/webmasters/control-crawl-index/docs/robots_txt
User-agent: *
Disallow: /~* # block user web directories
Disallow: /private/*
Crawl-delay: 60 # slow bots down
Disallow: /*.pdf$ # block PDFs
virtualenv:
pip freeze
click==6.7
feedparser==5.2.1
Flask==1.0.2
icalendar==4.0.2
itsdangerous==0.24
Jinja2==2.10
Markdown==2.6.11
local/python2-acme 0.26.1-1
ACME protocol implementation in Python
local/python2-appdirs 1.4.3-2
A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
local/python2-asn1crypto 0.24.0-2
Python ASN.1 library with a focus on performance and a pythonic API
local/python2-beautifulsoup3 3.2.1-3
A Python HTML/XML parser designed for quick turnaround projects like screen-scraping
local/python2-cffi 1.11.5-2
Foreign Function Interface for Python calling C code
@meskarune
meskarune / Archwomen.ics
Created August 27, 2018 14:23
python icalendar .ics parser that prints out 3 months worth of events
BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VEVENT
CREATED:20170220T182458Z
LAST-MODIFIED:20170220T182458Z
DTSTAMP:20170220T182458Z
UID:a79d1ffd-f62b-4c14-98b7-22eaa494a7fd
SUMMARY:Arch Linux Women Monthly Project Meeting
RRULE:FREQ=MONTHLY;BYDAY=2SA
@meskarune
meskarune / worldofdew.md
Last active August 23, 2018 01:54
kobayashi issa

In Japanese literary tradition, drops of dew are used symbolically to represent human life and its transience, in reference to the Buddhist allegory between the fleeting nature of dewdrops and human life.

“… a dew drop on the tip of a blade of grass will quickly vanish at sunrise … human life (is) like a dew drop. It is short, limited, and brief; it is full of suffering, full of tribulation. This, one should wisely understand. One should do good and live a pure life; for none who is born can escape death.” (Bhikkhu Bodhi, In the Buddha's Words)

In Buddhist teachings, one should not grow attached to material things or people. Life is fleeting…like a dew drop, and this reality should be accepted and contemplated. Accomplishing this detachment is a major goal of Buddhist practitioners, and a subject that is often touched upon in Asian literature.

>“I will die, you will die…That’s all that my guru taught me, and that’s all

@meskarune
meskarune / untar.sh
Created August 12, 2018 22:08
function to untar for bashrc/zshrc
function x() {
if [ -f "$1" ] ; then
case "$1" in
*.tar.bz2) tar xjf "$1" ;;
*.tar.gz) tar xzf "$1" ;;
*.tar.Z) tar xzf "$1" ;;
*.bz2) bunzip2 "$1" ;;
*.rar) unrar x "$1" ;;
*.gz) gunzip "$1" ;;
*.jar) unzip "$1" ;;