Skip to content

Instantly share code, notes, and snippets.

View brunohcastro's full-sized avatar

Bruno Henrique de Castro brunohcastro

View GitHub Profile
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 14, 2024 15:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@nlamirault
nlamirault / gist:38cfc46682eaeb28709e
Created September 21, 2014 14:00
offlineimap-notify.sh
#!/usr/bin/bash
#
# Script to notify user for new mails.
# Crontab ex:
# */3 * * * * ~/bin/offlineimap-notify.sh
#
#run OfflineIMAP once, with quiet interface
offlineimap -o -q -u quiet
@brunohcastro
brunohcastro / esc-pos-image.py
Created September 22, 2015 17:04 — forked from scruss/esc-pos-image.py
print image files to thermal printer ESC-POS on stdout
#!/usr/bin/python
# esc-pos-image.py - print image files given as command line arguments
# to simple ESC-POS image on stdout
# scruss - 2014-07-26 - WTFPL (srsly)
# if you want a proper CUPS driver for a 58mm thermal printer
# that uses this command set, go here:
# https://github.com/klirichek/zj-58
import sys
@thisismitch
thisismitch / le-renew-webroot
Last active September 5, 2024 01:55
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
#!/bin/bash
web_service='nginx'
config_file="/usr/local/etc/le-renew-webroot.ini"
le_path='/opt/letsencrypt'
exp_limit=30;
if [ ! -f $config_file ]; then
echo "[ERROR] config file does not exist: $config_file"