Skip to content

Instantly share code, notes, and snippets.

View audomsak's full-sized avatar
🏠
Working from home

audomsak

🏠
Working from home
View GitHub Profile
@audomsak
audomsak / openshift-tempo-ds.yaml
Created July 22, 2025 10:31
GrafanaDatasource for connecting Red Hat OpenShift distributed tracing platform (Tempo)
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
name: openshift-tempo
namespace: grafana
spec:
allowCrossNamespaceImport: false
datasource:
access: proxy
editable: true
@audomsak
audomsak / pod-with-high-disk-usage.yaml
Created July 22, 2025 10:28
Prometheus Rule for Pod with high disk usage detection
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: pod-with-high-disk-usage
namespace: openshift-monitoring
spec:
groups:
- name: PodWithHighDiskUsage
rules:
- alert: PodWithHighDiskUsageWarning
<?xml version="1.0"?>
<settings>
<mirrors>
<mirror>
<id>nexus</id>
<name>Nexus Public Mirror</name>
<url>http://nexus.nexus.svc.cluster.local:8081/repository/maven-public/</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
@audomsak
audomsak / ffmpeg.md
Created August 7, 2018 08:04 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@audomsak
audomsak / MacBookNetworkAliveOnSleep.md
Created April 17, 2018 00:46 — forked from jyore/MacBookNetworkAliveOnSleep.md
Keep Your MacBook Network Connections Alive As It Sleeps!

MacBookNetworkAliveOnSleep

As someone that regularly has multiple SSH/VPN sessions open, it can be a huge inconvience to lose all the connections when I lock my screen to get up to go to a meeting, lunch, etc. This is especially true for those connections that require two factor authentication. So, how can I tell my MacBook to keep those connections alive, even though my screen is locked?

Well, turns out that it is pretty simple. All that is needed is to run the following command.

cd /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources
sudo ./airport en0 prefs DisconnectOnLogout=NO