Skip to content

Instantly share code, notes, and snippets.

View jippi's full-sized avatar

Christian Winther jippi

View GitHub Profile
@jippi
jippi / rc.d
Created July 5, 2011 19:58 — forked from vvuksan/gist:988765
Logstash Init script
update-rc.d logstash-shipper defaults
update-rc.d logstash-reader defaults
@jippi
jippi / .env
Last active January 1, 2024 12:54
Bird UI with Glitch-SOC
# /.env
# Mastodon Glitch Docker tag to use
#
# See: https://github.com/glitch-soc/mastodon/pkgs/container/mastodon
export MASTODON_VERSION="nightly.2023-12-31"
export ROOT_PATH="/data/local/mastodon"
export BIN_PATH="${ROOT_PATH}/scripts"
export DATA_PATH="${ROOT_PATH}/data"
{% set _now = now() %}
======
quarter_ceil={{ _now - timedelta(microseconds=_now.microsecond, seconds=_now.second, minutes=_now.minute % 15) }}
quarter_floor={{ _now + timedelta(microseconds=-_now.microsecond, seconds=-_now.second, minutes=15-(_now.minute % 15)) }}
======
quarter_ceil+4h={{ _now - timedelta(microseconds=_now.microsecond, seconds=_now.second, minutes=_now.minute % 15, hours=-4) }}
quarter_floor+4h={{ _now + timedelta(microseconds=-_now.microsecond, seconds=-_now.second, minutes=15-(_now.minute % 15), hours=4) }}
# Mods
# UI Overhaul Dynamic
modName=UI Overhaul Dynamic
# Submods
modName=UI Overhaul Dynamic - Checksum Schism Version
modName=UI Overhaul Dynamic - Ascension Slots
@jippi
jippi / build.xml
Created May 12, 2012 18:33
Ant / Jenkins / CakePHP build file
<?xml version="1.0" encoding="UTF-8"?>
<project name="name-of-project" default="build-parallel">
<target name="build"
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox,phpunit,phpcb"/>
<target name="build-parallel"
depends="prepare,lint,tools-parallel,phpunit,phpcb"/>
<target name="tools-parallel" description="Run tools in parallel">
#!/bin/bash
#
# based on https://gist.github.com/brauliobo/d3692d3ac5eb8b00e863
# our version handle spaces and other chars we use in the launch configuration
#
BOLD="\e[1m"
RESET="\e[0m"
GREEN="\e[32m"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Har aldrig oplevet at der er et interaktivt slideshow i en mail.
<br class="">
<div>
<br class="">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=
=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: s=
pace; line-break: after-white-space;" class="">Har aldrig oplevet at der = er et interaktivt slideshow i en mail.
<br class="">
<html>
<head>
<meta http-equiv=3D "Content-Type" content=3D "text/html; charset=
=3Dutf-8">
</head>
<body style=3D "word-wrap: break-word; -webkit-nbsp-mode: s=
pace; line-break: after-white-space;" class=3D "">Har aldrig oplevet at der = er et interaktivt slideshow i en mail.
<br class=3D "">
{
"bind_addr": "0.0.0.0",
"data_dir": "/var/lib/nomad",
"datacenter": "xxx",
"disable_update_check": true,
"enable_syslog": true,
"leave_on_interrupt": true,
"leave_on_terminate": true,
"log_level": "DEBUG",
"name": "xxxx",