Source: https://www.atlassian.com/de/git/tutorials/merging-vs-rebasing
git checkout feature
git checkout -b temporary-branch
git rebase -i main
# [Clean up the history]| # Check if the number of arguments is correct | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 local_image_name" | |
| exit 1 | |
| fi | |
| # Assign the argument to a variable | |
| LOCAL_IMAGE_NAME=$1 | |
| blueprint: | |
| # Media control via IKEA Symfonisk Gen2 - Shawsky April 2023 v1.52 | |
| # Updated May 2023 - Add group volume control | |
| # Updated June 2023 - Resolve filtering issue where multiple devices are in use | |
| # Updated August 2023 - Resolve a volume issue for media players with no group_memeber attribute | |
| # Updated September 2023 - Further updates for group/non grouped behaviour / fix issue for volume hold for grouped/non grouped. Allow 100 volume steps. | |
| # Volume changes partially based on https://gist.github.com/erkr/a437ebcb98a2b5ba2deebabd02f5ffae Eric Kreuwels | |
| # and https://gist.github.com/alexwmaustin/2c25cfa1a0ade1ab9fc1ef0940289672 Alex Austin | |
| name: Z2M - IKEA Symfonisk sound controller GEN2 for media | |
| description: |
Source: https://www.atlassian.com/de/git/tutorials/merging-vs-rebasing
git checkout feature
git checkout -b temporary-branch
git rebase -i main
# [Clean up the history]This Gist is superseded by https://github.com/Ircama/PT-P300BT
The Brother P-touch Cube PT-P300BT labelling machine is intended to be controlled from the official Brother P-touch Design&Print 2 app for Android and iOS devices, instead of from a computer.
NOTICE: This guide will help you set ssh keys for GitHub and GitLab. However, this is not going to change your commit
user.nameoruser.email. If you need to change those for specific repositories, just run the following commands while in your repository:
git config user.name "Your Name Here"
git config user.email [email protected]For more info, see this answer. Also, keep in mind this only changes the
.gitfolder inside your repository which never gets added/committed/pushed/uploaded.
I recently had to manage two ssh keys (one for Github and one for Gitlab). I did some research to find the best solution. I am justing putting the pieces together here.
| # Adapted from Sandy J Macdonald's gist at https://gist.github.com/sandyjmacdonald/b465377dc11a8c83a8c40d1c9b990a90 to configure all buttons and switch off all lights in loop | |
| import time | |
| import board | |
| import busio | |
| import usb_hid | |
| from adafruit_bus_device.i2c_device import I2CDevice | |
| import adafruit_dotstar |
| # !/usr/bin/env python | |
| import tensorflow as tf | |
| from tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2_as_graph | |
| from tensorflow.lite.python.util import run_graph_optimizations, get_grappler_config | |
| from pathlib import Path | |
| import argparse | |
| def frozen_keras_graph(model): |
| import UIKit | |
| import MobileCoreServices.UTCoreTypes | |
| if #available(iOS 14.1, *) { | |
| let input = Bundle.main.url(forResource: "IMG_0037", withExtension: "HEIC")! | |
| let output = FileManager().temporaryDirectory.appendingPathComponent("IMG_0037.GAIN_MAP.BMP") | |
| let source = CGImageSourceCreateWithURL(input as CFURL, nil)! | |
| // urn:com:apple:photo:2020:aux:hdrgainmap | |
| let dataInfo = CGImageSourceCopyAuxiliaryDataInfoAtIndex(source, 0, kCGImageAuxiliaryDataTypeHDRGainMap)! as Dictionary |
| import cv2 | |
| import numpy as np | |
| import tensorflow as tf | |
| IMAGE_PATH = './cat.jpg' | |
| LAYER_NAME = 'block5_conv3' | |
| CAT_CLASS_INDEX = 281 | |
| img = tf.keras.preprocessing.image.load_img(IMAGE_PATH, target_size=(224, 224)) | |
| img = tf.keras.preprocessing.image.img_to_array(img) |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "C++ Launch (GDBSERVER)", | |
| "type": "cppdbg", | |
| "request": "launch", | |
| "miDebuggerServerAddress": "localhost:2000", | |
| "preLaunchTask": "start-gdbserver", |