Skip to content

Slaffcheff's place

System administration / DevOps / Life

  • About

How to rebase?

Posted on August 16, 2021 - August 16, 2021 by Rosen Slavchev

Developers, I am pissed at you. A big chunk of your everyday duties involves source control. Not knowing how it works is unacceptable on many levels. FFS, this is developing 101. Learning GIT is in the core of every good training.

So, what is rebase? This will not be an essay, there is plenty of info on the net. I will just show you the sources:
1. https://www.atlassian.com/git/tutorials/merging-vs-rebasing
2. https://dev.to/jacobherrington/git-rebase-explained-simply-k0a

Let’s input some commands in order to understand the most common case when rebase is needed and used. You have a remote branch (master, trunk, develop, etc). You create a working/feature/hotfix/etc local branch from the remote branch and start working. We all know that sometimes you work in a team with other developers, sysadmins, QAs and so on. They all do commits and merge them eventually. Some tasks take more time than couple of minutes, sometimes days. During this time, there are changes applied on the remote branch. When you finally push your changes, DANG. You see in your GIT provider (github, bitbucket, gitlab) that there is a conflict. And then .. you need to rebase. Please, don’t close your MR/PR, delete the branch and re-do the whole thing. Just learn how to use rebase. It’s not rocket science, I promise.

For the following git commands we will use master branch as an example but of course you can adjust it to your needs, I am sure 🙂

While you are on your local branch and hit a conflict the party starts. First we need to visit master branch (remote).

git checkout master


And pull the new remote changes that cause the conflict.

git pull origin master


When the changes are pulled, you can go back to your branch.

git checkout local-branch
git rebase master



In some cases you will need to clear some lines from the code but git will inform you for that. If this occurs, you need to clean whatever git wants and then do:

git add/rm file1 file2
git rebase --continue



When the work is done and you finally rebased properly, you can push. Because of the rebase, you will need to force push them.
git push --force origin local-branch

That’s all. Please rebase. Thanks.

Posted in Quicks, Uncategorized

Segmentation fault on openSUSE Leap 15.0

Posted on October 7, 2019 - October 10, 2019 by Rosen Slavchev

I currently hit this error on every zypper command. This script basically brute forces repos:


echo
  echo "zypper dup --auto-agree-with-licenses --allow-vendor-change -y --download-only"
  echo
iteration=0
  rc=-1
  while [ $rc -ne 0 ]; do
    zypper dup --auto-agree-with-licenses --allow-vendor-change -y --download-only
    rc=$?
    echo
    echo "   Count: $iteration"
    echo "Ret Code: $rc"
    echo
    sleep 2
    ((iteration++))
 done
 echo
Posted in Linux, openSUSETagged openSUSE

Подпишете петицията ПРОТИВ чл. 13.

Posted on November 26, 2018 by Rosen Slavchev

Всеки потребител на интернет би трябвало вече да е запознат с чл. 13 и за какво служи. Все пак резюмирано: интернет доставчиците имат право да филтрират интернета, който предлагат. Това би довело до масова цензура, поръчкови новини и още по-голяма корупция. Също така, това е поредната стъпка към централизацията на интернета. НЕ ГО ЖЕЛАЕМ И НЕ НИ ТРЯБВА. Ако сте адекватен човек, подпишете ПЕТИЦИЯТА.

Posted in Uncategorized

Free image stock and graphical resources

Posted on June 19, 2018 - June 21, 2018 by Rosen Slavchev

Recently, I needed huge photo database from which I can choose couple of images for an upcoming project of mine for the web site I am preparing. It is a product oriented web site but right now I don’t posses the product so it was simply impossible to pay for photographer. Until the product is here, I needed photos /or any graphical resources/. So, here is the list of what I’ve managed to collect:

  • Pexels
  • Unsplash
  • Stocks.Adobe.com
  • 123rf
  • Deposit Photos
  • PNG Tree
  • PixaBay

Blog posts (in Bulgarian with free resources):

  • LifeHack.BG
  • Jump.BG

 

