Also applies to the NZXT Smart Device
Hue+ accessories use WS2812B integrated LED and controllers. Pinout is:
- +5V (marked with arrow; corresponding wire with white stripe)
- IN (data in)
#!/bin/bash -e | |
echo "π€‘ Applying carthage 12 and 13 workaround π€‘" | |
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX) | |
# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise | |
# the build will fail on lipo due to duplicate architectures. | |
CURRENT_XCODE_VERSION=$(xcodebuild -version | grep "Build version" | cut -d' ' -f3) | |
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8' > $xcconfig | |
echo "EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$CURRENT_XCODE_VERSION = arm64 arm64e armv7 armv7s armv6 armv8" >> $xcconfig |
Also applies to the NZXT Smart Device
Hue+ accessories use WS2812B integrated LED and controllers. Pinout is:
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
import Cocoa | |
extension String { | |
// https://stackoverflow.com/a/36258684/2227743 | |
var containsEmoji: Bool { | |
for scalar in self.unicodeScalars { | |
switch scalar.value { | |
case 0x1F600...0x1F64F, // Emoticons | |
0x1F300...0x1F5FF, // Misc Symbols and Pictographs |
Post ID, Post Timestamp, Username, Text (including machine posts) | |
"71081328","2017-03-17T10:03:07Z","voguemagazine","Miss Rodeo New Mexico 2016 Shows Vogue The Ropes | American Women β https://app.net/b/rqg5g" | |
"71081327","2017-03-17T08:04:35Z","epicurious","Classic Potato Kugel for Passover | Epicurious β https://app.net/b/rqg56" | |
"71081326","2017-03-17T07:07:15Z","cgiffard","Midnight PST and things are still going?" | |
"71081325","2017-03-17T06:45:35Z","joanna","But not forgotten. :-)" | |
"71081324","2017-03-17T06:43:58Z","joanna","Gone?" | |
"71081323","2017-03-17T06:39:02Z","joanna","Still have this channel. I don't want to close my browser!" | |
"71081322","2017-03-17T06:38:38Z","phoneboy","Yup, looks like the API server has shut down." | |
"71081321","2017-03-17T06:38:18Z","joanna","Global won't refresh on Riposte." | |
"71081320","2017-03-17T06:37:53Z","djscolam","#NowPlaying End Theme - Zero 7 [youtu.be] Requested by: @berg #MondayNightDanceParty #BeExcellentToEachOther. //@adnprinter #adnprinter |
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.
#!/usr/bin/env python | |
# coding=utf-8 | |
# This script generates resistor-arrays of various sizes. | |
# See: http://forum.fritzing.org/t/2079 | |
import svgwrite as svg | |
from svgwrite.base import BaseElement | |
from svgwrite.mixins import Presentation, Markers, Transform | |
import os |
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
# Add the following to your shell init to set up gpg-agent automatically for every shell | |
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
source ~/.gnupg/.gpg-agent-info | |
export GPG_AGENT_INFO | |
else |
// | |
// RBResizer.swift | |
// Locker | |
// | |
// Created by Hampton Catlin on 6/20/14. | |
// Copyright (c) 2014 rarebit. All rights reserved. | |
// | |
import UIKit |
Will recursively find all files inside current directory and call for these files dos2unix command. Would break if you had spaces in file name.
find . -type f -exec dos2unix {} \;
Wouldn't break if you had spaces in file names.
find . -type f -print0 | xargs -0 dos2unix