Skip to content

Instantly share code, notes, and snippets.


#! /usr/bin/env zsh

Markdown Shell Scripting

alias ~~~=":<<'~~~zsh'";:<<'~~~zsh'

View approveEnrollment.scpt
tell application "System Preferences" to activate
tell application "System Events"
tell application process "System Preferences"
delay 5
set currentWindow to name of window 1
if currentWindow does not contain "Profiles" then
click button "Show All" of group 1 of group 2 of toolbar 1 of window 1
delay 5
click button "Profiles" of scroll area 1 of window "System Preferences"
zkat / index.js
Last active Jun 18, 2021
npx is cool
View index.js
#!/usr/bin/env node
console.log('yay gist')
jbaker10 / elk-zentral.txt
Created May 3, 2017
Setup ELK stack in Zentral
View elk-zentral.txt
## To install Kibana
sudo docker pull sebp/elk:latest
## To run the link on your localhost just to test
docker run --link zentral_elastic_1:elasticsearch -p --net zentral_default kibana
## After this, you should be able to access the Kibana dashboard from
## Edit the base.json under conf/start/zentral/base.json
vi ./conf/start/zentral/base.json
julianxhokaxhiu /
Created Sep 24, 2016
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
# Credits to fuckbecauseican5 from
# Adapted to work with the official image available into Mac App Store
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
Vestride /
Last active Jun 23, 2021
Encoding video for the web

Encoding Video


Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus