Category: <span>Programavimas</span>

In order to run GitLab and GitLab Runner on your local PC, simplest way is to create docker-compose.yml file and add the following content to it: Once it’s up and running, you can access GitLab via http://localhost/ by using username root and the…

Programavimas

Programavimas

One day I got tired of entering ssh mycoolusername@my.awesome.server.com Because my username is the same on all the servers. So, what I did – I’ve created a file and added a default username for the servers: $ cat ~/.ssh/configCanonicalizeHostname yesHost *.my.awesome.server.com User mycoolusername…

Programavimas

You create a tag in GIT, accidentally pushed it into remote repository. But after some time you understood that you don’t want it. So, how can you remove a tag in GIT? You can do this easily by:git tag -d NAME_OF_YOUR_BAD_TAGgit push origin…

Programavimas

You have edited one file in GIT version control system and you want to reset (revert) changes in this file. How can you do that? Everything is simple: use checkout — in the command line. For instance:

Programavimas

Kartais atsitinka taip, kad su PHP prisijungus prie MySQL DB ir iš jos pasirinkus duomenis su SELECT, gaunami ne lietuviškos raidės (ą č ę ė į š ų ū ž) – pakeistos į neaišku kokius. Kaip to išvengti? Paprastai: 1) Naudokite UTF8 koduotę…

Programavimas