首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)
host github
hostname github.com
Port 22
host gitlab.zjut.com
| # File Transfer for Pythonista | |
| # ============================ | |
| # This script allows you to transfer Python files from | |
| # and to Pythonista via local Wifi. | |
| # It starts a basic HTTP server that you can access | |
| # as a web page from your browser. | |
| # When you upload a file that already exists, it is | |
| # renamed automatically. | |
| # From Pythonista's settings, you can add this script | |
| # to the actions menu of the editor for quick access. |
| ## backup nonsystem apk | |
| adb backup -apk -shared -nosystem -all -f backup_apk.ab | |
| ### backup system and nonsystem apk | |
| adb backup -apk -noshared -system -all -f backup_apk.ab | |
| ## backup individual apk | |
| adb backup -apk com.example.testing -f testing.ab | |
| ## restore all |
| #!/usr/bin/python | |
| # Import PySide classes | |
| import sys | |
| from PySide.QtCore import * | |
| from PySide.QtGui import * | |
| class App: | |
| def __init__(self): |
Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sys
In env.py:
import re
| import logging | |
| from flask_mail import Message | |
| class FlaskMailLogHandler(logging.Handler): | |
| def __init__(self, mail, sender, recipients, subject, *args, **kwargs): | |
| super(FlaskMailLogHandler, self).__init__(*args, **kwargs) |
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>emoji</key> | |
| <array> | |
| <string>0⃣️</string> | |
| </array> |
| #!/usr/bin/env bash | |
| # | |
| # gh-dl-release! It works! | |
| # | |
| # This script downloads an asset from latest or specific Github release of a | |
| # private repo. Feel free to extract more of the variables into command line | |
| # parameters. | |
| # | |
| # PREREQUISITES | |
| # |