Skip to content

Instantly share code, notes, and snippets.

<template>
<div>
<h4>Principal Owner Information</h4>
<div v-show="owners.length > 0">
<input v-model="owners_attributes" id="owners_attributes" name="owners_attributes" type="hidden">
<table class="table table-striped">
<thead>
<th>Name</th>
<th>Ownership Percentage</th>
</thead>
@bruschill
bruschill / README.md
Last active January 12, 2017 13:58 — forked from steve-jansen/README.md
Stop and start Symantec Endpoint Protection on OS X

This script enables you stop and start Symantec Endpoint Protection on OS X

Installation

sudo curl https://gist.githubusercontent.com/bruschill/0a94601c583be2b9fd7691f668211288/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep

Keybase proof

I hereby claim:

  • I am bruschill on github.
  • I am bruschill (https://keybase.io/bruschill) on keybase.
  • I have a public key whose fingerprint is 7EA9 EC8E 4B45 906F 234A 7853 648D 918E E3FC 346C

To claim this, I am signing this object:

@bruschill
bruschill / gitcommand.go
Created May 17, 2016 01:26
multithreaded repo updating
package main
import "os/exec"
//GitCommand is the base structure for an executable git command
type gitCommand struct {
//name of bin
binName string
//additional args for call, appended to reqArgs
@bruschill
bruschill / thing.rb
Last active November 29, 2015 00:17
# Challenge.find(1).difficulty.name
# think of the dots as steps
# step 1...
Challenge.find(1) #=> my_challenge
# step 2...
my_challenge.difficulty #=> my_challenge's difficulty
# step 3...
numbers = [
[8008554, -2502923, -313904],
[8306329, 806973, -514853],
[5166860, 6317662, -5860402],
[2095008, 8996870, 3612790],
[710452, -6610443, -1108793],
[5984528, -3775534, -1118190],
[-5203280, -4983268, -3852159],
[6573526, 7011589, -9111964],
[8998110, -3483381, 7930722],
#!/usr/bin/env ruby
puts ((Dir.glob(File.join('/', '**', '*')).select{|file| File.file?(file)}.count) % 5) + 1
@bruschill
bruschill / testing_scenarios.rb
Last active August 29, 2015 14:15
Testing Scenarios
#### TESTING SCENARIOS
### GENERAL
# When it comes to testing you'll want to write tests
# for every outcome of anything (method call, object instantiation,
# redirect, etc.) to verify that what you expect to happen actually happens,
# regardless of how rarely you think it may happen.
#
# Ultimately what this boils down to is testing:
# - every condition of a conditional (if/else, case, etc.)
# - method
@bruschill
bruschill / dwolla_pin.rb
Last active September 15, 2015 06:33
Dwolla pin encryption in Ruby
module Dwolla
class Pin
def self.decrypt(pin, iv)
return nil unless pin.present? && iv.present?
decipher = OpenSSL::Cipher::AES256.new(:CBC)
decipher.decrypt
decipher.key = Rails.application.secrets.secret_key_base
# convert iv from utf-8 back to ascii-8bit
@bruschill
bruschill / app.js
Created February 19, 2014 01:15
Angular todo app with list management
'use strict';
var rpgtd = angular.module('rpgtd', []);