Skip to content

Instantly share code, notes, and snippets.

@sonyon
sonyon / Uptime-Kuma-Status-Page-Dark-Mode-High-Density-Tweaks.css
Created June 27, 2024 21:01 — forked from brooksvb/Uptime-Kuma-Status-Page-Dark-Mode-High-Density-Tweaks.css
These CSS tweaks are for higher density display for Uptime Kuma status pages in dark mode.
:root {
--min-item-width: 28ch;
--max-item-width: .5fr;
--grid-spacing: .25rem;
--item-padding: .25rem;
}
/* Let items expand on small screens */
@media (max-width: 600px) {
:root {
@sonyon
sonyon / parse-wordpress-rss-feed.php
Created May 26, 2022 20:52 — forked from james2doyle/parse-wordpress-rss-feed.php
Read a Wordpress RSS Feed using Guzzle
<?php
// https://wordpress.org/news/feed/
$client = new \GuzzleHttp\Client(array(
'base_uri' => 'https://wordpress.org/news/', // homepage for the wordpress site
'timeout' => 2.0,
));
$response = $client->get('feed/'); // get the feed page with the RSS on it
$data = $response->getBody()->getContents();
$feed = simplexml_load_string($feed);
@sonyon
sonyon / installNextCloud-ssl.sh
Created July 30, 2018 12:05 — forked from autoize/installNextCloud-ssl.sh
NextCloud Install Script for Ubuntu 16.04, with automatic SSL by Let's Encrypt
#!/bin/bash
# NextCloud Installation Script for Ubuntu 16.04
# with SSL certificate provided by Let's Encrypt (letsencrypt.org)
# Author: Autoize (autoize.com)
nextcloud_url='https://example.com' # Full URL of NextCloud instance
letsencrypt_domains='-d example.com -d www.example.com' # Hostname(s) to obtain SSL certificate for, following -d flag
letsencrypt_email='[email protected]' # Admin contact email for Let's Encrypt
nextcloud_version='12.0.3' # Desired NextCloud version
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html