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…
Category: <span>Programavimas</span>
Sometimes you need to look for something (i.e. grep) in file, but you want to see several lines BEFORE and AFTER the line you’re looking for. So, how can you do this in Linux? Try: It looks for text “Deploying” in file catalina.out…
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…
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…
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:
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ę…