Skip to content

Instantly share code, notes, and snippets.

@andyrbell
andyrbell / luks_backup.txt
Created March 10, 2019 14:35
clonezilla luks backup
backup luks partition
1. Boot clonezilla
2. Drop into the command line
3. open the encrypted external drive partition
cryptsetup luksOpen /dev/sda3 backup
@mikejoh
mikejoh / gcloud-one-liners.md
Last active January 18, 2021 09:28
gcloud one-liners

gcloud one-liners

Fetch all Pod (labled backend) logs with severity error from StackDriver (parsing with jq)

gcloud logging read "resource.labels.pod_id:backend AND severity:ERROR" --order asc --format json | jq '.[].textPayload'

Stop all instances

gcloud compute instances stop $(gcloud compute instances list | grep -v "NAME" | awk '{ print $1}')
@bngsudheer
bngsudheer / d-play.yml
Created March 4, 2018 06:04
How To Run A Docker Container Using Ansible On localhost
---
- hosts: all
tasks:
- name: Create a data container
docker_container:
name: my-test-container
image: python:2.7
command: /bin/sleep 600
@popcorn245
popcorn245 / hue_colors.md
Last active December 10, 2023 03:10
XY Color Conversion

FROM HUE DESIGN DOCS

https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX/blob/00187a3db88dedd640f5ddfa8a474458dff4e1db/ApplicationDesignNotes/RGB%20to%20xy%20Color%20conversion.md

#Conversion between RGB and xy in the CIE 1931 colorspace for hue The conversion between RGB and xy in the CIE 1931 colorspace is not something Philips invented, but we have an optimized conversion for our different light types, like hue bulbs and LivingColors. It is important to differentiate between the various light types, because they do not all support the same color gamut. For example, the hue bulbs are very good at showing nice whites, while the LivingColors are generally a bit better at colors, like green and cyan.