Skip to content

Instantly share code, notes, and snippets.

View ibr's full-sized avatar
🎯

Konrad Riedel ibr

🎯
View GitHub Profile
@amtinits
amtinits / http.conf
Created December 12, 2011 04:14
Get logwatch to pick up nginx logs - put this in /etc/logwatch/conf/logfiles/
LogFile = nginx/*access.log
LogFile = nginx/*access.log.1
Archive = nginx/*access.log.*.gz
# Expand the repeats (actually just removes them now)
*ExpandRepeats
# Keep only the lines in the proper date range...
*ApplyhttpDate
@PhilHudson
PhilHudson / active_user
Created June 17, 2016 15:15
Dual-screen interactive slideshow screensaver for MATE
#!/usr/bin/env bash
# Standard-repo requirements:
# w, awk, head, mktemp, split, grep, ck-list-sessions, sed, getent, cut
# TODO Check whether awk can't exit immediately after first match
ACTIVE_USER=`w --no-header -s | awk '/ :0 / {print $1}' | head -1`
[ -n "$ACTIVE_USER" ] && {
echo "$ACTIVE_USER"
exit 0
@nrollr
nrollr / nginx.conf
Last active June 9, 2024 23:39
NGINX config for SSL with Let's Encrypt certs
# UPDATED 17 February 2019
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
listen [::]:80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
}
# SSL configuration
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active July 19, 2024 16:23 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"
@rphl
rphl / incidence.js
Last active December 18, 2023 12:33 — forked from kevinkub/incidence.js
COVID-19 Inzidenz-Widget für iOS innerhalb Deutschlands 🇩🇪 (Kreis/Stadt + Bundesland + Trend)
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: briefcase-medical;
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
// Alte version siehe: https://gist.github.com/rphl/0491c5f9cb345bf831248732374c4ef5/revisions
WIDGET WURDE IN EIN REPO VERSCHOBEN, SIEHE:
https://github.com/rphl/corona-widget
@brainno722
brainno722 / README.md
Last active February 17, 2024 11:04
Concentric circle info widgets (Small)

Concentric Circle Info Widget

Instructions

  1. Install Scriptable for iOS
  2. Copy/Paste the code into a new file
  3. Adjust colors/font
  4. Add the script to a widget (medium)
  5. It should appear similar to the screenshots

Transparent/no background

@notjosh
notjosh / script.js
Last active January 29, 2021 16:59
COVID vaccination progress in Germany
'use strict';
const CONFIG = {
dataURL: 'https://rki-vaccination-data.vercel.app/api',
alsoDrawState: undefined,
};
const fetchJSON = async (url) => {
const request = new Request(url);
const data = await request.loadJSON()