How to filter emails from GitHub in Gmail and flag them with labels.
The labels in this document are just examples.
| Filter | Label |
|---|
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
gpg --list-secret-keys and look for sec, use the key ID for the next stepgit to use GPG -- replace the key with the one from gpg --list-secret-keys| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Copyright 2016 Massachusetts Institute of Technology | |
| """Extract images from a rosbag. | |
| """ | |
| import os | |
| import argparse |
1 - install GPG tools : https://gpgtools.org/
2 - Create new key for your github email
3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY
4 - configure git to sign all commits: git config --global commit.gpgsign true
5 - add to the bottom of ~/.gnupg/gpg.conf: (create the file if it not exists)
| class API::V1::BaseController < ApplicationController | |
| skip_before_filter :verify_authenticity_token | |
| before_filter :cors_preflight_check | |
| after_filter :cors_set_access_control_headers | |
| def cors_set_access_control_headers | |
| headers['Access-Control-Allow-Origin'] = '*' | |
| headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS' |
| # Signal catching | |
| def shut_down | |
| puts "\nShutting down gracefully..." | |
| sleep 1 | |
| end | |
| puts "I have PID #{Process.pid}" | |
| # Trap ^C | |
| Signal.trap("INT") { |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| set :application, "My Static Content" | |
| set :servername, 'test.example.com' | |
| # no git? simply deploy a directory | |
| set :scm, :none | |
| set :repository, "." # the directory to deploy | |
| # using git? deploy from local git repository | |
| # set :scm, :git | |
| # set :repository, 'file//.' # path to local git repository |
| class CompressedRequests | |
| def initialize(app) | |
| @app = app | |
| end | |
| def method_handled?(env) | |
| !!(env['REQUEST_METHOD'] =~ /(POST|PUT)/) | |
| end | |
| def encoding_handled?(env) |
| <?php | |
| /** | |
| * @author Jay Taylor [@jtaylor] | |
| * | |
| * @date 2012-02-23 | |
| * | |
| * @description Originally found on SO: | |
| * http://stackoverflow.com/questions/962915/how-do-i-make-an-asynchronous-get-request-in-php | |
| */ |