Skip to content

Instantly share code, notes, and snippets.

@weshouman
weshouman / bam usage
Created December 26, 2014 22:15
using Blender Asset Manager
# the following results in a "can't read from /var/mail/setuptools error" don't use it :D
./setup.py
# use it that way (in my case i had to give it a sudo)
python setup.py install
@weshouman
weshouman / Blender Python Local API
Last active October 28, 2017 06:40
local versions of sphinx wikis #python #blender
# install sphinx
sudo apt-get install python-setuptools
# add a sudo if the following didn't work
easy_install -U sphinx
# use sphinx to export the HTMLs (we need blender source for that)
mkdir ./doc/python_api/sphinx-out
sphinx-build ./doc/python_api/sphinx-in ./doc/python_api/sphinx-out
# use sphinx to export the LATEXs, this one didn't output a working pdf for me!
@weshouman
weshouman / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@weshouman
weshouman / exec_python-fu_plug-ins
Last active August 29, 2015 14:21
gimp plugins tutorial
tut1
http://stackoverflow.com/questions/12662676/writing-a-gimp-python-script
step1: put the script in first comment in the plugins folder set in pref->folders->plugins
step2: filters->python-fu->console->browse
step3: browse python-flip
step4: click apply
step5: change the "file" keyword to a test image with its path ie: pdb.pyhon-flip("/tmp/test.png")
step6: click enter
@weshouman
weshouman / certificates.md
Last active June 15, 2023 08:20
python tips and tricks #python #study #tips

Motivation

When connecting to the internet we could be doing that :

  1. to install new packages/modules, or
  2. to make requests within the application, using requests module.

By either of them we could get SSLCertVerficationError, but each requires a different solution.

PIP Trust

For the first scenario, using pip to install new modules, one could configure the .ini file and add the following lines

@weshouman
weshouman / linux_tips.sh
Created June 3, 2015 21:25
useful linux commands tips
#processes:
###########
pgrep cron
# (if found) shows process number of *cron* processes
pidof cron
# (if found) shows process number of cron process
env
@weshouman
weshouman / .bashrc
Created June 6, 2015 02:42
edits in my linux files
#git and kompare
gk () { git diff $* | kompare - ; }
#akonadi requirements for kaddressbook (*.vcf editor)
#adding where agents exist
XDG_DATA_DIRS="/usr/share/kde4/apps:$XDG_DATA_DIRS"
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.5
Comment: Hostname: pgp.skewed.de
mQINBFJgPW4BEADAjgJ7K7eerlNSmRSInTbWMLYby4WamQy8aM2ULZa2xcf4dolmI3QVC9aw
XKjY/6bYGEkRybpKAPUeIIVwe0QpURlCQ+F5j8M6KjAVU+Ptac8EFOwZmhc4lSsVOT2duW64
Irxe9xRcuuns/Emgzkp1XjrcHFJjykPnfXRwheFe+gyiTFWywx61MvBCDD4ZL59mqG5aqyZN
a7OMLUS5UKXpiJUuS5nVpYP/V8Xw2J4QM50+vpeknIJbmhoyOWHFPjwNR/25kBuhPvza9zKL
8jSsTD+IIiJB6t3t9t/j5RbVKm1HwLzpKVHoW78Q96RStJp2CwVeN50x7SWa/d+VFSKabNXA
euEVxm9ta3CUbBFUhk4WBDxwea4vsKE+WXvG/l+RU3kGjj0RwSTQOJ7P52hrWdHVIX02TTO5
@weshouman
weshouman / README.me
Last active December 25, 2015 20:05
SystemC installation
chmod systemc_installer.sh
$ chmod 777 systemc_installer.sh
put it next to systemc tar file version 2.3.1
exec
$ ./systemc_installer.sh
give credentials
be cautious
@weshouman
weshouman / ccdemo.bat
Last active May 19, 2016 05:39
C++ compilation notes on windows and linux
clenvmin.bat ccdemowin.cpp && ccdemowin.exe