Skip to content

Instantly share code, notes, and snippets.

View sergeylukin's full-sized avatar
🎯
Focusing

Sergey Lukin sergeylukin

🎯
Focusing
View GitHub Profile
@sergeylukin
sergeylukin / karabiner.json
Created April 3, 2018 06:03
Karabiner configuration for playing F-117A on OS X
{
"complex_modifications": {
"parameters": {
"basic.simultaneous_threshold_milliseconds": 50,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500
},
"rules": [
{
@sergeylukin
sergeylukin / install_face_recognition.sh
Created July 12, 2017 01:59
face recognition ubuntu install
sudo apt-get update
sudo apt-get install build-essential
//sudo apt-get install python3-setuptools
//sudo easy_install3 pip
sudo apt-get install libboost-all-dev
sudo apt-get install python3-dev python3-pip python3-tk python3-lxml python3-six
@sergeylukin
sergeylukin / godoc.sh
Created November 23, 2016 20:29
Run searchable local go lang documentation server
godoc -goroot=/usr/local/go -index -index_files=/tmp/godoc_index.db -write_index
godoc -v -goroot=/usr/local/go -http=:6060 -index -index_files=/tmp/godoc_index.db
/*****
*
* The contents of this file were written by Kevin Lindsey
* copyright 2002 Kevin Lindsey
*
* This file was compacted by jscompact
* A Perl utility written by Kevin Lindsey (kevin@kevlindev.com)
*
*****/
@sergeylukin
sergeylukin / twom.sh
Created October 13, 2015 04:27
Save and load progress in "This War of Mine" video game
#!/bin/bash
# Copyright (c) 2015 gruberator
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the gruberator. The name of the
@sergeylukin
sergeylukin / HttpLink.mq4
Last active October 19, 2021 13:27
Opening a Webpage in the default browser from within MetaTrader
@sergeylukin
sergeylukin / readme.md
Last active August 29, 2015 14:07
Programs browser for DOS 6.22

Browser

browser.exe displays programs found in current directory's subdirectories in an easy to look through interface. Programs meta information (name, description, screenshots references) is stored in browser.yaml file found in programs' directory.

Here is UI prototype:

@sergeylukin
sergeylukin / .vimrc
Created July 3, 2014 23:05
Minimal vim configuration for root user
" This is my minimal Vim configuration file I usually save as `/root/.vimrc`
" for the occasions when I'm logged in as root user and I need to edit files
" (this doesn't usually happen, but when it happens, I have vim configuration
" that makes sense).
"
" It doesn't require any plugins and aims to work with minimal Vim installation
"
" Forget compatibility with VI
set nocompatible
@sergeylukin
sergeylukin / post-receive
Last active August 29, 2015 13:55
git hook that sets flags according to modified files
while read oldrev newrev refname
do
COMPILE_JAVASCRIPTS=0
COMPILE_IMAGES=0
COMPILE_STYLESHEETS=0
for file in `git diff $oldrev $newrev --name-only`; do
if [ `echo $file | cut -c 1-22` == "app/assets/javascripts" \
-o \
`echo $file | cut -c 1-25` == "shared/assets/javascripts" \
@sergeylukin
sergeylukin / make.conf
Created November 19, 2013 15:08
Optimized system-wide makefile for FreeBSD. Saved in /etc/make.conf
# default to -j6 for make
FORCE_MAKE_JOBS=yes
MAKE_JOBS_NUMBER=6
# specific options/etc for ports
.if ${.CURDIR:M*/databases/mysql*-server}
BUILD_OPTIMIZED=yes
.endif
# static zsh build for root