Skip to content

Instantly share code, notes, and snippets.

View sergeyklay's full-sized avatar

Serghei Iakovlev sergeyklay

View GitHub Profile
@andrewseidl
andrewseidl / Clang-format Comparison.md
Last active May 27, 2025 17:50
Clang-format style comparison

This is a comparison of the different formatting styles including with clang-format.

Generated via:

styles=( LLVM Google Chromium Mozilla WebKit )
for style in $styles
do
  clang-format -style=$style ChLcpIterativeAPGD.h > ChLcpIterativeAPGD.$style.h

done

use \Phalcon\DI\Exception as Exception,
\Phalcon\DI\FactoryDefault as DefaultInjector,
\Phalcon\DI\InjectionAwareInterface,
\Phalcon\Config\Adapter\Json as JsonConfig;
/**
* DependencyInjector class
* Override the default DI class, due to an inability to update shared services
*
* @extends DefaultInjector
Hey all!
So, We are active users who uses Phalcon/Zephir and we want to see good progress on this.
But due to some problems in the organization process of the community, and not enought time for contirube from main maintainers (@andres ....
Projects are developing quite sluggish and It's awfull.
We would like to create a public vote "Transfer Phalcon and Zephir to Zephir and Phalcon organtizations",
identifying major maintainers and principles "How to development this projects".
Basic things that we are motivated:
@nkbt
nkbt / .eslintrc.js
Last active April 1, 2025 03:07
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@shovon
shovon / increase_swap.sh
Created April 10, 2015 15:18
Increasing swap size. Only tested on the ubuntu/trusty64 Vagrant box. CREDIT GOES TO ---> http://jeqo.github.io/blog/devops/vagrant-quickstart/
#!/bin/sh
# size of swapfile in megabytes
swapsize=8000
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then
@vt0r
vt0r / GnuPG-2.2.md
Last active February 13, 2024 09:03 — forked from mattrude/GnuPG-2.1.md
Build/install instructions for GnuPG 2.2.x on Ubuntu and similar distros (formerly for 2.1.x)

GnuPG 2.2.x Build Instructions

Below are my build instructions for GnuPG 2.2.10, released on August 30th, 2018. These instructions are built for a headless Ubuntu 18.04 LTS server (and have also been tested on Ubuntu 14.04/16.04).

If you prefer, you may use the below install script to install GnuPG 2.2.x by running the following commands:

curl -OL "https://gist.githubusercontent.com/vt0r/a2f8c0bcb1400131ff51/raw/e0d2011d7b89bfe5b83c3f29f21949fb21354dd9/install-gnupg22.sh" && sudo -H bash ./install-gnupg22.sh

Install the needed dependencies

@mcandre
mcandre / docker-push-tag-alias.md
Created May 18, 2015 17:22
How to create new tag aliases for docker images
$ docker tag <image>:<original tag> <image>:<alias>
$ docker push <image>:<alias>
@voxxit
voxxit / USING-VAULT.md
Last active July 7, 2022 03:02
Consul + Vault + MySQL = <3
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200

Initializing a vault:

vault init
@edelooff
edelooff / integrity_example.py
Created June 5, 2015 18:44
Catching and handling IntegrityError in SQLAlchemy
import sys
import sqlalchemy as sa
from sqlalchemy.exc import IntegrityError
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
base = declarative_base()
print 'SQLAlchemy version {}'.format(sa.__version__)
@DavertMik
DavertMik / Meetup.md
Last active January 21, 2016 05:25
Codeception Kyiv Meetup

Codeception Kyiv Meetup on July 1st, 20:00 Bierstube Pub. http://lh.com.ua/bierstube.html

Мы проводим первый митап разработчиков и пользователей Codeception. Обсудим новый релиз 2.1, поговорим о том как лучше тестировать PHP проекты и просто пообщаемся.

Встреча будет проходить 1 июля в 20:00 в пабе Бирштубе на Льва Толстого. http://lh.com.ua/bierstube.html Приходите, будем рады увидеть всех кто интересуется темой тестирования в PHP.

спрашивать столик на фамилию Шупило