Skip to content

Instantly share code, notes, and snippets.

View svyatoslavmo's full-sized avatar

Svyatoslav M svyatoslavmo

View GitHub Profile
@svyatoslavmo
svyatoslavmo / logid.cfg
Created April 27, 2020 19:38 — forked from Elijas/logid.cfg
Gesture macros for all keys for Logitech MX Master 3, Logiops linux driver
// Location: /etc/logid.cfg
devices: ({
name: "MX Master 3";
smartshift: { on: true; threshold: 6; };
hiresscroll: { hires: false; invert: false; target: false; };
dpi: 1500; // max=4000
buttons: (
// Forward button
{ cid: 0x56; action = { type: "Gestures"; gestures: (
{ direction: "None"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTMETA" ];}},
@svyatoslavmo
svyatoslavmo / Ubuntu 16.04
Last active October 24, 2018 07:36 — forked from dhoeric/Ubuntu 16.04
install-docker-aws-ec2-user-data
#!/bin/bash
# Install docker
apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
@svyatoslavmo
svyatoslavmo / svn2git.sh
Last active October 25, 2016 21:16
svn2git migration with non standard layout-gitlab
#svn2git migration with non standard layout. i.e repository/folder > folder will be root of git repo
# $2 name of group in gitlab
#!/bin/bash
mkdir $1 && cd $1
git svn clone https://example.com:8443/svn/$1/$2 --no-metadata -A ~/authors.txt --username=user_with_access
cd $2/
git remote add origin git@git.example.com:$1/$2.git
git push -u origin master
#!/usr/bin/env python
# (c) 2013, Greg Buehler
#
# This file is part of Ansible,
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.