I hereby claim:
- I am membrive on github.
- I am membrive (https://keybase.io/membrive) on keybase.
- I have a public key whose fingerprint is 1818 5A13 A3AE 9FF6 0F59 B1E5 FB09 E8A1 CE1F 8C20
To claim this, I am signing this object:
| local wezterm = require 'wezterm' | |
| local config = wezterm.config_builder() | |
| config.initial_rows = 26 | |
| config.initial_cols = 100 | |
| config.window_background_opacity = 0.80 | |
| config.macos_window_background_blur = 10 | |
| config.font = wezterm.font { |
| #!/bin/sh | |
| echo 'Updating Oh-My-ZSH...' | |
| cd ~/.oh-my-zsh | |
| git pull | |
| echo '' | |
| echo 'Updating spaceship-prompt...' | |
| cd ~/.oh-my-zsh/custom/themes/spaceship-prompt | |
| git pull |
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| """Check the remaining days for the expiration of a domain's SSL certificate.""" | |
| from datetime import datetime | |
| import argparse | |
| import socket | |
| import ssl | |
| CA_CERTS = './cacert.pem' |
| #!/usr/bin/python | |
| # | |
| # Fernando Membrive | |
| # | |
| # Checks if the files in a directory, with a certain filename pattern, | |
| # exceed a given size. | |
| # | |
| import os | |
| import fnmatch |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| from telethon.sync import TelegramClient | |
| from telethon.tl.types import PeerUser, UserStatusOffline | |
| from prettytable import PrettyTable | |
| # Generate API_ID, API_HASH and SHORT_NAME in https://my.telegram.org/apps | |
| API_ID = '' | |
| API_HASH = '' | |
| SHORT_NAME = '' |
| #!/usr/bin/env python3 | |
| from subprocess import run, PIPE | |
| branch_proc = run(['git', 'branch', '--show-current'], | |
| stdout=PIPE, | |
| universal_newlines=True, | |
| cwd='.') # set CWD to the branch directory | |
| if branch_proc.returncode == 0: |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
| const https = require('https'); | |
| const url = require('url'); | |
| const slack_url = 'https://hooks.slack.com/services/SET_YOUR_SERVICE_URL'; // set your service URL here | |
| const slack_req_opts = url.parse(slack_url); | |
| slack_req_opts.method = 'POST'; | |
| slack_req_opts.headers = { | |
| 'Content-Type': 'application/json' | |
| }; | |
| exports.handler = function(event, context) { |
| // goroutines errors example | |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "time" | |
| ) |