Skip to content

Instantly share code, notes, and snippets.

@weshouman
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
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 / 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 / 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
@weshouman
weshouman / oop knowledge.md
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
https://en.wikipedia.org/wiki/Type_introspection

##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