Category Archives: cli

Open GIT repo URL with git open CLI command

Thanks to Paul Irish for the git open command.  

Posted in cli, git | Tagged , | Leave a comment

Composer memory limit errors

According to docs https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors I ended up aliasing composer command: alias composer=”php -d memory_limit=-1 $(which composer)”

Posted in cli, php | Tagged | Leave a comment

Open new Chrome window from command line via SSH

I switch between computers and sometimes when I’m switching I need to push an URL/prepare a window so found a solution with the following command: mike@remotehost $ export DISPLAY=:0; nohup chromium –new-window https://github.com/deployphp/deployer#installation UPDATE 2017-06-18

Posted in browser, cli, linux, ssh, Uncategorized | Tagged , , , , | Leave a comment

Control Spotify from command line

Working on more than one computer requires some remote control and the command line is pretty elegant solution for me. Example scripts are available at https://gist.github.com/mikaelz/b01b4cea83c9466fc57b I also attached the code to the multimedia keys for the keyboard in .config/awesome/rc.lua

Posted in cli | Tagged , | Leave a comment

Control VLC playback from command line

Working on two computers requires some control from command line (CLI). Glad that VLC implemented command line control. I just found a solution at http://stackoverflow.com/a/9047708/289404 and made some command scripts in my home directory bin (~/bin). Scripts that I use can be … Continue reading

Posted in cli | Tagged , , | Leave a comment

Import Git repo with history log into Subversion repo

Many thanks to http://eikke.com/importing-a-git-tree-into-a-subversion-repository/ When typing git svn init exclude /trunk at the end (I failed with this), because .git/config in the svn section defines the fetch path and appends the /trunk [svn-remote “svn”] url = https://EXAMPLE.COM:PORT/svn/repo fetch = trunk:refs/remotes/origin/trunk … Continue reading

Posted in cli, git, linux, svn | Tagged , | Leave a comment

Remember SVN password

Finally found the solution at http://stackoverflow.com/a/17330250/289404 After first successful authentication edit $HOME/.subversion/servers [global] store-passwords = yes store-plaintext-passwords = yes Than $HOME/.subversion/config [auth] password-stores = Delete old auth data: rm -r $HOME/.subversion/auth/ After this checkout SVN repo again and the credentials … Continue reading

Posted in cli, linux, trick | Tagged | Leave a comment