Skip to content

Instantly share code, notes, and snippets.

View tikolakin's full-sized avatar
:octocat:
}</>

Tiko tikolakin

:octocat:
}</>
View GitHub Profile
@tikolakin
tikolakin / README.md
Created August 23, 2023 13:16 — forked from corlaez/README.md
Hexagonal Architecture and Modular Implementation

Hexagonal Architecture

Conceptualized by Alistair Cockburn. Also known as "Ports and Adapters".

In a nutshell:

Application Driver -> Primary Adapter -> Primary Port -> Use Case -> Secondary Port -> Secondary Adapter -> External System/Side Effect
{
"DE": {
"special chars": "ÄäÖöÜüẞß"
},
"ES": {
"special chars": "áéíóùü"
}
}
@tikolakin
tikolakin / NAV1-101044326
Last active August 3, 2018 15:30
fWhxuHEXvN
{
"mode": "fpm-fcgi",
"geoip_country": "GB",
"country": "US",
"client_ip": "46.119.157.132",
"session_id": "up53he17kq26oojv5u4v884ec6",
"timestamp": "2018-08-03T15:29:15+00:00",
"message": "",
"priority": 7,
"priorityName": "DEBUG",
@tikolakin
tikolakin / curl_code_check.sh
Created February 22, 2018 15:13
check status code with curl
#!/bin/bash
while true
do
STATUS=$(curl -s -o /dev/null -w '%{http_code}' http://www.google.com)
if [ $STATUS -eq 200 ]; then
echo "Got 200! All done!"
break
else
echo "Got $STATUS :( Not done yet..."
@tikolakin
tikolakin / MySQL_macOS_Sierra.md
Created March 16, 2017 21:30 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@tikolakin
tikolakin / MySQL_macOS_Sierra.md
Created March 16, 2017 21:30 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@tikolakin
tikolakin / jira-template-injector.json
Last active November 6, 2019 08:37
Template for jira-template-injector
{
"options": {
"limit": []
},
"templates": {
"BUG TEMPLATE": {
"issuetype-field": "Bug",
"text": "h4. Summary:\n<TI>Enter summary of the problem here.</TI>\n\nh4. Environment:\n<TI>provide as much as possible from the following: instance : platform : device : os : resolution</TI>\n\nh4. Steps to Reproduce:\n<TI>Enter detailed steps to reproduce here. More detail is better.</TI>\n\nh4. Actual Behaviour:\n<TI>Screenshot. Enter what should happen here.</TI>\n\nh4. Expected Behaviour:\n<TI>Enter what should happen here.</TI>\n\nh4. Additional Notes:\n<TI>Enter any other details such as examples, links to requirements, JIRA issue etc. Any criteria that might help with fixing the problem. More detail is better.</TI>\n"
},
"DEFAULT TEMPLATE": {
@tikolakin
tikolakin / afterFailedStepsTakeScreenshot.php
Created May 5, 2016 08:08
Take screenshot of a page where step fails.
<?php
/**
* Take screenshot of a page where step fails.
*
* @AfterStep
*/
public function afterFailedStepsTakeScreenshot(AfterStepScope $scope) {
if (\Behat\Testwork\Tester\Result\TestResult::FAILED === $scope->getTestResult()->getResultCode()) {
$driver = $this->getSession()->getDriver();
if ($driver instanceof Behat\Mink\Driver\Selenium2Driver) {
@tikolakin
tikolakin / fish_alias.md
Last active October 13, 2023 12:51
Create alias in Fish shell and save this as a permanent function

Directly from CLI

alias x='exit'
funcsave x

or create a file in

~/.config/fish/functions 

with name