Skip to content

Instantly share code, notes, and snippets.

View mkozjak's full-sized avatar

Mario Kozjak mkozjak

View GitHub Profile
@mkozjak
mkozjak / DefaultKeyBinding.dict
Created September 23, 2022 10:21 — forked from trusktr/DefaultKeyBinding.dict
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@mkozjak
mkozjak / Toggle Safari Picture-in-Picture.applescript
Last active August 29, 2023 12:54 — forked from ybbond/Toggle Safari Mute.applescript
This will trigger Safari.app Picture-in-Picture without the need to "Allow JavaScript from Apple Events"
--------------------------------------------------------------------------------
# Auth: Yohanes Bandung Bondowoso, Mario Kozjak
# dCre: 2021-07-11 20:18
# dMod: 2023-08-19 15:51
# Appl: System Events, PIPAgent, Safari
# Task: Toggle Picture in Picture (PiP) on and off
# Libs: None
# Osax: None
# Aojc: True
# Tags: @Applescript, @Script, @System_Events, @PictureInPicture, @PiP, @Safari
@mkozjak
mkozjak / timeformatting.go
Created August 7, 2024 09:43 — forked from mfirhas/timeformatting.go
Time Format in Golang
package main
// source: http://www.golangprograms.com/golang-package-examples/get-current-date-and-time-in-various-format-in-golang.html
import (
"fmt"
"time"
)
func main() {