Skip to content

Instantly share code, notes, and snippets.

Дамјан Георгиевски gdamjan

Block or report user

Report or block gdamjan

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
pkgbase = nextcloud-uwsgi-service
pkgdesc = run nextcloud as a DynamicUser=yes, socket activated uwsgi service
pkgver = 0.4
pkgrel = 1
url =
arch = any
license = MIT
depends = nextcloud>=17.0.0
depends = uwsgi-plugin-php
depends = nginx
# /etc/systemd/system/
gdamjan / PKGBUILD
Created Aug 28, 2019
network-manager-applet with appindicator, without docs
# Maintainer: Jan de Groot <>
# Maintainer: Jan Alexander Steffens (heftig) <>
# Contributor: Arjan Timmerman <>
# Contributor: Wael Nasreddine <>
# Contributor: Tor Krill <>
# Contributor: Will Rea <>
pkgname=(network-manager-applet nm-connection-editor libnma)
pkgdesc="Applet for managing network connections"
gdamjan /
Last active Aug 18, 2019
Mozilla WebThings iot gateway - run as service on debian 10
  1. install from
  2. install debian dependencies
  3. build
  4. copy static and build to /opt/mozilla-iot
  5. run npm install --production and then move node_modules to /opt/mozilla-iot
  6. make /opt/mozilla-iot/config/default.js
  7. make /etc/systemd/system/mozilla-iot.service (run as a dynamic user and keep state in /var/lib/mozilla-iot)
gdamjan /
Last active Aug 26, 2019
Install discourse

Tested on debian 10


# build deps
sudo apt install build-essential zlib1g-dev liblzma-dev libpq-dev libxml2-dev libxslt-dev \
    ruby-dev ruby-bundler
# runtime deps
sudo apt install uwsgi-plugin-rack-ruby2.5 imagemagick \
    pngquant optipng jhead jpegoptim gifsicle
remove /etc/apt/sources.list.d/ftp_us_debian_org_debian.list # stretch backports
comment out /etc/apt/sources.list.d/apache_bintray_com_couchdb_deb.list # no buster repo yet
sed -i 's/stretch/buster/' /etc/apt/sources.list.d/* /etc/apt/sources.list
apt update && apt upgrade && apt full-upgrade
apt autoremove --purge ; apt clean
then install self-compiled:
- couchdb_2.3.1~buster_amd64.deb
View coreos.xml
<domain type='kvm' id='5' xmlns:qemu=''>
<libosinfo:libosinfo xmlns:libosinfo="">
<libosinfo:os id=""/>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
View demo.erl
%%% export these cause they are spawned:
-export([server_loop/2, client_loop/3]).
main() ->
{ok, Pid} = server(2),
client(Pid, critical, 15),
client(Pid, normal, 10),
gdamjan /
Last active May 16, 2019
configure a wifi interface to 4add/wds mode via iwd
from gi.repository import GLib
import dbus
import dbus.mainloop.glib
import sys
if len(sys.argv) != 2:
print('Usage: {} <mac-address>'.format(sys.argv[0]))
gdamjan / buildah.yml
Last active Sep 29, 2019
ansible + podman & buildah
View buildah.yml
# works with ansible 2.7
# ansible-playbook buildah.yml
# `debian:stretch` and `image-name` should probably be extra vars
- name: bootstrap a container
hosts: localhost
become: no
gather_facts: no
You can’t perform that action at this time.