Skip to content

Instantly share code, notes, and snippets.

@mike391
mike391 / custom.js
Created January 6, 2020 03:59 — forked from altryne/Badges color change config.yaml
Sharing some home assistant settings
// Monkey patch hui-view to remove overflow and show borders
customElements.whenDefined("hui-view").then( () => {
const HuiView = customElements.get("hui-view").prototype;
const oldRenderStyles = HuiView.renderStyles;
HuiView.renderStyles = function() {
let original = oldRenderStyles();
original.strings = [original.strings[0] + `
<style>
.column {
overflow-y: hidden;
@mike391
mike391 / mojave.xml
Created August 28, 2019 13:31 — forked from trongthanh/mojave.xml
macOS Mojave dynamic background re-implement as GTK+ background slideshow. Background images are changed to reflect the time of the day.
<!-- Instructions:
- Download and unzip Mojave dynamic background here: https://files.rb.gd/mojave_dynamic.zip
- Rename the extracted folder as "mojave-background" (Excuse the trouble but I renamed it on my machine and already use that path in the XML file)
- Save this xml file next to the Mojave background files
- Fix the path to the background images below (better using absolute path)
- Lastly, either:
+ GNOME: Use gnome-tweaks tool to select this XML as wallpaper (as default wallpaper settings won't let you choose wallpaper from custom path)
+ MATE: Go to background setting (in Appearance) > Choose +Add... > make sure **All files** filter is selected at the bottom right > Then choose mojave.xml
-->
<background>
@mike391
mike391 / cloudSettings
Last active November 21, 2018 16:38
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-11-21T16:38:49.285Z","extensionVersion":"v3.2.0"}