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 November 2, 2024 08:46
Home Assistant Sensor Light that can be used in Blueprints
blueprint:
name: Sensor Light
description: >
# 💡 Sensor Light
**Version: 7.1**
Your lighting experience, your way - take control and customize it to perfection! 💡✨
@twistedpair
twistedpair / install_google_chrome.sh
Last active November 4, 2024 13:18
Install Google Chrome in Ubuntu Linux with apt-get
# Installing google chrome via APT (sadly no SNAP available from Google, like there is for Chromium)
# Setup the Google signer and repo
curl -O https://packages.cloud.google.com/apt/doc/apt-key.gpg && sudo apt-key add apt-key.gpg
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
# Install
sudo apt-get update
sudo apt-get install google-chrome-stable
@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active November 2, 2024 23:40
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
:: [email protected]
::
:: 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