Skip to content

Instantly share code, notes, and snippets.

View gioferreira's full-sized avatar

Giovani Ferreira gioferreira

  • @vzlab
  • São Paulo - Brazil
View GitHub Profile
@badjano
badjano / pixel_sort.py
Created November 14, 2018 22:32
Pixel Sorting
import random
from PIL import ImageFilter, Image
import os
def randomize(data, width, height, chunk_count):
new_data = []
for i in range(height):
chunk = int(width / chunk_count)
for j in range(chunk_count):
@samukasmk
samukasmk / torrent-client-by-url.py
Last active June 19, 2023 12:26
Script of example to download files by torrent in Python (By: magnet url)
# source:
# https://stackoverflow.com/questions/6051877/loading-magnet-link-using-rasterbar-libtorrent-in-python
#
# ATTENTION: This is only a example of to use a python bind of torrent library in Python for educational purposes.
# I am not responsible for your download of illegal content or without permission.
# Please respect the laws license permits of your country.
import libtorrent as lt
import time
@benlinton
benlinton / multiple_mysql_versions_for_development.md
Last active September 23, 2023 09:38
Multiple MySQL Versions with Homebrew

Multiple MySQL Versions for Development

Options included below:

  • Using Docker docker-compose
  • Using Homebrew brew

Using Docker (recommended)

This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.