Skip to content

Instantly share code, notes, and snippets.


Serghei Iakovlev sergeyklay

Block or report user

Report or block sergeyklay

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
[![Discord Server](](

Discord Server


Keybase proof

I hereby claim:

  • I am sergeyklay on github.
  • I am klay ( on keybase.
  • I have a public key whose fingerprint is EDAC 8D91 F82C 0BBD 261C 1329 1E0B 5331 219B EA88

To claim this, I am signing this object:

View http-client-example.go
package main
import (
cc ""
sergeyklay / get-the-weather-data-for-my-city.el
Last active Apr 2, 2019
get the weather data for my city
View get-the-weather-data-for-my-city.el
(require 'json)
(defvar owm/base-api-url "")
(defvar owm/base-api-ver 2.5)
(defvar owm/api-key "PUT_API_KEY_HERE")
(defvar owm/default-scheme "https")
(defun owm/build-url (appid lat lon lang units)
(let* ((local (format "data/%s/weather" owm/base-api-ver))
sergeyklay / .dir-local.el
Last active Apr 28, 2019
.dir-local.el for PHP-extension
View .dir-local.el
;;; Directory Local Variables
;; For more information see (info "(emacs) Directory Variables")
((nil . ((intent-tabs-mode . t)
(fill-column . 80)))
(c-mode . ((c-file-style . "k&r")
(tab-width . 4)
(c-basic-offset . 4)
(flycheck-checker . c/c++-gcc)
(flycheck-disabled-checkers c/c++-clang)
sergeyklay /
Created Aug 21, 2018
# System configuration for the beanstalkd daemon
# Available options correspond to the options to the
# beanstalkd commandline.
# Job size is left to the default. Uncomment and set it
sergeyklay /
Last active Aug 21, 2018
# beanstalkd - a simple, fast workqueue service
# chkconfig: - 57 47
# description: a simple, fast workqueue service
# processname: beanstalkd
# config: /etc/sysconfig/beanstalkd
sergeyklay /
Created Apr 25, 2018 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


sergeyklay /
Created Jan 20, 2018 — forked from chrisroos/
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
# or, instead of backing up trustdb...
You can’t perform that action at this time.