Skip to content

Instantly share code, notes, and snippets.

View neersighted's full-sized avatar

Bjorn Neergaard neersighted

View GitHub Profile
@vtjnash
vtjnash / MHO-C303.txt
Last active January 18, 2023 05:08
Updating time on MHO-C303 manually (example)
Getting current time:
julia> string(bswap(round(UInt32, datetime2unix(Dates.now()))), base=16) * "00"
"5f3f1f60"
The "00" is the timezone offset (in hours). Here we just use localtime (with offset zero).
With Bluetility.app (from Github) or any other similar tool for bt gatt, look for:
Service: EBE0CCB0-7A0A-4B0C-8A1A-6FF2997DA3A6
Characteristic: EBE0CCB7-7A0A-4B0C-8A1A-6FF2997DA3A6
Read: Hex: 973F1F60_00
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active May 30, 2024 20:49
Final Cut Pro X trial reset
#!/usr/bin/swift
import Foundation
let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath)
let data = try! NSData(contentsOf: path) as Data
let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary
let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableDictionary {
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 24, 2024 08:00
Hyperlinks in Terminal Emulators
@abn
abn / rpm-build-workflow.md
Last active May 18, 2022 05:04
RPM build and hosting workflow using github, travis-ci and copr

RPM Build Flow

This document details a simple RPM build flow pattern used to build and host RPM artifacts for open source projects. The below is a visual summary of this flow.

In order to achieve this multiple tools and services are used. The services and their purpose in the flow is as listed below.

Service Purpose
GitHub As is the most common use for GitHub, it holds the build source code. In this case we hold only the spec files and related source files. All other sources, including project binaries/sources are retrieved at build time.
@XVilka
XVilka / TrueColour.md
Last active May 28, 2024 17:42
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!