Skip to content

Instantly share code, notes, and snippets.

View LaKing's full-sized avatar
💭
Not time to commit, I'm coding!

István Király LaKing

💭
Not time to commit, I'm coding!
  • D250 Laboratories
  • Hungary
View GitHub Profile
@LaKing
LaKing / lamp-diag.sh
Last active November 13, 2022 01:14
lamp-diag.sh
#!/bin/bash
## diagnose http requests from this container
## if the response timed out, create a diagnostic report, and email it
readonly NOW=$(date +%Y.%m.%d-%H:%M:%S)
reasons="Test .."
email="[email protected]"
@LaKing
LaKing / accessor-demo.js
Last active April 6, 2021 19:12
Accessor-string evaluation
// https://gist.github.com/LaKing/fd0dadf24e2ad0cca1c3f085d29916f6#file-accessor-demo-js
/* @DOC Accessor-string implementation
// An accessor is a js-like syntax string that can be evaluated (without eval)
// set the env object: where keys are symbols for the string, and values are from our scope
// the string then has access to these values, and can perform dot notation, bracket notation, function evaluation with arguments.
// I wrote this for dynamic access to stuff in vuex store. (2021)
*/
// Demo Object
const o = {
@LaKing
LaKing / encode.sh
Created January 30, 2019 12:15 — forked from mikoim/README.md
YouTube recommended encoding settings on ffmpeg (+ libx264)
#/bin/sh
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output