Skip to content

Instantly share code, notes, and snippets.

@abrambailey
abrambailey / EnglishHonorifics
Created February 9, 2015 23:12
English honorifics array
[
'Mr',
'Ms',
'Miss',
'Mrs',
'Mx',
'Master',
'Sir',
'Madam',
'Dame',
@abrambailey
abrambailey / invite-all-users-to-slack-channel.js
Last active October 29, 2020 06:10
Invite all users to slack channel
var i = 1;
function inviteAllUsers() {
setTimeout(function () {
setTimeout(function() {
$('#channel_actions_toggle').click();
},100)
setTimeout(function() {
$('#channel_invite_item').click();
},200)
@abrambailey
abrambailey / gist:dceb8f450b6f139fab2a
Created August 10, 2014 17:15
How to add Spree to an existing Ruby on Rails application with devise authentication
gem 'spree', github: 'spree/spree', :branch => '2-3-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-3-stable'
$ bundle install
$ rails g spree:install --migrate=false --sample=false --seed=false
config/initializers/spree.rb by changing this line: Spree.user_class = "Spree::User" to this: Spree.user_class = "User"
$ rake spree_auth:install:migrations
@abrambailey
abrambailey / keybase.md
Last active April 17, 2018 20:14
keybase.md

Keybase proof

I hereby claim:

  • I am abrambailey on github.
  • I am funkdified (https://keybase.io/funkdified) on keybase.
  • I have a public key ASBJeh8WilJSq3aIkNH0WaUPwM-mNwwc9AoEzcjlmdJIkgo

To claim this, I am signing this object:

@abrambailey
abrambailey / rebase.sh
Last active June 30, 2016 18:54 — forked from DennisOSRM/rebase.sh
Rebase current branch against origin/qa and squash all commits into a single one
#!/bin/sh
set -e
# Get the current branch name.
branch=`git rev-parse --abbrev-ref HEAD`
# Determine the commit at which the current branch diverged.
ancestor=`git merge-base qa HEAD`
# Stash any uncommited, changed files.
git stash --all
# Revert the branch back to the ancestor SHA.
.footer {
color:white;
font-family: OpenSansSemibold;
font-size: 12px;
padding:2px;
padding-bottom: 4px;
//text-align: center;
a {
color:white;
margin-right: 20px;
searchable do
text :name, :as => :name_textp
text :full_name, :as => :full_name_textp
end
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
funkdified@vizio ~ $ echo "deb https://download.01.org/gfx/ubuntu/12.10/main Ubuntu 12.10 #Intel Graphics drivers" | sudo tee /etc/apt/sources.list.d/intellinuxgraphics.list
[sudo] password for funkdified:
deb https://download.01.org/gfx/ubuntu/12.10/main Ubuntu 12.10 #Intel Graphics drivers
funkdified@vizio ~ $ wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | sudo apt-key add -
--2013-05-30 22:32:39-- https://download.01.org/gfx/RPM-GPG-KEY-ilg
Resolving download.01.org (download.01.org)... 198.145.11.106, 2001:19d0:3:5::106
Connecting to download.01.org (download.01.org)|198.145.11.106|:443... connected.
WARNING: no certificate subject alternative name matches
requested host name `download.01.org'.
HTTP request sent, awaiting response... 200 OK