This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:!function(a){var b=document.createElement("textarea"),c=document.getSelection();b.textContent=a,document.body.appendChild(b),c.removeAllRanges(),b.select(),document.execCommand("copy"),c.removeAllRanges(),document.body.removeChild(b)}("rspec " + [ ...new Set($('.test-file').map((i,e)=>e.innerHTML)) ].join(' ')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "Viscosity" to connect "Connection Name w/ Duo Push" | |
| tell application "System Events" | |
| repeat until exists (window "Viscosity" of application process "Viscosity") | |
| delay 0.5 | |
| end repeat | |
| tell process "Viscosity" | |
| set value of text field 1 of window "Viscosity" to "push" | |
| delay 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| git branch --merged | grep -v " develop\| stage\| master" | grep -v '*' | xargs git branch -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.betterment.common; | |
| import java.net.URL; | |
| import java.util.Arrays; | |
| import java.util.Collections; | |
| import java.util.List; | |
| import org.reflections.vfs.Vfs; | |
| import com.google.common.collect.Lists; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Build | |
| def initialize(build_json) | |
| @json = build_json | |
| end | |
| def params | |
| if action_node_with_params = @json['actions'].find { |a| a['parameters'] } | |
| action_node_with_params['parameters'] | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys as s | |
| for m in s.modules.values(): | |
| if hasattr(m, '__file__'): | |
| print(m.__file__) | |
| else: | |
| print(m) | |
| import pip | |
| for p in pip.get_installed_distributions(): | |
| if hasattr(p, 'location'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2015-05-18 16:53:42 -0400 | |
| python | |
| setup.py | |
| install | |
| --prefix=/private/tmp/osquery20150518-23111-cgyt8i/third-party/python/ | |
| --single-version-externally-managed | |
| --record=installed.txt | |
| running install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // valid as of 20150317 | |
| // run it in chrome's web inspector for easy, top-down reading + screenshots | |
| w = $('.GridTimeline-items'); w.children().each(function(i,li){w.prepend(li)}) |
NewerOlder