Skip to content

Instantly share code, notes, and snippets.

View lgallindo's full-sized avatar

Lucas Gallindo lgallindo

  • Pernambuco Federal University
  • Recife - PE, Brazil
View GitHub Profile
@lgallindo
lgallindo / criar_imagem.py
Created January 11, 2025 00:58 — forked from gcrsaldanha/criar_imagem.py
Criando imagens com Python (Pillow)
# Para mais conteúdos de Python, acesse: https://instagram.com/gabrielsaldanha.dev
# É necessário ter Pillow instalado:
# $ python3 -m pip install Pillow
from PIL import Image, ImageDraw, ImageFont
image = Image.new("RGB", (1080, 1080), color=(41, 46, 48))
img_draw = ImageDraw.Draw(image)
# Arquivo de fonte Helvetica.ttc deve estar no mesmo diretório
# que o programa está sendo executado
@lgallindo
lgallindo / README.md
Created September 29, 2024 16:52 — forked from mahemoff/README.md
Vim Terminal Mode - A short introduction

Vim has a Terminal Mode!

Since v8.1 (May 2018), Vim has shipped with a built-in terminal. See https://vimhelp.org/terminal.txt.html or type :help terminal for more info.

Why use this? Mainly because it saves you jumping to a separate terminal window. You can also use Vim commands to manipulate a shell session and easily transfer clipboard content between the terminal and files you're working on.

Key Bindings

@lgallindo
lgallindo / fuckForticlient.sh
Created July 18, 2024 15:22 — forked from nonamed01/fuckForticlient.sh
fuckForticlient, a command-line client to connect to SAML fortivpn servers by using openfortivpn and the --cookie-in-stdin parameter
#!/bin/bash
# Uncomment the following line to debug the script:
#set -x
#####################################################################################
# fuckForticlient.sh
#
# Script to authenticate against Fortinet SAML servers using Firefox and
# openfortivpn. This replaces Forticlient for GNU/Linux completely.
# Because openfortivpn does not support SAML login (yet), this script uses Firefox
# to authenticate, grabs SVPNCOOKIE and then calls openfortivpn to setup
@lgallindo
lgallindo / README.md
Created January 25, 2023 18:39 — forked from ablakely/README.md
i3wm theme: Vaporwave

i3wm theme: Vaporwave

screenshot


Written by Aaron Blakely

@lgallindo
lgallindo / iFetch
Created December 20, 2022 18:29 — forked from ab-dx/iFetch
A simple sysfetch tool
#!/bin/bash
os=$(tail -n 1 /etc/lsb-release | sed s/DISTRIB_DESCRIPTION=//g | sed s/\"//g)
arch=$(uname -m)
editor=$EDITOR
shell=$SHELL
wm=$(wmctrl -m | head - -n 1 | sed s/Name\:\ //g)
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
@lgallindo
lgallindo / client.py
Created October 28, 2022 18:00 — forked from kylehounslow/client.py
Send and receive images using Flask, Numpy and OpenCV
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'
@lgallindo
lgallindo / .gitignore
Created May 27, 2016 17:34 — forked from kogakure/.gitignore
Git: .gitignore file for LaTeX projects
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl