Skip to content

Instantly share code, notes, and snippets.

View utsav00's full-sized avatar
🎯
Focusing

Utsav utsav00

🎯
Focusing
View GitHub Profile

These are some commands/configs that I don't know or haven't used a lot at the time of writing but find them valuable to incorporate in my daily life

Configs

REuse REcorded REsolution

git config --global rerere.enabled Solve the same conflic automatically the next time it comes up

Setting config on different levels - local, global, system

There is a 4th secret option:

#!/bin/sh
execute() {
echo "$ $*"
OUTPUT=$($@ 2>&1)
if [ $? -ne 0 ]; then
echo "$OUTPUT"
echo ""
echo "Failed to Execute $*" >&2
exit 1
@utsav00
utsav00 / snake.py
Created January 15, 2019 09:09 — forked from sanchitgangwar/snake.py
Snakes Game using Python
# SNAKES GAME
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import curses
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN
from random import randint
curses.initscr()
win = curses.newwin(20, 60, 0, 0)