Skip to content

Instantly share code, notes, and snippets.

View jfig's full-sized avatar

João Figueiredo jfig

View GitHub Profile
@rafaelcpalmeida
rafaelcpalmeida / emailSender.sh
Last active May 5, 2022 07:32
Send emails with text from a textbox called from crontab
#!/bin/bash
# /usr/local/bin/reportSender.sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
export DISPLAY=:0.0
export XAUTHORITY=/home/USER/.Xauthority
MAIL="$(zenity --entry --title="Report Sender" --text="O que é que fizeste hoje?")"
if [ -z "$MAIL" ]
@bollwyvl
bollwyvl / README.md
Last active August 7, 2023 08:33
RevealJS SVG fragment presenter

SVG fragment builds for reveal.js

Basic use case

  • make an SVG (maybe in inkscape)
    • save it someplace reveal.js can find it (maybe next to your presentation)
    • figure out how to identify them (maybe use named layers)
  • in reveal.js/index.html
    • add reveal-svg-fragment.js as a dependency
    • in a <section> of reveal.js markup
  • add data-svg-fragment="" to something, e.g.
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active July 4, 2024 17:31
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1