git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| -- IMStatus | |
| -- version 2.0, Lantrix (http://techdebug.com) | |
| -- idea conceived from script by Jason Kenison "theWebGuy" Blog at: | |
| -- http://www.jasonkenison.com/blog.html?id=22 | |
| (* | |
| Copyright (c) 2008, TechDebug.com | |
| Permission to use, copy, modify, and/or distribute this software for any | |
| purpose with or without fee is hereby granted, provided that the above |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| -- This AppleScript is used to create a new safari window then it brings Safari to the front. | |
| -- I'm using this as a script I can trigger via Alfred. It's particularly nice when you work | |
| -- in many spaces on your Mac. If you are in a space that doesn't have a Safari window open | |
| -- it will simply open a new window in that space without switch spaces on you. | |
| -- Feel free to copy and use however you would like. | |
| -- Created by Stephen Young, @stevoyoung | |
| -- Hey, Safari, I'm talking to you ... | |
| tell application "Safari" | |
| -- open new safari window and go to specific url. If you want a blank window, simple use "make new document" instead. |
| #!/bin/bash | |
| # Convert a Github Flavored Markdown Syntax file to HTML | |
| # | |
| # The MIT License (MIT) | |
| # Copyright © 2012 Evertton de Lima <[email protected]> | |
| # http://evertton.mit-license.org/ | |
| # Stylesheet feature by Dan Untenzu <[email protected]> | |
| # | |
| # Requirements: cURL (sudo apt-get install curl) |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| git branch -m master newname | |
| git push origin newname | |
| # Change "Default Branch" in settings/options in GitHub | |
| git push origin :master |
| #### | |
| #### pyenv-virtualenv bash prompt customization | |
| #### | |
| # pyenv | |
| eval "$(pyenv init -)" | |
| # pyenv-virtualenv: |
| #!/bin/bash | |
| ## @file | |
| ## Shows CLI diff between two plist files. | |
| ## | |
| ## Normally, Mac plist files are binary, so diffs do not display. However, | |
| ## there are cases where seeing diffs is important. For example, when tracking | |
| ## changes via Mackup's git storage option. | |
| ## | |
| ## Note this option allows seeing plist diffs without fully installing Xcode |
This is a sample script for OCR using Google Drive API. A text file which converted by OCR can be retrieved by inputting an image file.
In this sample, Python Quickstart is used. The detail information is https://developers.google.com/drive/v3/web/quickstart/python. Please read “Step 1: Turn on the Drive API” and “Step 2: Install the Google Client Library”.
from __future__ import print_function
import httplib2
import os| ;; Stolen from: | |
| ;; http://mikehucka.postach.io/post/modifying-emacss-vc-diff-for-word-oriented-diffs | |
| ;; | |
| ;; Improvements: | |
| ;; - Be smarter about adding --word-diff to `vc-git-diff-switches' and | |
| ;; not clobbering any existing settings. | |
| ;; - Use `defface' as the docstring for `make-face' recommends. | |
| ;; - Base face defaults on `diff-added' and `diff-removed'. | |
| ;; - Rename `vc-diff-deleted-face' to `vc-diff-removed-face' for | |
| ;; consistency with existing face naming conventions. |