Switching from Docker Desktop to Podman on macOS M1/M2 ARM64 CPU
After podman machine start
, do podman machine ssh
and create the following files:
/etc/sysctl.d/98-performance.conf
Switching from Docker Desktop to Podman on macOS M1/M2 ARM64 CPU
After podman machine start
, do podman machine ssh
and create the following files:
/etc/sysctl.d/98-performance.conf
for DIR in *; do pushd "$DIR" >/dev/null 2>&1; export URL="https://api.github.com/repos/$(git remote -v| grep -P "origin.*push" | head -n 1 | cols 2 | sed "s/.*github\.com\///" | sed "s/\.git$//")"; export PARENT="$(curl -fsSL -H "Authorization: token $GITHUB_TOKEN" "$URL" | jq -r '.parent.html_url')"; [[ "$PARENT" != "null" ]] && export FORKNAME="$(echo "$PARENT" | cut -d'/' -f4)" && echo "$FORKNAME" && git remote add "$FORKNAME" "$PARENT"; popd >/dev/null 2>&1; done |
A few options:
for FILE in *.mkv; do \ | |
echo "$FILE"; \ | |
for STREAM in $(ffprobe "$FILE" -loglevel error -show_entries stream=index:stream_tags=language -select_streams a -of compact=p=0:nk=1); do \ | |
export STREAM_ID=$(( $(echo "$STREAM" | cut -d'|' -f1)-1 )); \ | |
export STREAM_LANG="$(echo "$STREAM" | cut -d'|' -f2)"; \ | |
export STREAM_CODEC="$(ffprobe "$FILE" -loglevel error -select_streams a:"$STREAM_ID" -show_entries stream=codec_name -of csv=p=0)"; \ | |
mkdir -p "$STREAM_LANG"; \ | |
ffmpeg -hide_banner -loglevel error -y -i "$FILE" -map 0:a:m:language:"$STREAM_LANG" -vn -sn -c:a copy -map_metadata 0 ./"$STREAM_LANG"/"$(base "$FILE").$STREAM_LANG.$STREAM_CODEC"; \ | |
done; \ | |
done |
Zeek Intelligence Framework for Malcolm
/zeek/intel/MISP/.misp_input.txt
misp|https://www.circl.lu/doc/misp/feed-osint/manifest.json
misp|https://www.botvrij.eu/data/feed-osint/manifest.json
misp|https://osint.digitalside.it/Threat-Intel/digitalside-misp-feed/manifest.json
/zeek/intel/STIX/.stix_input.txt
services: | |
samba: | |
image: docker.io/dperson/samba:latest | |
environment: | |
TZ: 'America/Denver' | |
USERID: 0 | |
GROUPID: 0 | |
ports: | |
- "0.0.0.0:137:137/udp" | |
- "0.0.0.0:138:138/udp" |
{ | |
"attributes": { | |
"description": "", | |
"kibanaSavedObjectMeta": { | |
"searchSourceJSON": "{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[]}" | |
}, | |
"title": "markdown URL example", | |
"uiStateJSON": "{}", | |
"version": 1, | |
"visState": "{\"title\":\"markdown URL example\",\"type\":\"metrics\",\"aggs\":[],\"params\":{\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"type\":\"markdown\",\"series\":[{\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"color\":\"#54B399\",\"split_mode\":\"terms\",\"split_color_mode\":\"opensearchDashboards\",\"metrics\":[{\"size\":1,\"agg_with\":\"noop\",\"order\":\"desc\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"top_hit\",\"field\":\"zeek.files.extracted_uri\",\"order_by\":\"firstPacket\"}],\"separate_axis\":0,\"axis_position\":\"right\",\"formatter\":\"number\",\"chart_type\":\"line\",\"line_width\":1,\"point_size\":1,\"fill\":0.5,\"stacked\":\"none\",\"color_rules\":[{\"value\":0,\"id\":\"1f169c40-f12a-11ee-9364-f9bff3c7f983\" |
{ | |
"attributes": { | |
"description": "", | |
"kibanaSavedObjectMeta": { | |
"searchSourceJSON": "{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[]}" | |
}, | |
"title": "Example table with transform", | |
"uiStateJSON": "{}", | |
"version": 1, | |
"visState": "{\"title\":\"Example table with transform\",\"type\":\"transform\",\"aggs\":[],\"params\":{\"meta\":\"({})\",\"multiquerydsl\":\"{\\n \\\"topn\\\": {\\n \\\"index\\\": \\\"zeekicata-*\\\",\\n \\\"query\\\": {\\n \\\"bool\\\": {\\n \\\"must\\\": [\\n \\\"_DASHBOARD_CONTEXT_\\\",\\n \\\"_TIME_RANGE_[firstPacket]\\\",\\n {\\n \\\"match\\\": {\\n \\\"event.dataset\\\": \\\"files\\\"\\n }\\n },\\n {\\n \\\"match\\\": {\\n \\\"event.provider\\\": \\\"zeek\\\"\\n }\\n }\\n ]\\n }\\n },\\n \\\"aggs\\\": {\\n \\\"uris\\\": {\\n \\\"terms\\\": {\\n \\\"field\\\": \\ |
Make sure NSHighResolutionCapable
in /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/Info.plisst
is set to <false/>
for a pretty difference in performance.
$ grep -i NSHigh /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/Info.plisst
<key>NSHighResolutionCapable</key> <true/>
Set it like this:
# release_cleaver.ps1 | |
# Split and join large files into 2 gigabyte chunks. sha256 sum is | |
# also calculated and saved on split and checked on join. | |
$ErrorActionPreference = "Stop" | |
# Split a binary file into a series of smaller files |