Skip to content

Instantly share code, notes, and snippets.

View dyipon's full-sized avatar

dy dyipon

  • iPon Computer
  • Eger, Hungary
View GitHub Profile
@dyipon
dyipon / main.go
Created June 28, 2024 15:33
golang http stress test
# go run main.go https://index.hu/test 1 100 10.0.5.1-10.0.5.200
package main
import (
"fmt"
"io/ioutil"
"math/rand"
"net"
@dyipon
dyipon / synology-commands.sh
Created March 2, 2024 09:48 — forked from sebastian13/synology-commands.sh
Collection of useful terminal commands for Synology DS.
# Renew Let's Encrypt Certificates
/usr/syno/sbin/syno-letsencrypt renew-all
# Disable Firewall
/usr/syno/bin/synofirewall --disable
@dyipon
dyipon / bindings.json
Created December 20, 2023 14:07
micro editor settings
{
"Alt-/": "lua:comment.comment",
"Alt-X": "lua:comment.comment",
"Ctrl-f": "FindLiteral",
"Ctrl-g": "command-edit: goto ",
"CtrlUnderscore": "lua:comment.comment",
"F6": "command-edit:gorename ",
"F7": "FindLiteral",
"F8": "CutLine",
"MouseRight": "Paste",
@dyipon
dyipon / idle.py
Created November 18, 2023 15:51
pomodoro macos
import rumps
from datetime import datetime
import Quartz
class TimeApp(rumps.App):
POMODORO_DURATION = 45 * 60 # in seconds
TIME_BEFORE_PAUSE = 60 # in seconds
TIME_BEFORE_RESET = 5 * 60 # in seconds
def __init__(self):
agent:
alligator:
# -- Data retention period for traces and workloads metadata {amount}[h(ours)], default is 12h
dataRetention: 12h
loki:
config:
table_manager:
# -- Data retention period for logs, {amount}[h(ours)], default is 2h
retention_period: 2h
Kedvenc, többszőr nézhető filmjeim,
- Z világháború
- Man from earth
- TENET
- Interstella
- Incepction
- Az utolsó cserkész
- K-PAX Belső bolygó
curl http://longhorn-api/v1/backupvolumes | jq '.data[0] | "s3://longhorn@us-east-1/?backup=" + .lastBackupName + "&volume=" + .id' -r
kubectl get pods --all-namespaces -o=jsonpath="{range .items[*]}{'\n'}{range .spec.containers[*]}{.image}{'\n'}{end}{end}" | sort | uniq
curl -sSL -X GET 'http://es-for-logging-master:9200/filebeat*/_search?pretty' -H 'Content-Type: application/json' -d '{
    "query": {
        "query_string": {
            "query": "kubernetes.labels.app:helloworld"
        }
    },
    "size": 1000,
    "from": 0,
 "sort": [
docker run --rm -i -t httpd:alpine htpasswd -nb foo bar|openssl base64