This is a small collection of tools that I've written to make life easy. Mosltly, just to solve small problems or perform silly little tasks that are otherwise tedious.
This requires cmake...and that's it.
- Run
cmake .
- Add the
bin
folder toPATH
- Add
lib
toLD_LIBRARY_PATH
-
sping
- Search through an ssh config and ping the hostname of the provided host
-
libMOA
- Sometimes the
rand
library isn't all that random...This provides a more random number generator that generates various random types. - Originally sourced from
http://www.agner.org/random/
- Sometimes the
-
calc
- a command line calculator. Honors order of operations and parenthetical expressions.
-
con
- a command line conversion utility. Converts the input unit to the specified output
unit. Units can be customized in
units.txt
. This works by building a graph of valid conversion, then performing dijkstras to find the path that requires the least number of conversions to reach the desired unit. The conversion path is printed as well as the converted value.
- a command line conversion utility. Converts the input unit to the specified output
unit. Units can be customized in
-
mvdl
- Moves the most recently modified file in your downloads folder to the currnet location of the shell. Takes no arguments. That is all.
-
libCUDSafe
- Provides a protected interface to the CUDA C++ host and device calls.
- Implements the following Host functions (on failure, each prints the CUDA error string and
which file and line the error occurred in.):
safeCudaMalloc
: allocate memory and throws runtime error on failuresafeCudaMemcpy2Device
: copy host memory to device memory.safeCudaMemcpy2Host
: copy device memory back to host. ""safeCudaMemset
: Memset, but for device memory.safeCudaFree
: Like Free, but throws a runtime error
- Implements the following Device functions (on failure, each prints the value to test
against, and the value provided). The assertions
insert a bad assembly instruction to halt execution within the device kernel so you don't
get thousands of lines of garbage from a single error.
CUDA_ASSERT_NEG
: raise an exception if a value is not negativeCUDA_ASSERT_NEG_E
: raise an exception if a value is not negative or equal to 0CUDA_ASSERT_POS
: raise an exception if a value is not positiveCUDA_ASSERT_POS_E
: raise an exception if a value is not positive or equal to 0CUDA_ASSERT_GT
: raise an exception if the test value is not greater than set valueCUDA_ASSERT_GT_E
: raise an exception if the test value is not greater or equal to the set valueCUDA_ASSERT_LT
: raise an exception if the test value is not less than set valueCUDA_ASSERT_LT_E
: raise an exception if the test value is not less or equal to the set value
- random word generator
- random number generator (program)
- python array to matlab (and back)