Skip to content

Instantly share code, notes, and snippets.

weshouman / lock checker
Created April 25, 2014 03:50
check whom is taking the apt-get lock
ps aux | grep apt | grep -v 'grep'
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
# use it that way (in my case i had to give it a sudo)
python install
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 / exec_python-fu_plug-ins
Last active August 29, 2015 14:21
gimp plugins tutorial
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 /
Created June 3, 2015 21:25
useful linux commands tips
pgrep cron
# (if found) shows process number of *cron* processes
pidof cron
# (if found) shows process number of cron process
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
Version: SKS 1.1.5
Comment: Hostname:
weshouman /
Last active December 25, 2015 20:05
SystemC installation
$ chmod 777
put it next to systemc tar file version 2.3.1
$ ./
give credentials
be cautious
weshouman / ccdemo.bat
Last active May 19, 2016 05:39
C++ compilation notes on windows and linux
clenvmin.bat ccdemowin.cpp && ccdemowin.exe
weshouman / oop
Last active June 23, 2016 04:19
sparse materials, for curious ppl and interview seekers

#how do we know object type in runtime :? that could be if: the language support RTTI

##type introspection figuring the metadata at runtime

##C++ specific ###dynamic_cast way: Dynamic cast an object to a class, do we get a bad_cast exception, then it's not the right type