Skip to content

Instantly share code, notes, and snippets.

View maximilien's full-sized avatar
💼
@ Almaden Research Center

dr.max maximilien

💼
@ Almaden Research Center
View GitHub Profile
@maximilien
maximilien / BeeAI-python-2.ipynb
Created February 20, 2025 19:30
Simple BeeAI Python example - Bay Area AI Meetup - San Francisco, CA - 02/20/2025
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maximilien
maximilien / gist:feb903214b34e4eb035625c3a3413dc9
Last active January 15, 2025 21:18
Bee Hive - YAML - Conditional 1
apiVersion: beehive/v1
kind: Workflow
metadata:
name: beehive-deployment
labels:
app: example2
spec:
strategy:
type: sequence
template:
@maximilien
maximilien / prettier.sh
Created June 5, 2020 23:25
Linting markdown .md files with prettier
$ prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
```bash
=== RUN TestPluginWorkflow/when_kn_config_is_empty/when_using_--plugin-dir/when_--plugins-dir_has_a_plugin
Running 'kubectl create namespace kne2etests7'...
=== RUN TestPluginWorkflow/when_kn_config_is_empty/when_using_--plugin-dir/when_--plugins-dir_has_a_plugin/when_--lookup-plugins_is_false
=== RUN TestPluginWorkflow/when_kn_config_is_empty/when_using_--plugin-dir/when_--plugins-dir_has_a_plugin/when_--lookup-plugins_is_false/list_plugin_in_--plugins-dir
Running 'kn --plugins-dir=/tmp/kn-config156118956/plugins --lookup-plugins=false plugin list'...
--- PASS: TestVersion (0.16s)
=== RUN TestPluginWorkflow/when_kn_config_is_empty/when_using_--plugin-dir/when_--plugins-dir_has_a_plugin/when_--lookup-plugins_is_false/execute_plugin_in_--plugins-dir
Running 'kn --plugins-dir=/tmp/kn-config156118956/plugins --lookup-plugins=false helloe2e e2e test'...
=== RUN TestPluginWorkflow/when_kn_config_is_empty/when_using_--plugin-dir/when_--plugins-dir_has_a_plugin/when_--lookup-plugins_is_false/does_n
@maximilien
maximilien / git-commit-range
Created December 15, 2017 00:52
Number of commits for a user in some range
git log --after="2017-01-01 00:00" --before="2017-12-31 23:59" | grep "maximilien" | wc -l
@maximilien
maximilien / cf-abacus-euro-release.txt
Last active May 19, 2017 16:51
CF-Abacus $git log --since=05/25/2016 --pretty=oneline
More Sampling Options (#474)
Dataflow reducer takes care of reducing data (#471)
Temporarily disable bloom filter. (#452)
Fixed shifting bug in aggregator. (#456)
Accumulator should not persist first start (#435)
Merge pull request #418 from KRuelY/resourceI
resourceInstance adjusts to reporting time.
Merge pull request #416 from KRuelY/reportResourceInstance
Merge pull request #415 from KRuelY/tw
dpkg: error processing archive /var/vcap/packages/cephfs/libboost-system1.54.0_1.54.0-4ubuntu3.1_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/var/vcap/packages/cephfs/libboost-system1.54.0_1.54.0-4ubuntu3.1_amd64.deb
dpkg: error processing archive /var/vcap/packages/cephfs/libboost-thread1.54.0_1.54.0-4ubuntu3.1_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/var/vcap/packages/cephfs/libboost-thread1.54.0_1.54.0-4ubuntu3.1_amd64.deb
dpkg: error processing archive /var/vcap/packages/cephfs/libfuse2_2.9.2-4ubuntu4.14.04.1_amd64.deb (--install):
cannot access archive: No such file or directory
@maximilien
maximilien / fnd
Created March 29, 2016 21:57
Find files name with some exention pattern and delete
#!/bin/sh
find . -name "$1" -exec rm -f {} \;
@maximilien
maximilien / tar_helper.go
Created October 31, 2014 16:53
Creating tarball in Golang
package tar_helper
import (
"archive/tar"
"compress/gzip"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
@maximilien
maximilien / tar.go
Last active November 4, 2020 18:13 — forked from jonmorehouse/tar.go
package main
import (
"os"
"archive/tar"
"log"
"io"
"compress/gzip"
)