Skip to content

Instantly share code, notes, and snippets.

View andrewgribben's full-sized avatar

Andrew Gribben andrewgribben

View GitHub Profile
@andrewgribben
andrewgribben / History|-719dbe4|4VIt.json
Created November 10, 2022 23:18
Visual Studio Code Settings Sync Gist
{
"terminal.integrated.fontFamily": "MesloLGS Nerd Font Mono",
"editor.fontFamily": "Meslo LGS Nerd Font Mono, Menlo, Monaco, 'Courier New', monospace",
"sync.gist": "d5c3f1e29cec4ade45c3f7529b0b684f",
"editor.renderControlCharacters": true,
"editor.wordWrap": "on",
"terminal.integrated.automationShell.linux": "",
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\wsl.exe",
"editor.fontSize": 13,
"terminal.integrated.fontSize": 12,
blueprint:
name: Heating Control
description: Control your heating with options for person home, if temp is below a specific value, set temp, and heating between specific times.
domain: automation
input:
heating:
name: Climate Device
description: The climate device to use.
selector:
entity:
@andrewgribben
andrewgribben / winter-heating.yaml
Last active January 31, 2022 22:37 — forked from r3mcos3/heating.yaml
Home Assistant Blueprint For Heating
blueprint:
name: Winter Heating Control
description: Control your heating with options for person home, if temp is below a specific value, set temp, and heating between specific times.
domain: automation
input:
heating:
name: Climate Device
description: The climate device to use.
selector:
entity:
@andrewgribben
andrewgribben / docker-compose.yml
Created May 7, 2021 09:02
Pycrytpo bot config
version: "3.6"
services:
btcgbp:
container_name: "BTC-GBP"
image: "ghcr.io/whittlem/pycryptobot/pycryptobot:latest"
restart: always
volumes:
- /home/ubuntu/docker/market/BTC-GBP/config.json:/app/config.json
- /home/ubuntu/docker/market/BTC-GBP/pycryptobot.log:/app/pycryptobot.log
- /home/ubuntu/docker/market/BTC-GBP/graphs:/app/graphs
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<HTML>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<Title>Bookmarks</Title>
<H1>Bookmarks</H1>
<DT><A HREF="javascript:(function%20()%20%7B%20var%20css%20=%20'html%20%7B-webkit-filter:%20invert(100%25);'%20+%20'-moz-filter:%20invert(100%25);'%20+%20'-o-filter:%20invert(100%25);'%20+%20'-ms-filter:%20invert(100%25);%20%7D%20img%20%7B-webkit-filter:%20invert(100%25);'%20+%20'-moz-filter:%20invert(100%25);'%20+%20'-o-filter:%20invert(100%25);'%20+%20'-ms-filter:%20invert(100%25);%20%7D%20video%20%7B-webkit-filter:%20invert(100%25);'%20+%20'-moz-filter:%20invert(100%25);'%20+%20'-o-filter:%20invert(100%25);'%20+%20'-ms-filter:%20invert(100%25);%20%7D%20html%20%7B%20background-color:%20transparent;%20%7D';%20var%20head%20=%20document.getElementsByTagName('head')%5B0%5D;%20var%20style%20=%20document.createElement('style');%20if%20(!window.counter)%20%7B%20window.counter%20=%201;%20%7D%20else%20%7B%20window.counter++;%20if%20(window.counter%20%25%20
@andrewgribben
andrewgribben / github_issues_to_csv.py
Created January 15, 2020 16:52 — forked from patrickfuller/github_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports issues from a list of repositories to individual csv files.
Uses basic authentication (Github username + password) to retrieve issues
from a repository that username has access to. Supports Github API v3.
Forked from: unbracketed/export_repo_issues_to_csv.py
"""
import argparse
import csv
from getpass import getpass
import requests
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),
description: element.parentElement.nextElementSibling.textContent.trim(),
// using style.backgroundColor might returns "rgb(...)"
color: element.getAttribute("style")
.replace("background-color:", "")
.replace(/color:.*/,"")
@andrewgribben
andrewgribben / weechat_theme.txt
Created February 21, 2018 23:39 — forked from fats/weechat_theme.txt
[weechat] The Theme™
# requires: 256 color terminal
/script install iset.pl
/script install buffers.pl
/script install colorize_nicks.py
/set weechat.look.buffer_notify_default message
/set weechat.look.color_nick_offline on
/set weechat.look.prefix_action " •"
/set weechat.look.prefix_join "▬▶"
@andrewgribben
andrewgribben / weechat.md
Created February 21, 2018 23:39 — forked from zer4tul/weechat.md
A Simple, Base16 Friendly, Weechat Setup

A Simple, Base16 Friendly, Weechat Setup

Scripts

  • Some must-have scripts
  /script install buffers.pl buffer_autoclose.py iset.pl go.py colorize_nicks.py
@andrewgribben
andrewgribben / ituneshijack.scpt
Last active March 23, 2017 16:27
Record tagged tracks from iTunes using Audio Hijack Pro
property update_delay : 1.0E-3
property output_folder : "/Users/<<ENTERUSERNAME>>/Music/"
set folder_path to output_folder
property nameOfTrack : ""
property nameOfAlbum : ""
property nameOfArtist : ""
property file_extension : ".mp3"
property check_delay : 0.1 (* How often to check for a new track *)
property write_delay : 2 (* How long to wait before updating file name *)