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
View .SRCINFO
pkgbase = nextcloud-uwsgi-service
pkgdesc = run nextcloud as a DynamicUser=yes, socket activated uwsgi service
pkgver = 0.4
pkgrel = 1
url = https://aur.archlinux.org/packages/nextcloud-uwsgi-service/
arch = any
license = MIT
depends = nextcloud>=17.0.0
depends = uwsgi-plugin-php
depends = nginx
View custom.target
# /etc/systemd/system/custom.target
[Unit]
AllowIsolate=yes
@gdamjan
gdamjan / PKGBUILD
Created Aug 28, 2019
network-manager-applet with appindicator, without docs
View PKGBUILD
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Arjan Timmerman <arjan@archlinux.org>
# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
# Contributor: Tor Krill <tor@krill.nu>
# Contributor: Will Rea <sillywilly@gmail.com>
pkgbase=network-manager-applet
pkgname=(network-manager-applet nm-connection-editor libnma)
pkgdesc="Applet for managing network connections"
@gdamjan
gdamjan / README.md
Last active Aug 18, 2019
Mozilla WebThings iot gateway - run as service on debian 10
View README.md
  1. install from https://github.com/mozilla-iot/gateway
  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
gdamjan / README.md
Last active Aug 26, 2019
Install discourse
View README.md

Tested on debian 10

Build

# 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
View BUSTER-UPGRADE.txt
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='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>coreos</name>
<uuid>42cce676-5a52-478f-9941-5bdfc37321e9</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://fedoraproject.org/fedora/30"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
View demo.erl
-module(demo).
-export([main/0]).
%%% 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
gdamjan / async-set-wds.py
Last active May 16, 2019
configure a wifi interface to 4add/wds mode via iwd
View async-set-wds.py
#!/usr/bin/python3
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
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.