Skip to content

Instantly share code, notes, and snippets.

View europ's full-sized avatar

Adrián Tóth europ

  • 10:40 (UTC +01:00)
View GitHub Profile
@europ
europ / atomic-git-commits.md
Created December 13, 2022 14:57 — forked from tarrsalah/atomic-git-commits.md
Every commit should be a perfect, atomic unit of change

Original post published on gemini://drewdevault.com/2021/01/02/2021-01-02-Every-commit-should-be-perfect.gmi


Every commit should be a perfect, atomic unit of change

Good commit discipline with git pays dividends in many respects, most of which are difficult to achieve with other version control systems. Each commit to your repository’s main branch should be exactly the correct size, be it large or small, such that it introduces one atomic unit of change. It should fix one bug, introduce one feature, refactor one system, and do so completely, rather than spreading the change out across several commits.

@europ
europ / oci_instance_delete.sh
Last active March 21, 2022 08:02
terminate/delete instance in OCI using curl
#!/bin/bash
####################################################################################################
# FILEPATH: ~/.oci/config
# [DEFAULT]
# user=ocid1.user.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# fingerprint=aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
# key_file=/home/username/.oci/oci_private.pem
@europ
europ / README.md
Created December 16, 2021 13:02
kubectl print resource, subresource and corresponding verbs
@europ
europ / CentOS-Docker
Created February 24, 2021 14:08 — forked from silveraid/CentOS-Docker
Creating minimal CentOS docker image from scratch
# Create a folder for our new root structure
$ export centos_root='/centos_image/rootfs'
$ mkdir -p $centos_root
# initialize rpm database
$ rpm --root $centos_root --initdb
# download and install the centos-release package, it contains our repository sources
$ yum reinstall --downloadonly --downloaddir . centos-release
$ rpm --root $centos_root -ivh centos-release*.rpm
$ rpm --root $centos_root --import $centos_root/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
# install yum without docs and install only the english language files during the process

Beaker Task Creation

A simple guide on how to create a beaker task in the command line and upload it to the beaker server using the web-interface.

Prerequisities

  • Fedora30
  • Python3

Setup

@europ
europ / fwupd.md
Last active October 9, 2019 10:43
How to install fwupd on Fedora 30

Installing fwupd on Fedora 30

  1. install meson
    1. install
    pip3 install --user meson
    1. configure $PATH
    echo 'export PATH="$HOME/.local/bin:$PATH"' | tee -a ~/.zshrc

Dropdown

dropdown (click on me)

Hello in bash.

#!/usr/bin/env bash
echo "Hello!"
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6 python3-pip
python3.6 -m pip install <PACKAGE>
@europ
europ / git-submodule.md
Last active June 24, 2018 19:34
How to add git-submodule into repository

Add submodule

git submodule add https://github.com/<USER>/<REPOSITORY> <SUBMODULE_NAME>
git submodule update --init --recursive
git add -A
git commit
git push

Update all submodules

@europ
europ / POP3.md
Last active November 15, 2017 15:56
Setting up Dovecot (POP3)

Run in terminal

sudo apt install dovecot-imapd dovecot-pop3d
mkdir ~/maildir
mkdir ~/maildir/new ~/maildir/cur ~/maildir/tmp

Edit /etc/dovecot/dovecot.conf as superuser, append text below to the file.

protocols = pop3