Skip to content

Instantly share code, notes, and snippets.

☕️
Coding

Serghei Iakovlev sergeyklay

☕️
Coding
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
@sergeyklay
sergeyklay / telnet-imap
Last active May 30, 2019
Playing with Gmail via Telnet
View telnet-imap
$ telnet-ssl -z ssl imap.gmail.com 993
Trying 173.194.222.109...
Connected to gmail-imap.l.google.com.
Escape character is '^]'.
* OK Gimap ready for requests from 193.201.216.169 z8mb75199760ljk
a1 LOGIN xxxxxxxx@gmail.com my-password-here
* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584
a1 OK xxxxxxxx@gmail.com authenticated (Success)
a2 LIST "" "*"
* LIST (\HasNoChildren) "/" "INBOX"
View discord-badge.md
[![Discord Server](https://img.shields.io/badge/Discord-blue.svg?logo=discord)](https://phalcon.link/discord)

Discord Server

View keybase.md

Keybase proof

I hereby claim:

  • I am sergeyklay on github.
  • I am klay (https://keybase.io/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:

@sergeyklay
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)
View sed-cheatsheet.md

Sed Cheat Sheet

Sed command line options

sed [options] sed-command [input-file]
Option Description Example
View http-client-example.go
package main
import (
"fmt"
"golang.org/x/net/context"
cc "golang.org/x/oauth2/clientcredentials"
"io/ioutil"
"net/http"
"os"
)
@sergeyklay
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 "api.openweathermap.org")
(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
sergeyklay / CMakeLists.txt
Last active Mar 25, 2019
CMakeLists.txt for PHP-extension
View CMakeLists.txt
cmake_minimum_required(VERSION 3.6)
project(extname C)
message("Begin cmaking of PHP extension ...")
# -std=gnu99
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -O0 -Wall -std=gnu99 -fvisibility=hidden")
set(ENV{PROJECT_ROOT} "${CMAKE_HOME_DIRECTORY}")
View .php_build_configure_opts
--enable-debug --with-gettext --disable-fpm
@sergeyklay
sergeyklay / beanstalkd.sh
Last active Aug 21, 2018
/etc/init.d/beanstalkd
View beanstalkd.sh
#!/bin/sh
#
# beanstalkd - a simple, fast workqueue service
#
# chkconfig: - 57 47
# description: a simple, fast workqueue service
# processname: beanstalkd
# config: /etc/sysconfig/beanstalkd
#
You can’t perform that action at this time.