Skip to content

Instantly share code, notes, and snippets.

View ph's full-sized avatar
💭
Where is the Microsoft Paperclip?

Pier-Hugues Pellerin ph

💭
Where is the Microsoft Paperclip?
View GitHub Profile
@ph
ph / gist:bbc4067313aeb5a24340774ee7e567eb
Created February 9, 2025 00:22
Delete matching repositories using gh tool
gh repo list --json name -L 1000 -q '.[].name | select(match("logstash-"))' | xargs -L 1 gh repo delete --yes
@ph
ph / autocomplete.el
Created September 28, 2023 01:26
ok test
(use-package tempel
:bind (("M-+" . tempel-complete) ;; Alternative tempel-expand
("M-*" . tempel-insert))
:config
(setq tempel-path (expand-file-name "my-templates/*" user-emacs-directory))
:init
(global-tempel-abbrev-mode))
diff --git a/docker-compose.yml b/docker-compose.yml
index 28fdfb32f..113d3b0d2 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -10,7 +10,7 @@ services:
fleet-server: { condition: service_healthy }
elasticsearch:
- image: docker.elastic.co/elasticsearch/elasticsearch:8.1.0-1cb1f3ad-SNAPSHOT
+ image: docker.elastic.co/elasticsearch/elasticsearch:8.2.0-5d69c4c3-SNAPSHOT
metricbeat/autodiscover/appender/kubernetes/token/token.go
44: cfgwarn.Deprecate("7.0.0", "token appender is deprecated in favor of bearer_token_file config parameter")
metricbeat/module/system/core/config.go
45: cfgwarn.Deprecate("6.1.0", "cpu_ticks is deprecated. Add 'ticks' to the core.metrics list.")
metricbeat/module/system/cpu/config.go
46: cfgwarn.Deprecate("6.1.0", "cpu_ticks is deprecated. Add 'ticks' to the cpu.metrics list.")
metricbeat/module/system/process/config.go
For the master branch
alias eam="curl -s https://artifacts-api.elastic.co/v1/search/8.0-SNAPSHOT/beat | jq '.packages | to_entries | .[] | select(.key|test(\"packetbeat.\")) |.value.url'"
For the 7.x branch (upcoming 7.8)
alias ea7="curl -s https://artifacts-api.elastic.co/v1/search/7.8-SNAPSHOT/beat | jq '.packages | to_entries | .[] | select(.key|test(\"packetbeat.\")) |.value.url'"
@ph
ph / hello.go
Created November 15, 2019 16:44
package main
import "fmt"
func main() {
fmt.Println("Hello")
}
package main
import (
"fmt"
"os"
"time"
)
const logFile = "/tmp/file.txt"
12:37:32 Started by upstream project "elastic+beats+pull-request+multijob-darwin" build number 350
12:37:32 originally caused by:
12:37:32 Started by upstream project "elastic+beats+pull-request" build number 480
12:37:32 originally caused by:
12:37:32 GitHub pull request #8376 of commit 4e76c011800da69ade46481411868eafaf073552, no merge conflicts.
12:37:32 [EnvInject] - Loading node environment variables.
12:37:32 [EnvInject] - Preparing an environment for the build.
12:37:32 [EnvInject] - Keeping Jenkins system variables.
12:37:32 [EnvInject] - Keeping Jenkins build variables.
12:37:33 [EnvInject] - Injecting as environment variables the properties content
package main
import (
"fmt"
"sync"
"time"
)
type OK struct{}
```
.
├── auditbeat
│ ├── auditbeat-7.0.0-alpha1-SNAPSHOT-amd64.deb
│ ├── auditbeat-7.0.0-alpha1-SNAPSHOT-amd64.deb.sha512
│ ├── auditbeat-7.0.0-alpha1-SNAPSHOT-darwin-x86_64.dmg
│ ├── auditbeat-7.0.0-alpha1-SNAPSHOT-darwin-x86_64.dmg.sha512
│ ├── auditbeat-7.0.0-alpha1-SNAPSHOT-darwin-x86_64.tar.gz
│ ├── auditbeat-7.0.0-alpha1-SNAPSHOT-darwin-x86_64.tar.gz.sha512
│ ├── auditbeat-7.0.0-alpha1-SNAPSHOT-i386.deb