Skip to content

Instantly share code, notes, and snippets.

View pascaliske's full-sized avatar
👋
Hi, what's up?

Pascal Iske pascaliske

👋
Hi, what's up?
View GitHub Profile
@pascaliske
pascaliske / pvc-migrate.sh
Last active June 29, 2022 14:08
Kubernetes PVC migration
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
# usage:
# ./pvc-migrate <forward|backward> <namespace> [<source> [<dest>]]
DIRECTION="${1}"
NAMESPACE="${2}"
@pascaliske
pascaliske / direnv-with-n.md
Last active June 29, 2021 09:27
Integrate `tj/n` with `direnv`

Integrate tj/n with direnv

This gist explains how to setup direnv together with tj/n. When a node version isn't available at the moment the envrc file gets loaded the node version will be downloaded automatically. Happy coding! ☕

Step 1: Install direnv

Use Homebrew to install the direnv tool.

@pascaliske
pascaliske / temp.sh
Last active April 22, 2020 13:20
Watch Raspberry Pi temperature and display in place.
temp() {
while true; do
printf "\r$(vcgencmd measure_temp)";
sleep 1;
done;
}
@pascaliske
pascaliske / index.js
Last active June 18, 2019 11:32
Prevent `console.log` overrides
(function (window) {
var log = window.console.log, fn = function () { return log; };
Object.defineProperty(window.console, 'log', { set: fn, get: fn });
})(window);
@pascaliske
pascaliske / .direnv.md
Last active April 9, 2019 06:15
Directory specific node versions with direnv and tj/n
@pascaliske
pascaliske / jsonview-solarized.css
Created February 8, 2018 12:05 — forked from iansym/jsonview-solarized.css
JSON View solarized theme for Chrome Extension
body {
background-color: #002b36;
color: #839496;
font-size: 14px;
white-space: pre !important;
font-family: "Source Code Pro", monospace;
}
.property {
font-weight: bold;
@pascaliske
pascaliske / git-diff.md
Last active April 16, 2024 14:32
Collection of useful diff tools for git

Useful git diff tools

Overview

  • Word: docx2txt (brew install docx2txt)
  • Excel: xlsx2txt
  • PDF: pdf2txt (brew install poppler)
  • Images: exiftool (brew install exiftool)

Setup