Skip to content

Instantly share code, notes, and snippets.

@180254
180254 / grafana-interval-variable-to-seconds-questdb.sql
Created January 15, 2022 20:50
grafana-interval-variable-to-seconds-questdb.sql
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
@180254
180254 / _kubectl_per_shell_context.sh
Created January 13, 2022 12:43
_kubectl_per_shell_context.sh
#!/bin/bash
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
@180254
180254 / grafana-update-dashboards.sh
Created January 5, 2022 12:49
grafana-update-dashboards.sh
#!/bin/bash
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
@180254
180254 / kusto-v1-json-to-csv
Last active May 19, 2022 08:08
kusto-v1-json-to-csv
#!/bin/bash
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
@180254
180254 / mathsum
Last active May 19, 2022 08:08
mathsum
#!/usr/bin/awk -f
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
@180254
180254 / mathavg
Last active May 19, 2022 08:08
mathavg
#!/usr/bin/awk -f
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
@180254
180254 / unescape
Last active May 19, 2022 08:09
unescape
#!/usr/bin/sed -Ef
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
@180254
180254 / java-decompiler
Last active May 1, 2022 19:30
java-decompiler
#!/bin/bash
# https://gist.github.com/180254/5399d25b0b9be64ee18de54f08e46b14
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
@180254
180254 / IgniteCacheMapView.java
Last active February 9, 2018 06:17
IgniteCache as Map viewer
package pl.cee.util;
import org.apache.ignite.IgniteCache;
import org.jetbrains.annotations.NotNull;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
/*