Skip to content

Instantly share code, notes, and snippets.

View dulldusk's full-sized avatar

Fabrício Seger Kolling dulldusk

View GitHub Profile
dulldusk / jquery.photoswipe.js
Created July 11, 2021 05:42 — forked from kshnurov/jquery.photoswipe.js
PhotoSwipe: init from DOM using jQuery
(function( $ ) {
$.fn.photoswipe = function(options){
var galleries = [],
_options = options;
var init = function($this){
galleries = [];
$this.each(function(i, gallery){
id: i,
dulldusk /
Created June 14, 2020 10:34 — forked from eqhmcow/
HFSC - linux traffic shaping's best kept secret
# As the "bufferbloat" folks have recently re-discovered and/or more widely
# publicized, congestion avoidance algorithms (such as those found in TCP) do
# a great job of allowing network endpoints to negotiate transfer rates that
# maximize a link's bandwidth usage without unduly penalizing any particular
# stream. This allows bulk transfer streams to use the maximum available
# bandwidth without affecting the latency of non-bulk (e.g. interactive)
# streams.
dulldusk /
Created December 27, 2018 07:00
Script created for use on MotionEyeOs, to change configurations for day and night.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Script created for use on MotionEyeOs, to change configurations for day and night
# Crontab execute every 5 min
# 02,07,12,17,22,27,32,37,42,47,52,57 * * * * /usr/bin/python /data/ >> /var/log/dayornight.log
from math import floor, ceil, pi, atan, tan, sin, asin, cos, acos
dulldusk /
Created October 5, 2015 03:20 — forked from shawnrice/
A template to write a quick daemon as a bash script
# This is a skeleton of a bash daemon. To use for yourself, just set the
# daemonName variable and then enter in the commands to run in the doCommands
# function. Modify the variables just below to fit your preference.