This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Based on this https://gist.github.com/bashbunni/3880e4194e3f800c4c494de286ebc1d7 | |
# Requirements: notify-send (should ship with your distro), lolcat, timer (https://github.com/caarlos0/timer) | |
# Example of usage: ./pomodoro.sh work | |
# | |
set -euo pipefail | |
declare -A pomo_options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: items = document.getElementsByClassName("task_list_item__content"); | |
items[Math.floor(Math.random() * items.length)].click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
const token = "TOKEN"; | |
fetch("https://api.todoist.com/rest/v2/tasks", { | |
method: "GET", | |
headers: { | |
Authorization: `Bearer ${token}`, | |
}, | |
}) | |
.then((response) => { | |
if (!response.ok) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
ID_WIDTH=$(docker ps --format "{{.ID}}" | awk '{ print length }' | sort -nr | head -n 1) | |
NAME_WIDTH=$(docker ps --format "{{.Names}}" | awk '{ print length }' | sort -nr | head -n 1) | |
IMAGE_WIDTH=$(docker ps --format "{{.Image}}" | awk '{ print length }' | sort -nr | head -n 1) | |
print_containers() { | |
docker ps --format "{{.ID}} {{.Names}} {{.Image}}" | while read -r id name image; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function() { | |
const token = 'TOKEN_ID'; | |
const url = window.location.href; | |
const title = document.title; | |
const content = `[${title}](${url})`; | |
const data = { | |
'content': content, | |
'project_id': PROJECT_ID // Only if you want to send to specific project | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[10pt,a4paper,twoside]{article} | |
%===================================================== | |
% FONTS | |
%===================================================== | |
\usepackage[utf8]{inputenc} | |
\usepackage[spanish]{babel} | |
\usepackage{mathpazo} | |
\usepackage{microtype} | |
\usepackage{amsmath, amsthm, amssymb, bm, mathtools} |