Skip to content

Instantly share code, notes, and snippets.

View maximilien's full-sized avatar
💼
@ SVL and 🏠

dr.max maximilien

💼
@ SVL and 🏠
View GitHub Profile
@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"
)
@maximilien
maximilien / gist:0d740c8f2d0d9d6c2ad7
Created May 14, 2014 19:18
Initialization of go-i18n taking care of loading locale for Linux
import( i18n "github.com/nicksnyder/go-i18n/i18n" )
func i18nInit(packageName string) (i18n.TranslateFunc, error) {
osLocale := os.Getenv("LANG")
userLocale := osLocale[:len(".UTF8")] //Might need to make this generic
defaultLocale := "en_US"
i18n.MustLoadTranslationFile(fmt.Sprintf("./src/cf/i18n/%s/%s.all.json", packageName, defaultLocale))
i18n.MustLoadTranslationFile(fmt.Sprintf("./src/cf/i18n/%s/%s.all.json", packageName, userLocale))