Skip to content

Instantly share code, notes, and snippets.

Amos amoose

Block or report user

Report or block amoose

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am amoose on github.
  • I am amos ( on keybase.
  • I have a public key ASDmRiHhP-2pFmrNzmSZabw9-HVmo0EfDVtugku_m8g-Wgo

To claim this, I am signing this object:

amoose / shell_output.txt
Created Oct 29, 2016
Launching Fugacious on Heroku
View shell_output.txt
➜ fugacious git:(master) ✗ bin/heroku
++ +s- :s/ ++ /s: /s/
++ sd: -dy` ++ sd/ +d+
View gist:98926704abccc22e9af7
Verifying that +astone is my blockchain ID.
View gist:0d98168f2fae85be88ed
➜ answers git:(feature/227_new-app-command-plus-lib-core) ✗ ./bin/answers MyApp
create README.rdoc
create Rakefile
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
amoose / import_articles.rake
Last active Aug 29, 2015
Imports Articles from fixtures
View import_articles.rake
require 'yaml'
namespace 'import' do
desc "Imports sample Answers data from fixtures/articles.yml"
task :articles => :environment do
puts "Loading Answers data from spec/fixtures/articles.yml"
@questions = YAML::load_file('spec/fixtures/articles.yml')
amoose / searchkick_ext.rb
Created Aug 4, 2014
ElasticSearch synonym tokenization with Searchkick gem
View searchkick_ext.rb
require 'searchkick'
module SearchkickSyn
def searchkick_index_options
# fetch index options
options = super
# inject Synonym filter for default index and searchkick search
options[:settings][:analysis][:analyzer][:default_index][:filter].push "synonym"
options[:settings][:analysis][:analyzer][:searchkick_search][:filter].push "synonym"
View gist:ace4559c2fafe127d364
INSERT INTO dbpermissionrequests
SELECT username,
Getdate() AS reqDate,
'EXTENSION [999]: ',
'1' AS isActive
FROM dbpermissionrequests

Keybase proof

I hereby claim:

  • I am amoose on github.
  • I am amos ( on keybase.
  • I have a public key whose fingerprint is DD21 C744 B76D BDDA ADB6 8E57 DAFE B51B 8C67 F44F

To claim this, I am signing this object:

View gist:8759417
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
amoose / gist:7621537
Last active Dec 29, 2015
Snippet to authenticate a user and query MyUSA profile.\
View gist:7621537
$(function() {
OAuth.initialize('public key');
$('.login').click(function(e) {
OAuth.popup('myusa', function(error, result) {
url: ''+result.access_token,
headers: { 'Authorization': "Bearer "+result.access_token },
success: function(data) {
You can’t perform that action at this time.