create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| import requests | |
| from io import open as iopen | |
| from urlparse import urlsplit | |
| def requests_image(file_url): | |
| suffix_list = ['jpg', 'gif', 'png', 'tif', 'svg',] | |
| file_name = urlsplit(file_url)[2].split('/')[-1] | |
| file_suffix = file_name.split('.')[1] | |
| i = requests.get(file_url) | |
| if file_suffix in suffix_list and i.status_code == requests.codes.ok: |
This should be one of the core features of Git, but for some reason it's impossible to figure out how to search for a string in your commit history and see the diffs that that string is in. Here's the best I've come up with:
To find which commits and which files a string was added or removed in:
git log -S'search string' --oneline --name-status
To see the diff of that
| /* | |
| * Copyright (C) 2017 Alberts Muktupāvels | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| #!/usr/bin/env python | |
| # vim: set fileencoding=utf-8 | |
| # | |
| # USAGE: | |
| # Back up your tmux old config, run the script and redirect stdout to your conf | |
| # file. Example: | |
| # | |
| # $ cp ~/.tmux.conf ~/.tmux.conf.orig | |
| # $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf | |
| # |
_env_init() {
# init version manager without rehash on startup
local SHELL_NAME="zsh"
local init_args=(- --no-rehash zsh)
local zshrc="$HOME/.zshrc"
# For security on Linux
[[ -n $XDG_RUNTIME_DIR ]] && local TMPDIR="$XDG_RUNTIME_DIR"account.register.payments model (in v12) renamed to account.payment.register (v13 & v14)
_compute_reconciled_invoice_ids(...) model (v12 & v13) renamed to _compute_stat_buttons_from_reconciliation(...) (v14)*
account.asset.asset (v10) model renamed to account.asset(in v12 upwards) and moved from core addons to enterprise [module: account_asset]
communication" field on account.payment has been removed in v14