Posted in Quicks, UncategorizedTagged database, free, images, photos, resources, stock

Българският mirror на openSUSE

Posted on June 4, 2018 - June 4, 2018 by Rosen Slavchev

От openSUSE Bulgaria можем да се похвалим вече с mirror с приятните 10 gbit свързаност. Можете да изтеглите вариациите на дистрибуцията от следния линк: http://opensuse.ipacct.com/

Posted in openSUSETagged bulgaria, mirror, openSUSE

openSUSE в България с 2 събитие за този месец!

Posted on April 25, 2018 - April 25, 2018 by Rosen Slavchev

С момчетата от openSUSE България започнахме да обикаляме из родината и да проповядваме словото на гущера. През изминалата седмица се състоя събитието във VarnaLab.

На 26.04, т.е. утре, предстои събитието в София. Какво ще представлява?

В малко повече детайли, програмата изглежда така – ще започнем с кратък преглед на историята на SUSE и openSUSE, последван от представяне на екосистемата на SUSE/openSUSE, с маркиране на основните компоненти и връзките помежду им. След това ще кажем няколко думи за това какво всъщност е openSUSE и какво интересно има там, както за начинаещи, така и за професионални потребители. Накрая ще покажем в действие някои от по-интересните неща, за които сме говорили.

Адресът е:
гр. София, бул. “Акад. Иван Гешов” 2Е, сграда 3, етаж 2.

За повече информация се обърнете към мен, към Димитър Захариев или Радо Панев!

Posted in openSUSE, UncategorizedTagged bgosug, conference, openSUSE, varnalab

How to add Skype account to pidgin?

Posted on April 4, 2018 - April 4, 2018 by Rosen Slavchev

Unfortunately, I have couple of Skype accounts. And I desperately wanted to combine them all in one messenger. That’s where the idea of Pidgin came up. But of course nothing on this world is easy for me. I had to manually add Skype plugin for pidgin in order to add my accounts.

Here are the steps:

  1. Kill all running pidgin proccesses
  2. sudo apt-get install libglib2.0-dev libjson-glib-dev libpurple-dev
  3. git clone git://github.com/EionRobb/skype4pidgin.git
  4. cd skype4pidgin/skypeweb
  5. make
  6. sudo make install

Then start Pidgin. When you try to add new account to Pidgin you will find Skype (HTTP) there waiting for you.

Posted in LinuxTagged im, linux, pidgin, skype, ubuntu

2018 so far

Posted on April 2, 2018 - April 3, 2018 by Rosen Slavchev

Време е да тегля чертата към края на първата четвърт на текущата 2018 година. Замесих се в няколко проекта, ако мога така да ги нарека, които посвоему изглеждат доста обещаващи. Може би трябва да ги изброя:

  1. DevSecOps
    Станах част от новисъздадено движение, общност и група наречено DevSecOps, което е съставено изцяло от българи. Имаше голяма драма около името на групата. Първото беше разхвърляното “Linux DevOps Pentest”, след което преминахме към сравнително по-оригиналното “Оркестър SDKOM”. Това за нещастие се прие изключително зле от почти всички членове, въпреки че на повторното преброяване запази горда втора позиция по гласове. Името дойде доста случайно, но според мен е доста приятнo: Оркестър ( оркестратор ) Security Dev Krali Operations Marko. Та след грубото отхвърляне ( имаше Н Е Л Е П И доводи защо името не става), останахме с простото, но ефектно DevSecOps.
  2. openSUSE Bulgaria
    Стартирах с няколко момчета по-сериозна организация около обогатяването на българския народ на тема openSUSE и защо това distro си заслужава вниманието. Сред нашите редици е тарторът за България на тема openSUSE – Димитър Захариев. Друг от хората, които наскоро се зарибиха и изявиха голямо жаление да помогнат за тази цел е Радо Панев. Радвам се, че мога да споделя тази обща цел с тях, тъй като са наистина кадърни хора и вярвам, че ще постигнем успех. Stay tuned, засега не мога да кажа повече.
  3. initLab
    Станах член в initLab, което е първият hackerspace в България. Мястото е много готино, пълно е с готини хора и смятам, че трябва да бъда член и да помогна на момчетата и момичетата там със символичното дарение под формата на членски внос. Заслужава си!
  4. Резюме
    Комбинирано от точките с хората от т.2 ( и още много други от т.1 ) си сформирахме първото събиране на групата от т.1 в мястото от т.3 🙂 Предстоят още много сбирки, които засега протичат под формата на lightning talks, т.е. изнасяне на кратки презентации на тема по избор или тема, която някой е заявил предварително да чуе. Получи се силно начало според мен, което завърши с бири ( win ). Предстои сбирка по networking и няколко интересни workshop-a, които замисляме. Повече можете на научите във Facebook групата или в календара на initLab.

