Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
Coding :-)

Vallabh Kansagara vrkansagara

😀
Coding :-)
View GitHub Profile
@vrkansagara
vrkansagara / init.vim
Created Mar 26, 2021 — forked from erickpatrick/init.vim
Neovim CoC Intelephense configuration
View init.vim
" TODO: split up config into multiple files
" source $HOME/.config/nvim/vim-plug/plugins.vim
" source $HOME/.config/nvim/<category>/<sub-category-filename>.vim
" source $HOME/.config/nvim/<plug-config>/<plugin-name>.vim
set nocompatible
filetype off
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
View CMakeLists.txt
# Set the name and the supported language of the project
PROJECT(hello-world C)
# Set the minimum version of cmake required to build this project
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# Use the package PkgConfig to detect GTK+ headers/library files
FIND_PACKAGE(PkgConfig REQUIRED)
PKG_CHECK_MODULES(GTK3 REQUIRED gtk+-3.0)
# Setup CMake to use GTK+, tell the compiler where to look for headers
View starter.php
<?php
declare(strict_types=1);
date_default_timezone_set('UTC');
error_reporting(E_ALL);
ini_set('display_errors', '1');
ini_set("display_startup_errors", '1');
ini_set("log_errors", '1');
@vrkansagara
vrkansagara / buildTreeFromPath.php
Last active Sep 5, 2020
PHP Array Tree from given directory path.
View buildTreeFromPath.php
<?php
declare(strict_types=1);
date_default_timezone_set('UTC');
error_reporting(E_ALL);
ini_set('display_errors', '1');
ini_set("display_startup_errors", '1');
ini_set("log_errors", '1');
View read_todo.md

READ

Remote Workshops Using Miro: What I’ve Learned So Far

About Bounded Contexts and Microservices

Bounded Contexts provide an isolated space for experimentation. Isolation is fundamental to provide safety. If your model is shared with too many parties, people would not run experiments, afraid of breaking someone else’s code.

@vrkansagara
vrkansagara / For Mac 4.2.6 unlimited trial.md
Created Oct 25, 2019 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux
View For Mac 4.2.6 unlimited trial.md

for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。

  1. go to the dir : /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare
  4. insert BCompare the content :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
View GoogleOauth2-CorePHP
<?php
require __DIR__ . '/vendor/autoload.php';
if (php_sapi_name() != 'cli') {
throw new Exception('This application must be run on the command line.');
}
/**
* Returns an authorized API client.
* @return Google_Client the authorized client object
@vrkansagara
vrkansagara / Doctrine-Multi-Tenancy.md
Created Sep 1, 2019 — forked from CarlosEduardo/Doctrine-Multi-Tenancy.md
Multi-Tenancy (tenant) Strategy for Doctrine ORM
View Doctrine-Multi-Tenancy.md
@vrkansagara
vrkansagara / id_rsa.pub
Last active Aug 7, 2019
Allow me to help your server.
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDwIzBsV/ED8Z+Bzlxlw5YU+FsAVyqelS0dwQmpZGnLvVmEVhYgLrrjuU/sr4DDTOLzCYVpZkDgCZH80f/UIQLiOQ4AkDvXnP8FkTkZ5YUj1WqHIaYpQEUXLDCkC7vpy0Am8RK434aLtUmvRIXyhq34NF7y+AKiIADVV4r8npUHeXouSO5b0iNJrywHZES6qKt5ARQ3uS/SVXjxh1tmh9sP8zqrik6aGk1C/U9yEBKbwwRhnq71dD+4m1Wt68VH6Gv+obJah/CsoNOr9440yRzVKrNQLLqaxPgf4tHMjrfHRRqwVqYc5N18iHF5BghkI+9rtXnDE5bMFMiMmttxpM6kVnzdLCwExR5QrZcxbVvSB70Pf7kL5JviaLgWQyf71gcixml3dpcGgrm3h9RI46m7+Ac91CGypVsnowHOShW5dCqP1fE2UNs8P9gwthfteCCWsIjo1OavyRcNyQOzEv97SK4DDiddUrVHcWtXWfR0UUT44P1a+1Zdixd+tUZ2XAqlhPri0BF2oZyZZYkpCIWKywGWUPBKQFd1eKK8TAnCRHjnmrDpjWynMKeGP3BPF6h/oCPNkVHd5WC3gpAUoYIURrymwabPhShExzLpGXB2hyS2Do8s92P1Entru228NOEZKOXzKN5G2im4RuwqqOm4jSfX4/P5sM1+cnTRV1IaVQ== VRKANSAGARA@GMAIL.COM
View my.cnf
percona-mysql-router.x86_64 8.0.15-6.1.el6 installed
cat my.cnf
# Percona Server template configuration
#
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html
[mysqld]
#
# Remove leading # and set to the amount of RAM for the most important data