Skip to content

Instantly share code, notes, and snippets.

View niya3's full-sized avatar

ildar nizamov niya3

  • Positive Technologies
  • Nizhny Novgorod, Russia
View GitHub Profile
@niya3
niya3 / python_basics.ipynb
Last active September 17, 2018 19:49
Python 3 basics
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@niya3
niya3 / m.cpp
Last active July 20, 2018 05:34
simple ASAN expample
#include <iostream>
int f(){
const int M = 55500;
//int N = M + 3;
int N = M - 1;
int *a = new int[M];
a[N] = 14;
return a[N];
}
@niya3
niya3 / .bashrc
Last active July 2, 2018 19:51
trackball linux settings
xset mouse 6 4 #pointer acceleration with threshold
@niya3
niya3 / manjaro
Last active April 16, 2018 20:11
Basic installation of Manjaro 17.1.7 KDE at UEFI and nvidia optimus card laptop
DISCLAMER
I don't know how to configure and install nvidia/bumblebee properly.
Now `inxi -G` gives drivers 'kernel' for intel and 'N/A' for nvidia.
I. On working machine download and burn iso to USB device at /dev/sdb
$ wget https://sourceforge.net/projects/manjarolinux/files/archive/17.1.7/kde/manjaro-kde-17.1.7-stable-x86_64.iso/download
$ wget https://sourceforge.net/projects/manjarolinux/files/archive/17.1.7/kde/manjaro-kde-17.1.7-stable-x86_64.iso.sha256/download
$ sha256sum -c ./manjaro-kde-17.1.7-stable-x86_64.iso.sha256
$ sudo dd bs=4M if=./manjaro-kde-17.1.7-stable-x86_64.iso of=/dev/sdb status=progress #CAUTION! Be careful with 'of' destination!