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 / 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!
@niya3
niya3 / .bashrc
Last active July 2, 2018 19:51
trackball linux settings
xset mouse 6 4 #pointer acceleration with threshold
@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 / 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 / gitlab_ci_lint.py
Created November 12, 2018 17:33
Quick lint for gitlab-ci.yml file
#!/usr/bin/env python3
import gitlab
import sys
g = gitlab.Gitlab(url='https://gitlab.com', ssl_verify=False)
try:
with open('.gitlab-ci.yml', 'r') as gitlabci:
content = gitlabci.read()
except FileNotFoundError:
@niya3
niya3 / 50-expert.conf
Created November 25, 2019 20:10
kensington expert mouse x11 config
# /usr/share/X11/xorg.conf.d/50-expert.conf
Section "InputClass"
Identifier "Kensington Expert Mouse"
MatchProduct "Kensington Expert Mouse"
MatchIsPointer "on"
Driver "evdev"
Option "Buttons" "9"
#xinput --set-button-map 'Kensington Expert Mouse' 2 1 3 4 5 6 7 0 9
@niya3
niya3 / goland_record_and_debug.md
Last active November 10, 2021 07:21
goland record and debug
@niya3
niya3 / fluidsynth.service
Last active December 1, 2021 07:15
Frescobaldi MIDI generation and playback in Linux
# ~/.config/systemd/user/fluidsynth.service
[Unit]
Description=FluidSynth launched in server mode
After=sound.target
[Service]
ExecStart=/usr/bin/fluidsynth -a pulseaudio -m alsa_seq -i -l -s -p FluidSynth /usr/share/soundfonts/default.sf2
[Install]
WantedBy=default.target
@niya3
niya3 / python.md
Last active January 28, 2022 11:02