Bash script to:
- Iterate all commits made within a Git repository.
Generally, the Git proxy configuration depends on the Git Server Protocal you use. And there're two common protocals: SSH and HTTP/HTTPS. Both require a proxy setup already. In the following, I assume a SOCKS5 proxy set up on localhost:1080. But it can also be a HTTP proxy. I'll talk about how to set up a SOCKS5 proxy later.
When you do git clone ssh://[user@]server/project.git or git clone [user@]server:project.git, you're using the SSH protocal. You need to configurate your SSH client to use a proxy. Add the following to your SSH config file, say ~/.ssh/config:
ProxyCommand nc -x localhost:1080 %h %p
| override fun onDraw(canvas: Canvas?) { | |
| contentBitmap.draw(canvas) | |
| // get rotate from matrix | |
| val matrixRotate = contentBitmapLayer.matrix.rotation | |
| // get contentBitmapLayer bounds from matrix | |
| val x1 = bitmapPoints[0] | |
| val y1 = bitmapPoints[1] | |
| val x2 = bitmapPoints[2] |
| <android.support.v4.widget.SwipeRefreshLayout | |
| android:id="@+id/refreshLayout" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <android.support.v4.widget.NestedScrollView | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <LinearLayout |
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end | |
| import androidx.recyclerview.widget.RecyclerView | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import androidx.recyclerview.widget.AsyncListDiffer | |
| import androidx.recyclerview.widget.DiffUtil | |
| #parse("File Header.java") |
| #!/bin/bash | |
| array=(`find . -name "Info.plist"`) | |
| for i in "${array[@]}" | |
| do | |
| val=$(/usr/libexec/PlistBuddy -c "print :LSMinimumSystemVersion" "$i" 2>/dev/null || print '0') | |
| if [ "$val" == "10.14" -o "$val" == "10.14.4" -o "$val" == "10.15" ]; then | |
| echo $i | |
| #!/bin/bash | |
| #open Xcode_10.3.xip -a "Archive Utility" | |
| cp -pi /Applications/Xcode_10.1.app/Contents/Developer/usr/bin/xcodebuild ~/Downloads/Xcode.app/Contents/Developer/usr/bin/ | |
| for bundle in ~/Downloads/Xcode.app{,/Contents/Developer/Applications/Simulator.app}; | |
| do | |
| echo 'bundle ==> ' $bundle | |
| defaults write "$bundle"/Contents/Info LSMinimumSystemVersion -string 10.13.6; |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
rebase vs merge).rebase vs merge)reset vs checkout vs revert)git rev-parse)pull vs fetch)stash vs branch)reset vs checkout vs revert)