How to set up multiple accounts with Mutt E-mail Client
Thanks to this article by Christoph Berg
Directories and files
~/
bind-key C-b send-prefix | |
bind-key C-o rotate-window | |
bind-key C-z suspend-client | |
bind-key Space next-layout | |
bind-key ! break-pane | |
bind-key " split-window | |
bind-key # list-buffers | |
bind-key $ command-prompt -I #S "rename-session '%%'" | |
bind-key % split-window -h | |
bind-key & confirm-before -p "kill-window #W? (y/n)" kill-window |
Thanks to this article by Christoph Berg
Directories and files
~/
A list of reasonably reliable DNS servers that I've personally tested to ensure that they fully support DNSSEC and do not hijack NXDOMAIN responses.
Address | Organization | Location | Service |
---|---|---|---|
8.8.8.8 | Worldwide (Anycast) | Google Public DNS | |
8.8.4.4 | Worldwide (Anycast) | Google Public DNS |
package main | |
import ( | |
"net/http" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
) |
# ag <https://github.com/ggreer/the_silver_searcher> | |
# usage: ag-replace.sh [search] [replace] | |
# caveats: will choke if either arguments contain a forward slash | |
# notes: will back up changed files to *.bak files | |
ag -0 -l $1 | xargs -0 perl -pi.bak -e "s/$1/$2/g" | |
# or if you prefer sed's regex syntax: | |
ag -0 -l $1 | xargs -0 sed -ri.bak -e "s/$1/$2/g" |
There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore
is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules
directory) as well as files that are generated (and regenerated) as artifacts of a build process.
All other files should be in your own global gitignore file:
.gitignore
in your home directory and add any filepath patterns you want to ignore.Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute
.config/git/ignore
for.gitignore
in your home directory, if you prefer.
#!/bin/bash | |
set -o errexit | |
set -o nounset | |
# This script is useful when forwarding your agent to an untrusted server. It works without X. | |
# | |
# To use this script, export DISPLAY=FAKE SSH_ASKPASS=/path/to/this/script SSH_ASKPASS_TTY=$(tty) | |
# before you do eval `ssh-agent` (these variables should end up in the environment ssh-agent runs in) | |
# Then add keys to the agent with ssh-add -c /path/to/key | |
# ssh-agent will then call this script to ask you for confirmation when asked for that key. |
------------------------------------------------------------------------------- | |
-- Configuration for using Xmonad inside Xfce, KDE and standalone. | |
-- | |
-- Xfce: It is recommended to disable/remove xfwm4 and xfdesktop. | |
-- KDE: Plasma works with xmonad, except | |
-- 1. Mouse cursor cannot focus on empty monitors. | |
-- 2. Panel start-menu search field cannot receive input. | |
------------------------------------------------------------------------------- |
#!/bin/bash | |
# btrfs-undelete | |
# Copyright (C) 2013 Jörg Walter <info@syntax-k.de> | |
# This program is free software; you can redistribute it and/or modify it under | |
# the term of the GNU General Public License as published by the Free Software | |
# Foundation; either version 2 of the License, or any later version. | |
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then | |
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2 | |
echo |