This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gource \ | |
-s 30 \ | |
-1280x720 \ | |
--multi-sampling \ | |
--stop-at-end \ | |
--highlight-users \ | |
--font-size 25 \ | |
--output-ppm-stream - \ | |
--output-framerate 30 \ | |
--logo ~/Downloads/favicon.png \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks https://johnvoysey.wordpress.com/2014/05/07/raspberry-pi-camera-live-streaming/ | |
libx264 | |
Compiling the libx264 library from source is relatively straightforward. You will need git installed to check out the latest version. Use the following commands to check out, compile & install libx264: | |
git clone git://git.videolan.org/x264.git | |
cd x264/ | |
./configure --enable-static --enable-shared | |
make | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Branches that are local only will not be touched. | |
Branches that have been deleted on remote but were not merged will show a notification but not be deleted on local. | |
If you want to delete those as well change `-d` to `-D`. | |
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void unsetFlag(Intent intent, int flag) { | |
intent.setFlags(intent.getFlags() & (~flag)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#delete all remote tags containing "v0" | |
git ls-remote | grep tags | grep v0 | awk '/^(.*)(\s+)(.*[a-z])/ {print ":" $2}' | grep -v \{ | xargs git push origin | |
#delete all local tags containing "v0" | |
git tag -l | grep v0 | awk '/^(.*[a-z])/ {print $1}' | xargs git tag -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onBindViewHolder(final SimpleViewHolder holder, int position) { | |
holder.title.setText(mItems.get(position).toString()); | |
boolean isVertical = (mRecyclerView.getOrientation() == TwoWayLayoutManager.Orientation.VERTICAL); | |
final View itemView = holder.itemView; | |
final int itemId = mItems.get(position); | |
if (mLayoutId == R.layout.layout_staggered_grid) { |