Skip to content

Instantly share code, notes, and snippets.

View mikekamornikov's full-sized avatar

Mike Kamornikov mikekamornikov

  • Intetics GMBH
  • Krakow, Poland
View GitHub Profile
## Dev cheat sheet
### 1. Create Maxwell and Ankara users in the database:
```sql
CREATE USER 'maxwell'@'%' IDENTIFIED BY 'Passw0rd';
GRANT ALL ON maxwell.* TO 'maxwell'@'%';
GRANT SELECT, REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO 'maxwell'@'%';
@mikekamornikov
mikekamornikov / config.go
Last active May 5, 2022 08:16
SQS producer/consumer local dev
package main
import "github.com/aws/aws-sdk-go/aws"
func GetAWSConfig() *aws.Config {
return &aws.Config{
Endpoint: aws.String("http://localhost:4100"),
Region: aws.String("us-west-1"),
}
}

Keybase proof

I hereby claim:

  • I am mikekamornikov on github.
  • I am mikekamornikov (https://keybase.io/mikekamornikov) on keybase.
  • I have a public key ASBI6DFufK-_ZmxHD7wVFziAeDwQtjAxu8Ec94A0nNRepAo

To claim this, I am signing this object:

@mikekamornikov
mikekamornikov / dictionary_to_extensions.php
Created November 8, 2016 08:55
$dictionary to Ext parser
<?php
function dictionary_to_extensions()
{
global $dictionary;
$keySeparator = '~';
$iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($dictionary));
$paths = [];
FROM ibmcom/db2express-c
RUN su - db2inst1 -c "db2start"
#!/bin/zsh
alias sss="date +%s"
fts () {
sec=$(( `sss` - $1 ))
((h=${sec}/3600))
((m=(${sec}%3600)/60))
((s=${sec}%60))
printf "%02d:%02d:%02d\n" $h $m $s
# Disable SELinux
echo 0 > /selinux/enforce
perl -pi -e 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
# Install required packages
yum install pdksh compat-libstdc++-33 compat-libstdc++-33.i686 libaio libaio.i686 \
pam-1.1.1-17.el6.x86_64 pam-1.1.1-17.el6.i686 nfs-utils openssh-clients \
numactl
# Update Kernel Parameters (http://ibm.co/1czEKb4)
@mikekamornikov
mikekamornikov / .vimrc
Last active August 29, 2015 14:06 — forked from JeffreyWay/.vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15