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
#!/bin/bash
#
# Copyright 2011, Tim Branyen @tbranyen <[email protected]>
# Dual licensed under the MIT and GPL licenses.
#
# Automatically clone single or multiple repos into a folder,
# great for setting up a git projects folder.
#
# Install: curl https://gist.github.com/raw/902154/github.sh > /usr/local/bin/gh
# chmod +x /usr/local/bin/gh
@organicaudio
organicaudio / check_docker_container.sh
Created April 30, 2021 10:14 — forked from pjosalgado/check_docker_container.sh
Bash Script to Check the Status of a Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: [email protected]
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Edited by: Paulo José de Oliveira Salgado
# Email: [email protected]
@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 [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@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 / advancedsettings.xml
Last active January 19, 2016 08:11 — forked from SimpleHomelab/advancedsettings.xml
AdvacedSettings.xml for Kodi with MySQL and other tweaks.
<!-- General Settings -->
<advancedsettings>
<loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging -->
<playcountminimumpercent>95</playcountminimumpercent>
<skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) -->
<nodvdrom>true</nodvdrom>
<!-- Streaming Optimization -->
<network>
<buffermode>1</buffermode> <!-- Comment: Default is 1 -->
@organicaudio
organicaudio / osx_yosemite_disable_features.sh
Last active December 31, 2015 03:57 — forked from guycalledseven/osx_yosemite_disable_features.sh
Disabling OSX Yosemite annoyances / features I have no use of
# Tested on OSX Yosemite 10.10.4
# XXX TODO
# should I disable com.google.Keystone.Agent ??
# http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/
# Stop DS_Store file creation on network connections
# restart Finder afterwards
defaults write com.apple.desktopservices DSDontWriteNetworkStores true