This is a question that comes up quite often by windows users, so thought we would share how we normally do it. The question is
Can you run a PostgreSQL server on your windows desktop/server box without having to install anything?
The answer is
| #!/usr/bin/bash | |
| # | |
| # Cut a fragment of a video with the minimal possible re-encoding. | |
| # If the new start point is not a key frame it reencodes the video | |
| # from that point until the frame before a new keyframe. The remaining | |
| # part is copied as passthrough and both fragments are concatenated | |
| # | |
| # In order to make the video streams compatible we use the same codec | |
| # and bitrate. This works fine with h264. No idea about other codecs |
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Runtime.Loader; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Mvc.ApplicationParts; | |
| using Microsoft.AspNetCore.Mvc.Infrastructure; |
| // WARNING: There's much more to know/do around hooks, and | |
| // this is just a simplification of how these work. | |
| // shared references, updated | |
| // per each hook invoke | |
| let execution = null; | |
| let current = null; | |
| let context = null; | |
| let args = null; |
| # content has to be in .config/fish/config.fish | |
| # if it does not exist, create the file | |
| setenv SSH_ENV $HOME/.ssh/environment | |
| function start_agent | |
| echo "Initializing new SSH agent ..." | |
| ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV | |
| echo "succeeded" | |
| chmod 600 $SSH_ENV | |
| . $SSH_ENV > /dev/null |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545