Skip to content

Instantly share code, notes, and snippets.

@marusinm
marusinm / gsoc-final-report.md
Last active January 27, 2021 04:37
This is my final report as a student participating in the Google Summer of Code 2019 at the Fedora project.

GSOC 2019

My name is Marek Marušin and during summer 2019 I was participating in Google Summer of Code at Fedora project as Python developer. This is my final report.

Quick recap

My project is release-bot maintained by Fedora org. But, I was contributing also to the ogr and release-bot-deployment.

@marusinm
marusinm / conf.yaml
Created August 16, 2019 07:07
Private configuration for release-bot with sensitive data
repository_name: marusinm
repository_owner: marusinm
github_username: marusinm
# https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
github_token: xxxxxxxxxxxxxxxxxxxxxxxxx
# time in seconds during checks for new releases
refresh_interval: 180
@marusinm
marusinm / release-conf.yaml
Created August 16, 2019 06:53
Release bot configuration for upstream repository
# whether to release on PyPi. True by default
pypi: false
# list of labels to be put on issues and PRs created by bot
labels:
- bot
- release-bot
- user-cont
# whether to allow bot to make PRs based on issues
trigger_on_issue: true
@marusinm
marusinm / ogr-example.py
Last active June 23, 2019 20:03
Example of ogr python library
from ogr.services.github import GithubService
from ogr.services.pagure import PagureService
from enum import IntEnum
class GitForge(IntEnum):
Github = 1
Pagure = 2
@marusinm
marusinm / call-ogr-services.py
Created June 23, 2019 19:09
Example of calling functions which create ogr service and project
project = None
git_forge = GitForge.Pagure
if git_forge == GitForge.Github:
# Set Github repo
project = get_github_project(
username="github-username",
repository="your-github-repo",
token="github-token")
else:
@marusinm
marusinm / create-ogr-services.py
Last active June 23, 2019 20:03
Functions for creating ogr library services
def get_github_project(username, repository, token):
"""
Create project's instance for communication with Github repository
:param username: str
:param repository: str, username or organisation
:param token: str, github token
:return: project instance
"""
service = GithubService(token=token)
# Use an official Python runtime as a parent image
FROM python:2.7-slim
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
# Install any needed packages specified in requirements.txt
//instalacia grafickeho servera
sudo apt-get install tightvncserver
//toto som este neskusal nejake nastavenie rozlisenia
vncserver :1 -geometry 800x600 -depth 24
//zapnutie grafickeho servera
tightvncserver
@marusinm
marusinm / basic docker commands
Last active May 14, 2018 06:46
docker cheat sheet
## List Docker CLI commands
docker
docker container --help
## Display Docker version and info
docker --version
docker version
docker info
## Execute Docker image

Keybase proof

I hereby claim:

  • I am marusinm on github.
  • I am marusinm (https://keybase.io/marusinm) on keybase.
  • I have a public key ASCRGXGcawlUw2rQI3nZnnMcAXI6fpNnpmD8WHXVY4ljcwo

To claim this, I am signing this object: