Skip to content

Instantly share code, notes, and snippets.

View lackovic's full-sized avatar

Marco Lackovic lackovic

View GitHub Profile
@Chailotl
Chailotl / main.ahk
Created February 1, 2022 22:43
An AutoHotKey script I used to use, now replaced with Microsoft PowerToys and hardware media keys.
; -----
; = Shortcuts = (Ctrl+LShift+...)
; Space - Pin/unpin active window
;
; = Music Controls = (Ctrl+LShift+...)
; Down Arrow - Lower volume
; Up Arrow - Raise volume
; Right Shift - Pause/play music
; Left Arrow - Previous track
; Right Arrow - Next Track
@mikksoone
mikksoone / 0_pre.sh
Last active January 19, 2021 08:57
start.spring.io app dockerize + k8s workshop
gcloud auth login
gcloud container clusters get-credentials k8s-ws-6 --zone europe-west1-b --project k8s-ws-7
gcloud auth configure-docker
kubectl version
kubectl get nodes
kubectl create namespace myname
@micheleriva
micheleriva / jsmonday-carbon.json
Created July 22, 2019 20:08
JSON configuration for the JSMonday Carbon template
{
"paddingVertical":"0px",
"paddingHorizontal":"0px",
"marginVertical":"45px",
"marginHorizontal":"45px",
"backgroundImage":null,
"backgroundImageSelection":null,
"backgroundMode":"color",
"backgroundColor":"rgba(255,255,255,0)",
"dropShadow":true,
@chuckplantain
chuckplantain / executionOrderJestJasmine.js
Created April 5, 2018 13:59
Execution order of async Jest/Jasmine test code
/**
* Demonstrate execution order of code in Jest/Jasmine
*/
function resolveAfter2Seconds(message) {
return new Promise((resolve) => {
setTimeout(() => {
resolve(message)
}, Math.ceil(Math.random() * 5000))
})
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active April 29, 2025 14:07
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 29, 2025 08:17
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@zmwangx
zmwangx / No longer able to make public gists secret.md
Last active April 25, 2025 13:09
No longer able to make public gists private — message to GitHub

We've been able to toggle visibility of gists since 2014 (https://github.com/blog/1837-change-the-visibility-of-your-gists), but I just noticed that I can no longer make public gists private. That is, when I edit private gists I still see the "Make Public" button, but not the other way round — there's only a "Delete" button when I edit public gists; the "Make Secret" which should be next to it (as shown in the screencast in the linked blog post) is nowhere to be found. I made a screenshot and a screencast demonstrating the issue, both of which are attached. Could you please confirm this issue? Was this an intentional change, and why? Thank you for your attention.

gist-unable-to-make-secret

![gist-unable-to-make-secret](https://cloud.githubusercontent.com/assets/4149852/16898407/c76db210-4c0b-11e6-9108-0450f1edebb4.gif)
/**
* This Google Sheets script keeps data in the specified column sorted any time
* the data changes.
*
* After much research, there wasn't an easy way to automatically keep a column
* sorted in Google Sheets, and creating a second sheet to act as a "view" to
* my primary one in order to achieve that was not an option. Instead, I
* created a script that watches for when a cell is edited and triggers
* an auto sort.
*
@brettlangdon
brettlangdon / Wallpapers.md
Last active December 16, 2024 19:47
Wallpapers

Wallpapers

Install with git git clone https://gist.github.com/85942af486eb79118467.git ~/Pictures/wallpapers

@jmuspratt
jmuspratt / mediaName
Last active March 15, 2025 04:20
exiftool : rename files in current dir to YYYY-MM-DD-HH-MM-SS-1.ext
# Function for your .zshrc file
# Requirements: install the package manager Homebrew (http://brew.sh), then install exiftool (type brew install exiftool in Terminal.app).
# Renames image and MOV files according to EXIF capture date, using YYYY-MM-DD-HH-MM-SS.ext format.
# Files shot within the same second get copy number added (-1,-2, etc.).
# Video files require a different, so we run exiftool 3 times:
# 1. Exclude MOV files and rename the image files with <CreateDate>.
# 2. Target MOV files and rename them with MediaCreateDate (for iPhone videos).
# 3. Target MOV files and rename them with DateTimeOriginal (for Fuji camera videos).