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 / 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
goroutine profile: total 47
10 @ 0x402f88c 0x402f97e 0x4006c94 0x400693b 0x48be584 0x405e1c1
# 0x48be583 github.com/elastic/beats/filebeat/channel.CloseOnSignal.func1+0x33 /Users/ph/go/src/github.com/elastic/beats/filebeat/channel/util.go:83
6 @ 0x402f88c 0x402f97e 0x4006c94 0x400697b 0x48be52e 0x405e1c1
# 0x48be52d github.com/elastic/beats/filebeat/channel.SubOutlet.func1+0x9d /Users/ph/go/src/github.com/elastic/beats/filebeat/channel/util.go:26
3 @ 0x402f88c 0x402a80a 0x4029e07 0x4085f7e 0x4085ffd 0x4086d9a 0x417eff2 0x4190c5d 0x432d925 0x40e87fa 0x40e96ac 0x40e9914 0x42b7350 0x42b715b 0x4327b49 0x432ec2c 0x4332a2e 0x405e1c1
# 0x4029e06 internal/poll.runtime_pollWait+0x56 /Users/ph/.gvm/versions/go1.9.4.darwin.amd64/src/runtime/netpoll.go:173
# 0x4085f7d internal/poll.(*pollDesc).wait+0xad /Users/ph/.gvm/versions/go1.9.4.darwin.amd64/src/internal/poll/fd_poll_runtime.go:85