Skip to content

Instantly share code, notes, and snippets.

@premek
premek / mv.sh
Last active March 5, 2024 17:43
Rename files in linux / bash using mv command without typing the full name two times
# 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 November 29, 2018 15:51
Google Fi cell phone plan privacy
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
@nelsnelson
nelsnelson / public_dns_servers.md
Created April 23, 2018 16:07
Public DNS Servers
@a7madgamal
a7madgamal / dark.md
Last active July 14, 2023 04:00
Dark mode for Slack on MacOS
@nelsnelson
nelsnelson / log.py
Last active September 10, 2015 15:54
#! /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()
@yuriihabrusiev
yuriihabrusiev / development.sh
Created November 7, 2013 15:12
Installing Ruby with rbenv on development and production boxes
#!/bin/bash
#
# Local Ruby with rbenv and ruby-build
## Update apt
sudo apt-get -y update
## Install git and curl
echo " ### INSTALLING GIT AND CURL ###"
sudo apt-get install -y git curl
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active March 31, 2024 18:45 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.