Skip to content

Instantly share code, notes, and snippets.

View giuliomagnifico's full-sized avatar

Giulio Magnifico giuliomagnifico

View GitHub Profile
@Saudumm
Saudumm / News Widget.js
Last active November 24, 2024 03:43
iOS News Widget for Scriptable (RSS Feeds and WordPress websites
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: file-alt;
/********************************************
* *
* NEWS WIDGET (WORDPRESS AND RSS) *
* *
* v1.1.3 - made by @saudumm *
* https://twitter.com/saudumm *
* *
@ChristophObermeier
ChristophObermeier / AirQuali_fix.js
Last active May 12, 2026 23:35
iOS Scriptable Widget for current Air Quality / Pollution in your city #stayhealthy #enjoyfreshair #stopcancer.
// ***Air Quality Widget***
//
// Copyright (C) 2020 by ChristophObermeier
//
// Permission to use, copy, modify, and/or distribute this software is hereby granted.
// However you have to respect the Terms of Service of the Air Quality Open Data Platform: https://aqicn.org/api/tos/
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
@fasmat
fasmat / wg_client.sh
Created February 13, 2021 16:09
A short shell script to manage wireguard clients
#!/bin/bash
show_usage() {
echo "Usage: $0 [list|add|show|remove] [client_name]"
echo " list lists all registered peers"
echo " add adds a new client with the given name to wireguard"
echo " show shows the wireguard configuration for the client with the given name"
echo " remove removes a client from wireguard"
}