Skip to content

Instantly share code, notes, and snippets.

View VeikkoLehmuskorpi's full-sized avatar

Veikko Lehmuskorpi VeikkoLehmuskorpi

  • Tampere, Finland
View GitHub Profile
@VeikkoLehmuskorpi
VeikkoLehmuskorpi / red-youtube.css
Last active April 23, 2026 18:46
Red Youtube (Cairo Refresh color changes) UserStyle
/* ==UserStyle==
@name Red Youtube (Cairo Refresh color changes)
@author Veikko Lehmuskorpi
@version 1.2.0
@namespace https://gist.github.com/VeikkoLehmuskorpi/9955c6f382c7fd1c0468f4ba8f5454de
@homepageURL https://gist.github.com/VeikkoLehmuskorpi/9955c6f382c7fd1c0468f4ba8f5454de
@supportURL https://gist.github.com/VeikkoLehmuskorpi/9955c6f382c7fd1c0468f4ba8f5454de
@updateURL https://gist.github.com/VeikkoLehmuskorpi/9955c6f382c7fd1c0468f4ba8f5454de
@license MIT
==/UserStyle== */
#!/bin/sh
# Track and checkout a remote branch with fzf
git fetch
branch=$(git for-each-ref refs/remotes/origin --format='%(refname:short)'|fzf)
if [ -n "$branch" ]; then
git checkout -t "$branch"
fi
#!/bin/sh
# Checkout a local branch with fzf
branch=$(git for-each-ref refs/heads --format='%(refname:short)'|fzf)
if [ -n "$branch" ]; then
git checkout "$branch"
fi
@VeikkoLehmuskorpi
VeikkoLehmuskorpi / public.asc
Last active May 2, 2021 16:06
GPG Key [veikko.lehmuskorpi@protonmail.com]
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGCOxxwBEADhv1ux8fHwPM9TLoUupBejww6+jhNzoGhfjSgLfm2KKxbc2pGD
UMuZCDidvwHwO0ju10EAsGqJmINc9tMr1jmAxUKZOvskEKDCUzEXl3go4T2JQF0C
834Nf+Ge6njK+312rbhFA61o0J8Mi3z/YB364XKf0kDyWzMYGMc30RBC5MpUUiNu
5PItiNEOxYp60vbjCXWr7MnJvgibI/FgdeVfdebWNQsj2Fc5pjybWMqBBuUZTvAR
GM6I7LfIhCGn35a6i2L9877yKcS+YqO3MXHyLX7APIdTg+M4HfxvczPPI+S0eSHo
8zLQw2yds25a3FVJ4XCOMd0PrtZPUUea6M41NDk50bH6boBvU5b0w8W+yFXA1j0Y
cq4j94q21yu3bdNSoO5XFqRU12n6Ye7Yg35FouthgjhXTZL1fKdjf8TxUn0+PnTy
s+EhhTyjahmJc4CTwdIfSq546aijCSSxK/imh8w65lhHftEsgbk2RYOBo4JRPStL
@VeikkoLehmuskorpi
VeikkoLehmuskorpi / dlogs.sh
Last active May 4, 2021 07:47
Search for a Docker container and view its logs
#!/usr/bin/env bash
# Searches the output of "docker ps" matching a string,
# and views the logs of the first matching container
#
# Usage:
# ./dlogs.sh <search_string>
function dlogs() {
if [ -z "$1" ] ; then
echo "Usage: ./dlogs.sh <search_string>"
@VeikkoLehmuskorpi
VeikkoLehmuskorpi / dexec.sh
Last active May 4, 2021 07:47
Search for a Docker container and enter an interactive bash shell
#!/usr/bin/env bash
# Searches the output of "docker ps" matching a string,
# and executes an interactive bash shell on the first matching
# container
#
# Usage:
# ./dexec.sh <search_string>
function dexec() {
if [ -z "$1" ] ; then
@VeikkoLehmuskorpi
VeikkoLehmuskorpi / scoresaber-onelick-install-button.user.js
Last active June 21, 2020 12:12
Adds a OneClick™ install button to the detail page of a beatmap on Scoresaber.com
// ==UserScript==
// @name ScoreSaber OneClick install button
// @namespace https://scoresaber.com/
// @version 1.0
// @description Adds a OneClick install button to the detail page of a beatmap on ScoreSaber
//
// @author Veikko Lehmuskorpi
// @license MIT
// @copyright Copyright (C) 2020, by Veikko Lehmuskorpi
//
@VeikkoLehmuskorpi
VeikkoLehmuskorpi / .eslintignore
Last active August 3, 2019 18:44
Code formatting and code style for React applications (ESLint, Airbnb rules, Prettier, Husky, Lint-staged)
# dependencies
/node_modules
# public
/public
# production
/build
@VeikkoLehmuskorpi
VeikkoLehmuskorpi / typings-shortcuts.user.js
Last active February 24, 2021 16:19
typings-shortcuts.user.js
// ==UserScript==
// @name Typings.gg Shortcuts
// @namespace veikko.dev/typings-shortcuts
// @version 0.1.1
// @description typings.gg shortcuts
// @author Veikko Lehmuskorpi
// @match https://typings.gg/
// @grant none
// ==/UserScript==