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 / KDE.md
Created February 17, 2023 09:37
@niya3
niya3 / ldflags.txt
Created June 24, 2022 09:33
golang 1.18.3 ldflags
$ go version
go1.18.3 linux/amd64
$ go doc cmd/link [12:03:16]
Link, typically invoked as “go tool link”, reads the Go archive or object
for a package main, along with its dependencies, and combines them into an
executable binary.
Command Line
@niya3
niya3 / python.md
Last active January 28, 2022 11:02
@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 / goland_record_and_debug.md
Last active November 10, 2021 07:21
goland record and debug
@niya3
niya3 / firefox.ini
Last active October 6, 2023 06:33
Firefox
# отключить выход по Ctrl-Q
browser.quitShortcut.disabled = true
# отключить выход после закрытия последней вкладки
browser.tabs.closeWindowWithLastTab = false
# отключить DevTools по Crtl-Shift-C (?)
devtools.toolbox.host = ""
devtools.enabled = false
devtools.toolbox.selectedTool = ""
@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 / 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: