Skip to content

Instantly share code, notes, and snippets.

@jsiebens
jsiebens / fabio.nomad
Last active September 24, 2023 06:23
Nomad monitoring with Thanos
job "fabio" {
datacenters = ["dc1"]
type = "system"
group "fabio" {
network {
mode = "host"
port "lb" {
static = 9999
@Omar-Elrefaei
Omar-Elrefaei / obsidian-standard-interactions.md
Last active April 13, 2023 12:24
How to make Obsidian more accessible, ergonomic, and reproducable.

While obsidian tries to create a plain-text, standard-format, future-proof notes; I found that it does a B- job of doing the same for the whole experience of using the application.

It gets some marks for supporting customization themes, plain-text representation of settings, and plugins support.

So here are some recommendations to make that experience more ergonomic and reproducible. I hope these could influence the devs and spark some interesting conversations.

Follow Standard System Interactions

  • User should be able to have multiple vaults open in different instances at the same time.
  • All vaults should have the same configuration by default.
    • Therefore, all settings should be available under ~/.config/obsidian by default.
@asrivascrealytee
asrivascrealytee / grafana.nomad.hcl
Created March 11, 2019 16:17
Grafana+loki+promtail nomad example
job "grafana" {
datacenters = ["dc1"]
type = "service"
group "grafana" {
count = 1
restart {
attempts = 10
interval = "5m"
@marklit
marklit / install.sh
Last active November 24, 2021 13:26
Bot Detection Script. Works with Apache and Nginx Log Files.
sudo apt-get update
sudo apt-get install \
python-dev \
python-pip \
python-virtualenv
virtualenv findbots
source findbots/bin/activate
curl -O http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
<?php
class Foo
{
private $foo;
private $bar;
private $baz;
}
$hydrator = function(array $data) {
@alepez
alepez / jquery-boilerplate.js
Created February 4, 2014 11:52
jquery plugin boilerplate
/*global jQuery:true*/
// jQuery Plugin Boilerplate
// A boilerplate for jumpstarting jQuery plugins development
// by Alessandro Pezzato
// Original author: Stefan Gabos http://stefangabos.ro/jquery/jquery-plugin-boilerplate-revisited/
//
// remember to change every instance of "pluginName" to the name of your plugin!
(function ($) {