Skip to content

Instantly share code, notes, and snippets.

View ammarnajjar's full-sized avatar

Ammar Najjar ammarnajjar

View GitHub Profile
@ammarnajjar
ammarnajjar / catkin_make_log.markdown
Created June 2, 2016 16:57
The output of catkin_make for moveit_ros indigo-devel branch.

The output of catkin_make

$ catkin_make
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
#!/bin/bash
sudo dnf install ncurses ncurses-devel -y
cd ~
git clone https://github.com/vim/vim.git /tmp/vimsrc
cd /tmp/vimsrc
CFLAGS+="-O -fPIC -Wformat" ./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp \
--enable-python3interp \
--with-python3-config-dir=/usr/lib/python3.5/config \
$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 8 2016 11:54:26)
Included patches: 1-1718
Modified by <[email protected]>
Compiled by <[email protected]>
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +tag_binary
+arabic +file_in_path +mouse_sgr +tag_old_static
+autocmd +find_in_path -mouse_sysmouse -tag_any_white
-balloon_eval +float +mouse_urxvt -tcl
~# vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:25:35)
Included patches: 1-429
Modified by [email protected]
Compiled by buildd@
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
#!/bin/bash
# File: watchit.sh
# Author: Ammar Najjar <[email protected]>
# Description: watches for a file changes and react to that change
# Last Modified: July 05, 2016
function usage() {
echo "watches for a file changes and react to that change"
echo
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
@ammarnajjar
ammarnajjar / kinect2.sh
Created August 8, 2016 10:34
setup iai_kinect2 with GeForce GTX 750 Ti
# VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti]
function get_sudo() {
uid="$(id -u)"
SUDO="sudo"
if [[ $uid -eq 0 ]]
then
SUDO=""
fi
}
#!/bin/bash
roslaunch schunk_lwa4p robot.launch
rosservice call /arm/driver/init
# success: True
# message: ''
roslaunch lwa4p_movit_config moveit_planning_execution.launch
@ammarnajjar
ammarnajjar / WebdriverGenerators.py
Last active April 8, 2017 10:57
Generate custom selenium webdrivers
'''
Copyright (c) 2017 Ammar Najjar <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@ammarnajjar
ammarnajjar / WebdriverGenerators.ipynb
Created April 9, 2017 13:04
Custom selenium webdrivers using decorators (ipython notebook)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.