Skip to content

Instantly share code, notes, and snippets.

@Tomasvrba
Tomasvrba / .gitconfig
Created December 7, 2020 09:53 — forked from rocketraman/.gitconfig
.gitconfig aliases useful for gitworkflow (https://github.com/rocketraman/gitworkflow)
[alias]
# Basically `log --oneline --decorate --graph` with different colors and some additional info (author and date)
lg = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C(reset) %C(dim black)%d%C(reset)'
# lg (see above) with --first-parent
lgp = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C(reset) %C(dim black)%d%C(reset)' --first-parent
# https://stackoverflow.com/questions/61510067/show-specific-commits-in-git-log-in-context-of-other-commits
hl = "!f() { grep --color -E \"$(git log --pretty=%h \"$@\" | tr '\n' '|')\" || true; }; f"
hlp = "!f() { less -R -p $(git log --pretty=%h \"$@\" | tr '\n' '|'); }; f"
@Tomasvrba
Tomasvrba / 0 Linux-On-MBP-Late-2016.md
Created April 30, 2020 08:44 — forked from roadrunner2/0 Linux-On-MBP-Late-2016.md
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@Tomasvrba
Tomasvrba / AdminUpgradeabilityProxy.abi.json
Last active March 24, 2020 15:11 — forked from spalladino/AdminUpgradeabilityProxy.abi.json
ABI for ZeppelinOS AdminUpgradeabilityProxy as of [email protected]: https://github.com/OpenZeppelin/openzeppelin-sdk/releases/tag/v2.7.1; If ABI is out of date, recompile contracts from here: https://github.com/OpenZeppelin/openzeppelin-sdk/tree/master/packages/lib/contracts/upgradeability andget ABI with `solc AdminUpgradeabilityProxy.sol --abi`
[
{
"constant": false,
"inputs": [
{
"name": "newImplementation",
"type": "address"
}
],
"name": "upgradeTo",
Verifying my Blockstack ID is secured with the address 1FiroQuCd3ArQR9GhR5TcmPjLRBryJggjB https://explorer.blockstack.org/address/1FiroQuCd3ArQR9GhR5TcmPjLRBryJggjB

Keybase proof

I hereby claim:

  • I am tomasvrba on github.
  • I am tomvrba (https://keybase.io/tomvrba) on keybase.
  • I have a public key ASC8yk7excBQVWOLrlDu0Pg4Nhfy9iRDfz5yyFRthsNhPAo

To claim this, I am signing this object:

@Tomasvrba
Tomasvrba / 360TimelapseTutorial.md
Last active December 17, 2022 22:18
HD 360° Timelapse and FFmpeg tutorial

How to capture, stitch and publish a 360° timelapse

Consumer ready 360° cameras are becoming ever more accessible and many people are experimenting with a variety of 360° content. Out of the many cameras on the market the Ricoh Theta S is one of the most user-friendly, turn-key solutions with lots of built-in features. However, the camera's videos are limited 1920x960 resolution and the Theta+ app only lets you create a timelapse with up to 300 or 400 images. The workaround is to use interval shooting to capture as many images as you'd like at the 5376x2688 to full resolution and then stitch them together manually into an HD video. There are few GUI solutions (especially open-source/free) which let you do this with ease. Here's how you do it:

Set up interval shooting on your Ricoh Theta S

@Tomasvrba
Tomasvrba / ffmpeg-cheatsheet.md
Created June 16, 2017 18:58 — forked from nickkraakman/ffmpeg-cheatsheet.md
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file