Skip to content

Instantly share code, notes, and snippets.

View rti's full-sized avatar
:octocat:

Robert Timm rti

:octocat:
View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: ollama-rocm
spec:
replicas: 2
selector:
matchLabels:
app: ollama-rocm
template:
@rti
rti / crc32.rb
Last active December 14, 2015 16:29 — forked from snipsnipsnip/example.hex
#!/usr/bin/env ruby
require 'zlib'
require 'intel_hex_record'
def main
if ARGV.empty?
warn "usage: #{File.basename $0} records.hex [records.hex ..]"
end
@rti
rti / gist:1605397
Created January 13, 2012 10:09
KISS cpp profiling - easy to use cpu time measurement helper
/*
* USAGE:
* #include <ctime>
* ...
* void your_func() {
* measure_time t(__func__);
* // your code...
* }
*/
struct measure_time {