This will;
- Lists all remote merged branches
- Exclude
masterbranch - Exclude
stablebranch - Remove the
origin/prefix - Push the deletion (one by one)
| export {} | |
| // Representing Petri Nets as typed values in Typescript. | |
| type PlaceID = string | |
| type Place<P extends PlaceID = PlaceID> = { | |
| id: P | |
| } | |
| type Transition<P> = { | |
| start: P | |
| end: P |
| function main() { autoArchiveMail() } | |
| // A mapping of a query / saved search, and the ageCutoff for archiving. | |
| function archiveMap() { | |
| return [ | |
| {query: inbox('label:expirable label:stripe'), ageCutoff: hoursOld(1)}, // Quickly burn these | |
| {query: inbox('"Your meeting attendees are waiting!"'), ageCutoff: hoursOld(1)}, // Quickly burn these | |
| {query: inbox('label:n'), ageCutoff: hoursOld(6)}, | |
| {query: inbox('label:expirable'), ageCutoff: hoursOld(6)}, | |
| {query: inbox('label:office'), ageCutoff: daysOld(10)}, // Offce Notices |
Afer reading this post, and finding the instructions in the comments, I just wanted to collate this into one place.
http://applehelpwriter.com/2016/07/28/revealing-dropboxs-dirty-little-security-hack/
After following the steps below, Dropbox no longer has access to accessiblilty, nor does it keep re-asking for permission!
http://twitter.com/erny_th Says:
I have better solution:
- Remove executable and suid bits and lock dbaccessperm file.
| # So I can access the following data only methods in both views and in class level validations, do I? | |
| # e.g. | |
| # validates :event_progress, inclusion: { in: event_progressions } | |
| # | |
| # = f.select :owner_relationship, f.object.owner_relationships, {}, class: "form-control" | |
| ######################################################################################################################## | |
| # 1) I tried defining as instance methods & use procs to access in validations | |
| # DOESNT WORK - undefined method `event_progressions' for Forms::WeddingMoodboard:Class | |
| def owner_relationships | |
| %w{ALPHA BRAVO CHARLIE DELTA} |
| # A new game console has been released, the WiiThree | |
| # We need to add support for this new console to this code. | |
| # | |
| # It will require console specific code for each type of console. | |
| # Add this feature to the code below. | |
| class GameRenderer | |
| def initialize(console) | |
| @console = console | |
| end |
| class Object | |
| class << self | |
| alias :🆕 :new | |
| end | |
| end | |
| class FishingRod | |
| def 🔪 | |
| puts "🍣" |
| require 'rspec' | |
| require 'pry' | |
| module Trifle | |
| class BrokenContract < Exception ; end | |
| def contract(*contracts, method_name) | |
| old_method_name = :"__contractually_obligated_#{method_name}" | |
| alias_method old_method_name, method_name |
| RSpec::Matchers.define :be_decimal do |expected| | |
| match do |actual| | |
| coerce(actual) == coerce(expected) | |
| end | |
| failure_message_for_should do |actual| | |
| "expected that #{format(actual)} would equal #{format(expected)}" | |
| end | |
| def coerce(value) |