Skip to content

Instantly share code, notes, and snippets.

@szydan
szydan / gist:63441efa713fca22d3466feb6578694e
Created July 17, 2024 15:16
How to reopen a pull-request from github?
You need the rights to reopen pull requests on the repository.
The pull request hasn't been merged, just closed.
Go to Pull requests add filter `is:closed` choose PR you want to reopen. Select from checkbox and mark as Open.
@szydan
szydan / gist:9e89286f539cc9f7ce3e538c11bf8e6e
Created July 5, 2024 15:05
elasticsearch workaround for root.memory issue
siren.memory.root.limit: 25769803776
siren.memory.job.limit: 25769803776
siren.memory.task.limit: 25769803776
https://www.elastic.co/guide/en/elasticsearch/reference/current/red-yellow-cluster-status.html
@szydan
szydan / gist:6d144a9b1d0c27a4b99fbf1f2420e090
Created May 30, 2024 16:38
query git about changes in the last n months about specific folder
git log -p -M --since="12 month ago" src/siren_core_plugins/NAME > plugin-changes.txt
@szydan
szydan / gist:9433821ec855d055a0460557e87edb9b
Created May 19, 2024 23:11
When copying large number of small files
better
zip -0r A.zip A
copy A.zip ...
unzip A.zip
@szydan
szydan / rosetta-mac-m3.md
Last active May 23, 2024 12:52
Run shell mac m1 m2 m3

Install roseta

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Create following aliase in .zshrc

alias arm="env /usr/bin/arch -arm64 /bin/zsh --login"
@szydan
szydan / gist:700466d44254b41a578ea170ed855c5e
Created May 13, 2024 13:09
zip not including hidden files
When packing a folder which has some hidden top level folders inside like
A+
+.yarn
+.rc
zip -rqq A.zip A
will pack those hidden top level folders while
#!/bin/bash
for i in {1..100}; do
echo $i
done
@szydan
szydan / bash-debug.md
Created March 4, 2024 10:05
bash debug
Screenshot 2024-03-04 at 10 04 24
@szydan
szydan / docker-compose.yml
Created December 11, 2023 16:57 — forked from fpompermaier/docker-compose.yml
Federate plugin on standalone ES docker-compose.yml
services:
federate:
image: "docker.elastic.co/elasticsearch/elasticsearch:8.11.1"
user: elasticsearch
ports:
- "5005:5005"
- "9200:9200"
volumes:
# - ./plugin.zip:/tmp/plugin.zip
# - /home/flavio/git/siren-platform/core/target/releases/siren-federate-8.11.1-34.0-SNAPSHOT-plugin.zip:/tmp/plugin.zip