CLICK ME
yes, even hidden code blocks!
print("hello world!")
### Keybase proof | |
I hereby claim: | |
* I am ayharano on github. | |
* I am ayharano (https://keybase.io/ayharano) on keybase. | |
* I have a public key whose fingerprint is 20DA DC22 2C3B 1846 C497 0F13 1185 F517 9178 0BCC | |
To claim this, I am signing this object: |
#!/usr/bin/env ruby | |
require 'fileutils' | |
require 'json' | |
require 'pathname' | |
require 'uri' | |
require 'down' | |
require 'rest-client' |
#!/usr/bin/env python3 | |
"""Generate favicon using realfavicongenerator.net non-interactive API.""" | |
import json | |
import os | |
from pathlib import Path | |
import shutil | |
import sys | |
import tempfile | |
from urllib.parse import urlparse |
#!/bin/bash | |
set -eu | |
# URL of a website without https | |
HTTP_URL='pudim.com.br' | |
SLEEP_SECONDS_AFTER_RESETING_WIFI='30' | |
# Binaries' full path | |
WHICH="$(which which)" | |
CURL="$("${WHICH}" curl)" |
Verifying that "ayharano.id" is my Blockstack ID. https://onename.com/ayharano |
#!/usr/bin/python3 | |
""" | |
Based on XKCD-style passphrase recipe from | |
https://docs.python.org/3/library/secrets.html#recipes-and-best-practices. | |
""" | |
import secrets | |
TRUNCATE = 64 |
#!/usr/bin/env python3 | |
"""A `grep`-like copycat to match before and after matched lines. | |
""" | |
import re | |
def grep(pattern, string, before=0, after=0): | |
"""A grep-like copycat to match before and after matched lines, | |
if requested. |
#!/usr/bin/env bash | |
URL_PREFIX='https://raw.githubusercontent.com/github/gitignore/master/' | |
URL_SUFFIX='.gitignore' | |
GLOBAL_IGNORE=~/.config/git/ignore | |
mkdir -p "${GLOBAL_IGNORE}" && rmdir "${GLOBAL_IGNORE}" | |
echo -n > "${GLOBAL_IGNORE}" | |
pushd /tmp | |
for IGNORE in {Linux,Windows,macOS,Vim,Emacs,JetBrains,SublimeText,VisualStudioCode,Ansible,VirtualEnv}; do |
#!/usr/bin/env bash | |
INPUT_FILE="${1}" | |
TIME_START="${2}" # expected format HH:MM:SS | |
TIME_DURATION="${3}" # expected format HH:MM:SS | |
OUTPUT_FILE="${4}" | |
BASE="$(basename "${INPUT_FILE}")" | |
SHM_AUDIO_FILE="/dev/shm/audio_${BASE}" | |
SHM_VIDEO_FILE="/dev/shm/video_${BASE}" |