Skip to content

Instantly share code, notes, and snippets.

View snikulov's full-sized avatar
💭
I may be slow to respond.

Sergei Nikulov snikulov

💭
I may be slow to respond.
View GitHub Profile
;;; from here http://www.emacswiki.org/emacs/CyclingGTagsResult
(require 'gtags)
(defun ww-next-gtag ()
"Find next matching tag, for GTAGS."
(interactive)
(let ((latest-gtags-buffer
(car (delq nil (mapcar (lambda (x) (and (string-match "GTAGS SELECT" (buffer-name x)) (buffer-name x)) )
(buffer-list)) ))))
@snikulov
snikulov / gist:3749706
Created September 19, 2012 13:33
usual gith ubworkflow
1. fork repo
2. clone your local repo
3. git remote add upstream <url to master repo>
4. git fetch upstream
5. git merge upstream/master
@snikulov
snikulov / gist:4037650
Last active January 22, 2018 10:15
BUILD for used libs
Boost build
MS VS2012 x64
.\b2 --build-type=complete --toolset=msvc-11.0 address-model=64 --prefix=C:\DEV64\boost -j4 install
# mingw
.\b2 --build-type=complete --toolset=gcc address-model=64 --prefix=%MINGW_ROOT%\usr\local -j4 install
MS VS2015 x64
.\b2 --build-type=complete --toolset=msvc-14.0 address-model=64 --prefix=C:\WORK\MSVC2015.64\boost -j4 install

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@snikulov
snikulov / gist:be8bb6939125fc6ddf1a
Last active April 19, 2018 10:03
OpenSUSE 13.2 // using my own boost library with CMake
cmake .. -DBOOST_ROOT=/home/snikulov/dev -DBoost_NO_SYSTEM_PATHS=ON \
-DBoost_ADDITIONAL_VERSIONS="1.57.0;1.57" -DBoost_COMPILER=-clang50
@snikulov
snikulov / gist:cba685bf45c9fd06ee07
Last active August 29, 2015 14:17
Linux UDP tunning
33 sudo sysctl -w net.ipv4.udp_rmem_min=131072
35 sudo sysctl -w net.ipv4.udp_wmem_min=131072
37 sudo sysctl -w net.core.rmem_max=67108864
39 sudo sysctl -w net.ipv4.udp_mem='262144 327680 393216'
>>>>>>>>>>> old values <<<<<<<<<<<<<<<<<<<
diode@tx:~$ sudo sysctl net |grep mem
[sudo] password for diode:
net.core.wmem_max = 2097152
cmake .. -DBOOST_ROOT=/opt -DBoost_NO_SYSTEM_PATHS=ON -DBoost_USE_STATIC_LIBS=ON
@snikulov
snikulov / SnmpMgr.c
Created August 11, 2016 07:43 — forked from gvanem/SnmpMgr.c
Windows SNMP client with libcurl
/*****************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
@snikulov
snikulov / GCC Include search paths
Created July 11, 2017 12:01
GCC Include search paths
GCC Include search paths
For C:
gcc -xc -E -v -
For C++:
gcc -xc++ -E -v -
shorter variant:
gcc -Wp,-v -x c++ - -fsyntax-only