Skip to content

Instantly share code, notes, and snippets.

@aspratyush
aspratyush / install-deps.sh
Last active August 29, 2015 14:23
Torch7 install for Fedora 22
#!/usr/bin/env bash
######################################################################
# This script installs required dependencies for Torch7
######################################################################
install_openblas() {
# Get and build OpenBlas (Torch is much better with a decent Blas)
cd /tmp/
git clone https://github.com/xianyi/OpenBLAS.git -b master
## Major Specs
- Intel® Core™ i5-8300H CPU
- Intel® UHD Graphics 630 (Coffeelake 3x8 GT2)
- Nvidia GTX 1050M
### Install
- Add `nomodeset` to kernel boot line, else the install will freeze randomly.
### First boot
1. Add kernel argument : `nomodeset`
@aspratyush
aspratyush / QDBusSignalSlotExample
Created July 9, 2015 19:58
QDBus-based dbus-signal receiving
/************* SERVER : INTERFACE CLASS **************/
#ifndef ICALCULATOR_H
#define ICALCULATOR_H
#include <QObject>
class ICalculator : public QObject
{
Q_OBJECT