Skip to content

Instantly share code, notes, and snippets.

View organicaudio's full-sized avatar
💻
Working away on my plastic rectangle... Lappy 486

Scott Eh? organicaudio

💻
Working away on my plastic rectangle... Lappy 486
View GitHub Profile
@organicaudio
organicaudio / appsScript_ListFilesFolders_ver.2.js
Created April 10, 2021 15:11 — forked from mesgarpour/appsScript_ListFilesFolders_ver.2.js
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/*
* Copyright 2017 Mohsen Mesgarpour
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@organicaudio
organicaudio / gist:9652227321feb371c5ebad2749ae34ba
Created April 9, 2021 08:08 — forked from richard-to/gist:8797504
Google App Script to parse specific emails and write to Google Sheets
// Modified from http://pipetree.com/qmacro/blog/2011/10/automated-email-to-task-mechanism-with-google-apps-script/
// Globals, constants
var LABEL_PENDING = "pending";
var LABEL_DONE = "done";
// processPending(sheet)
// Process any pending emails and then move them to done
function processPending_(sheet) {
@organicaudio
organicaudio / git-clearHistory
Created March 17, 2021 04:18 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@organicaudio
organicaudio / activity_media_player_lighting
Last active January 16, 2021 04:28
Home Assistant Automation - Media Player activity triggers room lighting
########################################################################
# MEDIA PLAYER ACTIVITY TRIGGERS LIGHTS
#
# when tv is playing from kodi or chromecast light will turn on
# behind tv and set to an appropriate colour for the time of day
# when devices turn off, light turns off
#
# Monitors for:
# - Kodi activity
# - Chromecast TV activity
@organicaudio
organicaudio / ha_start_notify_telegram.yaml
Last active January 16, 2021 02:40 — forked from nikosthanos/ha_start_notify_telegram.yaml
Home Assistant start Notify Telegram
blueprint:
name: HA start Notify Telegram
description: Notify telegram that Home Assistant has successfully started
domain: automation
source_url: https://gist.github.com/sawyyz/791394aa2d1d28862aa2a51444ef623f
input:
notification_title:
name: Notification title (Optional)
description: 'Default: "My Home Assistant"'
default: My Home Assistant
@organicaudio
organicaudio / HA_restart_notify_app_telegram.yaml
Created January 16, 2021 00:52 — forked from nikosthanos/HA_restart_notify_app_telegram.yaml
Home Assistant Restart Notification app & Telegram
blueprint:
name: HA Restart Notify app & telegram
description: Notify mobile HA user & telegram that Home Assistant has successfully restarted
domain: automation
source_url: https://gist.github.com/nikosthanos/0af8b2b484694ede4250ef5817bb4da4
input:
notification_title:
name: Notification title (Optional)
description: 'Default: "Home Assistant"'
default: Home Assistant
@organicaudio
organicaudio / upgrade-all-packages
Created June 14, 2017 04:41 — forked from danielvijge/upgrade-all-packages
Upgrade all packages on OpenWRT router
#!/bin/ash
echo "Updating package list..."
opkg update > /dev/null
if [ `opkg list-upgradable | cut -d " " -f1 | wc -l` -gt 0 ]; then
echo "Available updates:"
opkg list-upgradable
echo ""
@organicaudio
organicaudio / open-source-app-list
Created May 12, 2017 02:21
Open Sourced Apps Worth Remembering (Cross-Platform)
# # # # # # # # # # # # # # # # # # # # # # # # # # #
# iTerm2 (OSX)
# Terminal replacement
https://www.iterm2.com/downloads.html
# # # # # # # # # # # # # # # # # # # # # # # # # # #
@organicaudio
organicaudio / installing_netdata_ubuntu_14-04
Last active March 16, 2022 18:32
Installing Netdata on Ubuntu 14.04
What is Netdata?
Get control of your Linux servers
Simple. Effective. Awesome.
Unparalleled insights, in real-time, of everything happening on your Linux systems and applications, with stunning,
interactive web dashboards and powerful performance and health alarms.
official site > https://my-netdata.io
@organicaudio
organicaudio / osx_default_host_file
Created August 29, 2016 05:16
OSX Default Host File
##
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost