Skip to content

Instantly share code, notes, and snippets.

Michael Ossareh ossareh

Block or report user

Report or block ossareh

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

In github we can add editable todo lists:

  • here is an unchecked element
  • here is a checked one
View async.js
#!/usr/bin/env node
const inputs = [false, false, false, true, false, false];
const fast = (i, d) => {
console.log(`run ${d}`);
return i;
const slow = async (i) => {
return new Promise((resolve, reject) => {

Keybase proof

I hereby claim:

  • I am ossareh on github.
  • I am ossareh ( on keybase.
  • I have a public key ASCDpytm2j9S46-A1Wg1i514M_kbo8sjnskIFi4zNfTG_Ao

To claim this, I am signing this object:

ossareh / commands on the shell
Created Oct 16, 2014
steps to clean up excessive launch configs
View commands on the shell
$ sudo apt-get install awscli
$ aws configure
$ aws autoscaling describe-launch-configurations | grep LaunchConfigurationName | cut -d '"' -f4 > all_lcs
$ aws autoscaling describe-auto-scaling-groups | grep LaunchConfigurationName | cut -d '"' -f4 | sort -u > used_lcs
$ ./ > delete_lcs
$ for i in `cat delete_lcs`; do aws autoscaling delete-launch-configuration --launch-configuration-name ${i}; done
ossareh /
Last active Aug 29, 2015
Simple script to fetch latest asgard build
#!/usr/bin/env python2
# The MIT License (MIT)
# Copyright (c) 2014 Michael Ossareh & Twitch Interactive, Inc.
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
View gist:2668983
$ cat echo.c
#include <stdio.h>
int main() {
int c;
while ((c = getchar()) != EOF) {
View gist:2154684
$ find . -type f -name '*.rb' | xargs flay
parse error on value "table_name" (tIDENTIFIER)
skipping ./lib/generators/active_record/templates/migration.rb
parse error on value "table_name" (tIDENTIFIER)
skipping ./lib/generators/active_record/templates/migration_existing.rb
Total score (lower is better) = 6797
1) Similar code found in :iter (mass = 306)
View gist:2154670
$ find . -type f -name '*.rb' | xargs flog
parse error on value "table_name" (tIDENTIFIER)> at /usr/share/ruby-rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/racc/parser.rb:350:in `on_error', /usr/share/ruby-rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/racc/parser.rb:99:in `_racc_do_parse_c', /usr/share/ruby-rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/racc/parser.rb:99:in `__send__', /usr/share/ruby-rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/racc/parser.rb:99:in `do_parse', /usr/share/ruby-rvm/gems/ree-1.8.7-2011.03@jtv_rails3/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:750:in `process'
...stupid lemmings and their bad erb templates... skipping
parse error on value "table_name" (tIDENTIFIER)> at /usr/share/ruby-rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/racc/parser.rb:350:in `on_error', /usr/share/ruby-rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/racc/parser.rb:99:in `_racc_do_parse_c', /usr/share/ruby-rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/racc/parser.rb:99:in `__send__',
View gist:1099957
riak_search> name:gran and name:"tur*"
You can’t perform that action at this time.