This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ----- | |
; = 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"paddingVertical":"0px", | |
"paddingHorizontal":"0px", | |
"marginVertical":"45px", | |
"marginHorizontal":"45px", | |
"backgroundImage":null, | |
"backgroundImageSelection":null, | |
"backgroundMode":"color", | |
"backgroundColor":"rgba(255,255,255,0)", | |
"dropShadow":true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Demonstrate execution order of code in Jest/Jasmine | |
*/ | |
function resolveAfter2Seconds(message) { | |
return new Promise((resolve) => { | |
setTimeout(() => { | |
resolve(message) | |
}, Math.ceil(Math.random() * 5000)) | |
}) |
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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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). |
NewerOlder