#!/bin/bash | |
#requires jq -> http://stedolan.github.io/jq/ | |
#optional change working_dir | |
working_dir=${1-$(pwd)} | |
cd $working_dir | |
user="github_username" | |
token="application token" | |
organization="Organization_Name" |
Create new filters and create new labels.
from:(notifications@github.com) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}
label: gh-pull-request
# exclude a directory | |
rclone sync src_dir g_storage:dest_dir -v --exclude "/SomeFolder/**" --dry-run | |
# sync vs copy | |
# sync is destructive whereas copy is not. sync will remove extra files on destination | |
# limit http transactions | |
rsync --tpslimit 10 copy src_dir dest_dir | |
# print progress |
There are now two ways to approach this:
- Using gpg and generating keys
- Using Kryptonite by krypt.co
This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.
Here are instructions to set up TensorFlow dev environment on Docker if you are running Windows, and configure it so that you can access Jupyter Notebook from within the VM + edit files in your text editor of choice on your Windows machine.
First, install https://www.docker.com/docker-toolbox
Since this is Windows, creating the Docker group "docker" is not necessary.
#!/bin/bash | |
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
# Inspired from https://gist.github.com/faleev/3435377 | |
# Remove any existing packages: | |
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
# Get the dependencies (Ubuntu Server or headless users): | |
sudo apt-get update |
## get total number of frames in a video | |
# source: http://stackoverflow.com/q/2017843/925216 | |
ffprobe -v error -count_frames -select_streams v:0 \ | |
-show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 \ | |
input.mkv | |
## split files into 5 seconds | |
# source: http://superuser.com/q/377343/307710 | |
ffmpeg -ss 00:00:00 -t 00:00:05 -i input.mp4 -acodec copy -vcodec copy output.mp4 | |
# bash script - http://grapsus.net/blog/post/A-script-for-splitting-videos-using-ffmpeg |
# source: http://askubuntu.com/a/26518/258167 | |
x=4.8 # priority = 10 | |
y=5 # priority = 20 | |
sudo update-alternatives --remove-all gcc | |
sudo update-alternatives --remove-all g++ | |
sudo update-alternatives --install /usr/bin/gcc gcc "/usr/bin/gcc-${x}" 10 | |
sudo update-alternatives --install /usr/bin/gcc gcc "/usr/bin/gcc-${y}" 20 |
NO_PUBKEY <key> | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <key> |