Skip to content

Instantly share code, notes, and snippets.

Avatar
🖖
‌‌

John Molakvoæ skjnldsv

🖖
‌‌
View GitHub Profile
@skjnldsv
skjnldsv / index.html
Created Aug 7, 2020
Nextcloud header user avatar blur test
View index.html
<div class="header__background">
<img src="https://dev.skjnldsv.com/avatar/admin/4096?v=7310">
</div>
View akvcam.default.ini
# Virtual camera configuration file example.
#
# Please, read the instructions to the end.
[Cameras]
# First at all you must define how many virtual cameras will be created.
cameras/size = 2
# Then, define it's properties.
#
View nginx.conf
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@skjnldsv
skjnldsv / docker-compose-traefik.yml
Last active Mar 5, 2020
A docker compose swarm file to run traefik as default balancer and expose the dashboard behind secured auth & ssl certs
View docker-compose-traefik.yml
version: '3.7'
services:
proxy:
# The official v2 Traefik docker image
image: traefik:v2.1
ports:
# Bind to host, advanced syntax to get real IPs
- target: 80
@skjnldsv
skjnldsv / docker-compose-rancher.yml
Last active Mar 4, 2020
A docker compose file to run rancher behind traefik
View docker-compose-rancher.yml
version: '3'
services:
rancher:
image: rancher/rancher:latest
restart: unless-stopped
ports:
- 80
- 443
networks:
View sxhkdrc
#! /bin/sh
# wm independent hotkeys
XF86AudioRaiseVolume
pulseaudio-ctl up
XF86AudioLowerVolume
pulseaudio-ctl down
XF86AudioMute
pulseaudio-ctl mute
XF86MonBrightnessUp
xbacklight -inc 10%
View bspwmrc
#! /bin/sh
bspc config border_width 0
bspc config window_gap 20
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
#bspc config focus_by_distance true
#bspc config history_aware_focus true
View NC Drone order fix.user.js
// ==UserScript==
// @name NC Drone order fix for drone 1.0
// @namespace http://nextcloud.com/
// @version 0.2
// @description Put failed jobs on top
// @author MorrisJobke & Skjnldsv
// @match https://drone.nextcloud.com/nextcloud/*
// ==/UserScript==
let init = function (delay) {
@skjnldsv
skjnldsv / index.html
Last active Nov 15, 2018
Perf: Ensure unique id objects vs array
View index.html
<div id="results">
</div>