Skip to content

Instantly share code, notes, and snippets.

Working from home

Maksym mmospanenko

Working from home
Block or report user

Report or block mmospanenko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mmospanenko / pagination.html
Created Sep 9, 2019
Django bootstrap 4 pagination template
View pagination.html
{% if page.has_other_pages %}
<nav aria-label="Page navigation">
<ul class="pagination pg-dark justify-content-center">
{% if page.has_previous %}
<li class="page-item"><a class="page-link" href="?page={{ page.previous_page_number }}">&laquo;</a></li>
{% else %}
<li class="page-item disabled"><a class="page-link" href="#"><span>&laquo;</span></a></li>
{% endif %}
{% for i in paginator.page_range %}
mmospanenko / Makefile
Created Mar 9, 2019
Makefile with .env vars
View Makefile
include .env
export $(shell sed 's/=.*//' .env)
echo 'run - run django dev server'
mmospanenko / gist:b2003adab0bf47052716
Created Oct 20, 2015
Install Virtualbox Guest Additions
View gist:b2003adab0bf47052716
wget # check version
sudo mount VBoxGuestAdditions_5.0.6.iso -o loop /mnt
sudo apt-get install build-essential linux-headers-`uname -r`
sudo bash /mnt/ --nox11
sudo adduser $USER vboxsf
You can’t perform that action at this time.