Skip to content

Instantly share code, notes, and snippets.

View asanakoy's full-sized avatar

Artsiom asanakoy

View GitHub Profile
@reyjrar
reyjrar / New-iTerm-Window.scpt
Created February 8, 2012 13:14
AppleScript to Open a New iTerm Window and bring it to the front
(*
* New-iTerm-Window.scpt
*
* Intended for use with QuickSilver
* I mapped option-y to running this script to create
* a new iTerm window on the current workspace
*
* Based on much Googling - very little "original" code here
* Comments/Suggestions to brad.lhotsky@gmail.com
*)
@cashiwamochi
cashiwamochi / sfm_from_videos.sh
Created April 28, 2019 10:53
An easy script for sfm using colmap
#!/bin/bash
# Extract frames from video
mkdir images
ffmpeg -i $1 -r 24 -q:v 1 images/%06d.jpg
# ffmpeg -i $1 -ss start[sec] -t end[sec] [framerate] -q:v 1 %06d.jpg
# start to colmap process
DATASET_PATH=$(pwd)
@plembo
plembo / embed-crypt-rclone.md
Last active May 2, 2023 21:38
Embedding an encrypted folder with rclone

Embedding an encypted folder with rclone

There are many use cases for rclone. Mine was to "sync" with my "free" 15 GB Google Drive on Linux. While most of my files aren't particularly sensitive, there are a number that are. Until recently, I encrypted these manually using 7-zip. The problem with that was having to decrypt manually every time I wanted to look at them.

The Problem

Rclone has an encryption overlay that can be used to encrypt either a single folder or all folders in a configured remote (a networked storage system like Google Drive, OneDrive, AWS S3 or GCS). Setting it up is pretty easy, but an unintended consequence not discussed in any of the many tutorials on rclone encryption is that if your encrypted folder is a folder on an already existing remote (which is my preferred setup), using sync on the whole remote will remove the unencrypted files in the local copy of the folder and replace them with encrypted files.

The Solution

The solution to this conundrum isn't

@navarrothiago
navarrothiago / README.md
Last active July 18, 2024 16:42
Turn your smartphone or tablet camera into a WebCam to make video conference in Linux