Composer is an installer and a package management tool. So please stop writing build scripts
for Composer, building anything inside your package folder.
Last few days, I try to deploy a Symfony project with Nixops to Google Cloud. I found the composer2nix package after some research.
Nixos is a Linux distro working in nix ecosystem.
NixOS is a GNU/Linux distribution that aims to improve the state of the art in system configuration management.
I didn't know it is possible to enable vim mode, in bash before. I learned today and this feature is awesome.
You can enable vim mode in the bash with only change a parameter in your .bashrc file, like that.
set -o vi
That's it. You can use bash with vim strokes.
#tips #vim #en #bash
You can get file path in vim with % (percent) symbol. Sometimes you need to run a command with the current file path, for example
git add filepath or
You can add the current file to git with this command in vim:
:!git add %
or you can run any file with this command:
For example, you write a bash script and saved it. But you don't want to close vim or you don't want to go to another terminal screen. Just you need to write
:!%:p and vim run the file for you.
#tips #en #vim #git
When you develop an API client with PHP, you would need data mapper for mapping data from API to an object.
You can run the same command in all active Tmux panes at the same time.
You need to activate command mode in Tmux with Ctrl+B keys and update
synchronize-panes setting to on.
:setw synchronize-panes on
To disable it, set as off.
:setw synchronize-panes off
You can toggle synchronize-panes setting without use on-off parameters.
Sometimes you get an error like that:
container extension liip_imagine not registered
You double-checked all configurations and you are absolutely sure nothing is wrong.
But code not works, why?
Because Php can't convert
I if os language is not
en. Your code searches Liipİmagine and can't find that.
Change os's lang code to en_US.UTF-8 for fix that.
Or add this line to .bashrc or .profile file.
#errors #php #debug #en
Today, we adopt a 3 legged cat for the office. Its name is Rosalind. We are working on some science projects.
We gave its name from Rosalind Franklin.
Rosalind Franklin is the owner of the Photo 51 of DNA if you don't hear before. Photo 51 is a milestone for biology.
You can read about that in Wikipedia if you are curious.
#cat #office #en
I want to talk about my morning routine. I try to keep this routine for 5 weeks and I want to stuck with this routine.
I wake up at approximately 06:00 am every morning. I try to be as consistent as possible with this because it helps I stay motivated.
Once I'm up, the first thing I do is wash my face and I feed my cats (Tedi and Turgut). I clean the cat litter if my partner hasn't.
Then I check my emails and take notes if any further subject for looking after.
Sometimes I do a quick breakfast, sometimes we do Turkish style breakfast with my partner if not exists an urgent problem in the office.
Then I'm going to the door out and go to the office. I filter a morning coffee when I arrive in the office.
And the new day, let's start to work out.
This is my blog's new face. I'll write my posts here after this.
I don't think to move my old posts to this blog. You can view my posts from github archive if you need it.
Sometimes I may write posts in Turkish, sometimes in English. It would be practice for me I think.
I plan to write a post once in three days.
Anyway, hello world posts should be short.