Q1 беше интересен и най-хубавото е, че предстоят все по-хубави и нови неща около гореспоменатите!

Posted in Up to dateTagged DevSecOps, initLab, openSUSE

Чл. 13 или как се опитват да ни наложат цензура.

Posted on March 12, 2018 - April 2, 2018 by Rosen Slavchev

Задава се нова проектидиректива на ЕК, която гласи “всички интернет сайтове, работещи със съдържание, качено от потребителите, ще трябва да инсталират автоматични системи за предварително следене, разпознаване и триене на съдържание”.

За щастие вече има хора, които се активизираха срещу поредната глупост: Article13

Очевидно е, че алгоритмите НЕ могат и НЯМА да се справят да взимат решения вместо нас. Дори не мисля да изброявам причините за техния провал. Ясно е защо.

Влезте, прегледайте подробно информацията, преценете дали искате да Ви бъде налага цензура, дали ако сте стартиращ ресурс без почти никакъв ресурс искате да плащате за скъпи софуери, които да ви забраняват определени постове и т.н.

 

Posted in Web FreedomTagged browsing, freedom, privacy, web

How to make offline web site mirror?

Posted on January 30, 2018 - April 2, 2018 by Rosen Slavchev

There are plenty of times where I have just seen a tutorial/news/article but I don’t have the time to read it. Actually, the last time I needed this was when I saw really nice how-tos regarding starting successful online business. And it was completely free. The guys basically showed step by step how to choose and sell products. And in their articles they started from $0 to $2000 for 1 month. And it seemed interesting. And now it’s all gone and they sell it for $75. Of course, you know me, I managed to find a way to get those stuff and then I made offline mirrors to all pages. It is really simple. I used ‘wget’.

wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org

Where:

–mirror – Makes (among other things) the download recursive.
–convert-links – convert all the links (also to stuff like CSS stylesheets) to relative, so it will be suitable for offline viewing.
–adjust-extension – Adds suitable extensions to filenames (html or css) depending on their content-type.
–page-requisites – Download things like CSS style-sheets and images required to properly display the page offline.
–no-parent – When recursing do not ascend to the parent directory. It useful for restricting the download to only a portion of the site.

Posted in Linux, QuicksTagged mirroring, site, web, wget

Posts navigation

Older posts

Recent Posts

  • How to rebase?
  • Segmentation fault on openSUSE Leap 15.0
  • Подпишете петицията ПРОТИВ чл. 13.
  • Free image stock and graphical resources
  • Българският mirror на openSUSE

Archives

  • August 2021
  • October 2019
  • November 2018
  • June 2018
  • April 2018
  • March 2018
  • January 2018
  • October 2017
  • August 2017
  • July 2017
  • July 2016
  • September 2015
  • August 2015
  • March 2015
  • February 2015

Categories

  • Automation
  • Cyber security
  • Hacking
  • Linux
  • MySQL
  • openSUSE
  • Phrack
  • Quicks
  • Scripting
  • Uncategorized
  • Up to date
  • Web Freedom
  • Windows Server
Proudly powered by WordPress | Theme: micro, developed by DevriX.