Skip to content

Instantly share code, notes, and snippets.

View raszi's full-sized avatar
🏠
Working from home

KARASZI István raszi

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am raszi on github.
  • I am ikaraszi (https://keybase.io/ikaraszi) on keybase.
  • I have a public key ASBrx8gcdsiCXUfqvNel8z5Fyx8_kxvEE4Ws6j3YPiouVwo

To claim this, I am signing this object:

@raszi
raszi / #README.md
Last active September 18, 2022 20:14
Git-delta auto dark mode

Dark Mode Tips

This gist has various tips to get your CLI tools aware of the appaerance of the system. If you terminal changes its background color from light to dark during late hours it is quite inconvenient to have the wrong colorschemes.

Install dark-mode-cli

You can either install it with Homebrew or with npm

Homebrew

@raszi
raszi / branch-test.sh
Last active May 18, 2016 07:39
Test script for git-fresh
#!/bin/sh
set -e
TEST_DIR=$(mktemp -d)
pushd ${TEST_DIR}
git init && touch test && git add test && git commit -am 'Initial commit'
git checkout -b something && git checkout master && git-fresh && git checkout -
#!/usr/bin/env ruby
require 'benchmark/ips'
Benchmark.ips do |x|
input = 's' * 1_000_000
root = '/something/funny/is/here/'
root_filter = /^#{Regexp.escape(root)}/io
root_filter_a = /\A#{Regexp.escape(root)}/io