Skip to content

Instantly share code, notes, and snippets.

View towski's full-sized avatar

towski towski

  • San Francisco, California
View GitHub Profile
$ModLoad imfile
$InputFileName /var/log/nginx/homebase-ssl.access.log
$InputFileTag nginx:
$InputFileStateFile /var/log/nginx_log_file
#$InputFileSeverity info
$InputFileFacility local5
$InputRunFileMonitor
local5.* @@<ip>:514
@towski
towski / SassMeister-input.scss
Created August 18, 2015 02:11
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
.devise, .sign-in, .sign-up {
border: none;
max-width: 360px;
margin: 0 auto 20px;
max-width: 360px;
@towski
towski / SassMeister-input.scss
Created August 18, 2015 02:11
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
.devise, .sign-in, .sign-up {
border: none;
max-width: 360px;
margin: 0 auto 20px;
max-width: 360px;
class HomeBase.Models.Role extends Backbone.SuperModel
paramRoot: 'role'
urlRoot: '/roles'
class HomeBase.Collections.RolesCollection extends Backbone.Collection
model: HomeBase.Models.Role
comparator: (role)->
if role.isNew() then '' else role.get('name').toLowerCase()
{
...
:user_hash => Proc.new { |current_user|
OpenSSL::HMAC.hexdigest( "sha256", "ENV['intercom_secret']",
current_user.id.to_s) },
...
}
class Sandiwch.Views.Chili extends Support.CompositeView
id: 'buttface-form'
initialize: =>
@hey = "beebs"
gcc -g -o commit-tree commit-tree.o read-cache.o -lssl
/usr/bin/ld: read-cache.o: undefined /reference to usrsymbol '/binSHA1_Update@/ld@OPENSSL_1.0.0: '
/read-/usr/cache.o:lib/x86_64 undefined-linux- referencegnu/libcrypto.so.1.0.0 to: error symbol adding 'symbols: SHA1_Update@DSO missing@OPENSSL_1.0.0 from '
//command/ usrlineusr
//libbin//x86_64ld:-linux read-gnu-cache.o/libcrypto.so.1.0.0: undefined: reference to /symbol error 'SHA1_Updateaddingcollect2: error: ld returned 1 exit status
usr/bin/ @symbols:@OPENSSL_1.0.0 DSO'
missing //usrld: /libfrom /x86_64-command linelinux-read-gnu/cache.o:libcrypto.so.1.0.0
: error adding symbolsundefined : reference DSO missingto symbol from ' commandSHA1_Update@ line@OPENSSL_1.0.0
'
//usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command line
require 'spec_helper'
describe QuickbooksEmployee do
it "hey" do
raise "hye"
end
end
@towski
towski / cancel_pending_builds.rb
Last active August 29, 2015 14:08
cancel any pending builds for the current branch on circle ci
#!/usr/bin/env ruby
require 'json'
require 'open-uri'
user = ENV['circleci_user']
project = ENV['circleci_project']
token = ENV['circleci_token']
unless user && project && token
puts "Need Circle CI user, project and token. Use the environment variables circleci_user, circleci_project, and circleci_token"
@towski
towski / Makefile
Last active August 29, 2015 14:07
rerun migration if the file is touched
# if your db is currently up to date, just run make setup to touch all the files. otherwise start the db from scratch
MIGRATIONS = $(shell ls db/migrate)
RUN_FILES = $(addprefix db/run/,$(MIGRATIONS))
all: db/run release
release:
$(MAKE) migrate
$(MAKE) db/run/tests_updated
db/run: