Skip to content

Instantly share code, notes, and snippets.

Avatar

Nels Nelson nelsnelson

View GitHub Profile
@premek
premek / mv.sh
Last active Dec 24, 2021
Rename files in linux / bash using mv command without typing the full name two times
View mv.sh
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@nelsnelson
nelsnelson / support_chat_transcript.txt
Created Nov 29, 2018
Google Fi cell phone plan privacy
View support_chat_transcript.txt
Stephen
9:40 AM
Thanks for contacting Google Support. My name is Stephen.
Stephen
9:40 AM
Hi Nels!
Stephen
9:40 AM
How may we help you today?
Nels Nelson
@a7madgamal
a7madgamal / dark.md
Last active Oct 20, 2021
Dark mode for Slack on MacOS
View dark.md
View log.py
#! /usr/bin/env python
import logging
import sys
log_format = "%(asctime)s %(levelname)s [%(name)s] %(message)s"
formatter = logging.Formatter(log_format)
handler = logging.StreamHandler()
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active Dec 30, 2021 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
This playbook has been removed as it is now very outdated.