Skip to content

Instantly share code, notes, and snippets.

View cachitas's full-sized avatar

Hugo Cachitas cachitas

View GitHub Profile
@cachitas
cachitas / glühwein.md
Created January 31, 2026 19:54
glühwein

Glühwein

  • 1 garrafa de vinho tinto
  • 4 colheres sopa de mel
  • 120 ml aguardente vínica velha
  • 80 ml vinho do Porto
  • 2 rodelas e 3/4 cascas de laranjas
  • 8/9 sementes de cardomomo
  • 2/3 flores de hibisco
  • 3 paus de canela - queimar as pontas e colocar dentro do vinho em brasa
@cachitas
cachitas / installer.cfg
Created September 20, 2016 12:33
Pynsist ignores opencv-python pypi wheel
[Application]
name=OpenCV Camera
version=1.0
entry_point=main:main
[Python]
version=3.5.2
bitness=64
format=bundled
@cachitas
cachitas / mpl_hatch_linewidth.py
Last active August 9, 2016 12:38
Method to modify the hardcoded hatch linewidth in the PDF backend
import os
import re
import matplotlib
def set_hatch_thickness(value):
libpath = matplotlib.__path__[0]
backend_pdf = libpath + "/backends/backend_pdf.py"
print(backend_pdf)
@cachitas
cachitas / link_pyqt5.sh
Created September 1, 2015 13:32
Copy the PyQt5 and sip libraries to a virtualenv.
@cachitas
cachitas / link_opencv.sh
Last active September 1, 2015 13:30
Copy the OpenCV cv2.so to a virtualenv.
@cachitas
cachitas / rmspace.sh
Created March 16, 2015 11:27
Bash script to remove spaces from file name
find -name "* *" -execdir rename 's/ //g' "{}" \;
@cachitas
cachitas / owncloud_reinstall.md
Last active August 29, 2015 14:16
Reinstall ownCloud

On Ubuntu 14.04 sudo apt-get --purge remove owncloud-client is not enough to reinstall the client properly. You also need to delete the folder

rm -r ~/.local/share/data/ownCloud

Now you can install it and configure it again

sudo apt-get install owncloud-client

Then relaunch