Skip to content

Instantly share code, notes, and snippets.

View willscripted's full-sized avatar

Will O'Brien willscripted

View GitHub Profile
@Blackshome
Blackshome / sensor-light.yaml
Last active July 26, 2024 15:26
Home Assistant Sensor Light that can be used in Blueprints
blueprint:
name: Sensor Light
description: >
# 💡 Sensor Light
**Version: 7.0**
Your lighting experience, your way - take control and customize it to perfection! 💡✨
@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active July 10, 2024 15:08
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@APTy
APTy / Makefile
Last active June 13, 2024 16:24
Run a makefile command with cleanup
# This file includes example usage and tests for the 'run-with-cleanup' call-able function.
.PHONY: test test-success test-failure main cleanup
-include cleanup.mk
test:
test.sh
main:
javascript: (function () {
function c() {
var e = document.createElement("link");
e.setAttribute("type", "text/css");
e.setAttribute("rel", "stylesheet");
e.setAttribute("href", f);
e.setAttribute("class", l);
document.body.appendChild(e)
}
function h() {
@patmigliaccio
patmigliaccio / install-git.bat
Last active November 10, 2023 23:57
Quick install Git for Windows with batch script. Include the git*.exe install executable in the same directory as this script.
:: Copyright (C): 2017 Pat Migliaccio
:: pat@patmigliaccio.com
::
:: LICENSE: MIT
::
:: File: install-git.bat
::
:: Batch file for a quick install of Git for Windows
:: Include the git*.exe install executable
:: in the same directory as this script.
@kesjam
kesjam / Blurred, Invisible Ink, and Redacted text (CSS only).markdown
Created May 5, 2016 21:10
Blurred, Invisible Ink, and Redacted text (CSS only)

Blurred, Invisible Ink, and Redacted text (CSS only)

Exploring some ways of visually hiding or obscuring text with CSS filters and pseudo-elements.

A Pen by Adam Ruf on CodePen.

License.

@begriffs
begriffs / sqitch_alternatives.txt
Created November 19, 2015 21:13
sqitch alternatives
https://github.com/flyway/flyway
https://github.com/mattes/migrate
https://bitbucket.org/liamstask/goose
https://github.com/tanel/dbmigrate
https://github.com/BurntSushi/migration
https://github.com/DavidHuie/gomigrate
https://github.com/rubenv/sql-migrate
@martinec
martinec / Makefile
Last active June 2, 2021 07:45
Batch convert a favicon.svg file in a favicon.ico image (different sizes)
# Batch convert a favicon.svg file in a favicon.ico image (different sizes)
# This makefile uses inkscape, convert, optipng and advpng command line tools
# type make favicon
# Cristian Martinez
all: icons
# Input SVG images without extensions
IMAGES = favicon
# Output PNG sizes
@philips
philips / user-data
Last active September 16, 2020 14:19
Running consul on top of CoreOS utilizing etcd for automatic bootstrapping.
#!/bin/bash
source /etc/environment
name=$(cat /etc/machine-id)
if [ ! -f /opt/consul ]; then
mkdir /opt
mkdir /var/lib/consul
curl http://storage.googleapis.com/ifup-org-tilde/consul-0.2.0-linux-x86-64.lzma | lzcat > /opt/consul
chmod +x /opt/consul
@hiredman
hiredman / boot.cljs
Created March 15, 2013 04:43
clojurescript drag and drop
(defn handle-file-select [evt]
(.stopPropagation evt)
(.preventDefault evt)
(let [files (.-files (.-dataTransfer evt))]
(dotimes [i (.-length files)]
(let [rdr (js/FileReader.)
the-file (aget files i)]
(set! (.-onload rdr)
(fn [e]
(let [file-content (.-result (.-target e))