Skip to content

Instantly share code, notes, and snippets.

View ismaild's full-sized avatar
🥊
Building Things...

Ismail Dhorat ismaild

🥊
Building Things...
View GitHub Profile
rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke db:migrate:load (first_time)
** Invoke environment (first_time)
** Execute environment
Warning: NLS_LANG is not set. fallback to US7ASCII.
** Execute db:migrate:load
** Execute db:migrate
** Invoke db:dump (first_time)
** Invoke environment
@ismaild
ismaild / impala-hdp.md
Last active September 1, 2015 22:27 — forked from rampage644/impala-hdp.md
Impala + HDP

Downloads

HDP sandbox

Installation

yum-config-manager --add-repo http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh5.repo
yum install  impala-server impala-catalog impala-state-store impala-shell
ln -sf /usr/lib/hbase/lib/hbase-client.jar /usr/lib/impala/lib
ln -sf /usr/lib/hbase/lib/hbase-common.jar /usr/lib/impala/lib
ln -sf /usr/lib/hbase/lib/hbase-protocol.jar /usr/lib/impala/lib
@ismaild
ismaild / traceroute_obiwan.scrye.net
Created November 26, 2013 15:10
traceroute -m 200 obiwan.scrye.net
traceroute -m 200 obiwan.scrye.net
traceroute to obiwan.scrye.net (204.244.252.35), 200 hops max, 52 byte packets
1 192.168.16.20 (192.168.16.20) 7.534 ms 4.420 ms 2.951 ms
2 41.161.72.225 (41.161.72.225) 6.101 ms 5.317 ms 5.075 ms
3 41.160.24.13 (41.160.24.13) 7.364 ms 9.033 ms 8.662 ms
4 * * *
5 41.160.0.243 (41.160.0.243) 10.521 ms 8.304 ms 8.235 ms
6 41.160.0.242 (41.160.0.242) 10.024 ms 9.046 ms 13.001 ms
7 ix-0-3-0-0.tcore1.jso-johannesburg.as6453.net (216.6.55.37) 53.576 ms 9.311 ms 9.040 ms
8 if-4-2.tcore1.klt-capetown.as6453.net (41.206.178.2) 183.272 ms 183.199 ms 180.528 ms
@ismaild
ismaild / replace.sh
Created October 30, 2013 10:01
Replace all occurrences of a a string from all files in a directory
ruby -pi.bak -e 'gsub(/"SOME_TEXT"\./, "REPLACE_TEXT")' *.sql
@ismaild
ismaild / sublime_projects.py
Created October 14, 2013 10:26
Create sublime projects from a root directory with all your code
'''
Create sublime projects from a root directory with all your code
Sublime projects are just JSON files, describing the project
'''
import os
SUBLIME_PROJECT_DIR = 'sublime_projects'
SUBLIME_PROJECT_EXT = '.sublime-project'
@ismaild
ismaild / .bash_profile
Created September 11, 2013 09:44
git config
source ~/.git-completion.bash
@ismaild
ismaild / github_error.txt
Created September 3, 2013 12:38
stange error trying to push to github
GIT_CURL_VERBOSE=1 GIT_TRACE=1 git push origin source
trace: built-in: git 'push' 'origin' 'source'
trace: run_command: 'ssh' 'git@github.com' 'git-receive-pack '\''ismaild/ismaild.github.io.git'\'''
ERROR: Permission to ismaild/ismaild.github.io.git denied to codiez/codiez.github.io.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
------
@ismaild
ismaild / mysql_uninstall.txt
Last active March 13, 2017 14:54
uninstall mysql, Mac OSX
1. Backup any databases you have using mysqldump
2. Stop MySQL using the pref panel
3. Open Terminal and type in the following commands
4. sudo rm /usr/local/mysql
5. sudo rm -rf /usr/local/mysql*
6. sudo rm -rf /Library/StartupItems/MySQLCOM
7. sudo rm -rf /Library/PreferencePanes/My*
8. edit /etc/hostconfig and remove the line MYSQLCOM=-YES- (May not be necessary)
9. rm -rf ~/Library/PreferencePanes/My*
10. sudo rm -rf /Library/Receipts/mysql*
%ul.nav.pull-right
- actions(:root).each do |action|
%li= link_to wording_for(:menu, action), { :action => action.action_name, :controller => 'rails_admin/main' }, :class => 'pjax'
- if main_app_root_path = (main_app.root_path rescue false)
%li= link_to t('admin.home.name').capitalize, main_app_root_path
- if _current_user
- if user_link = edit_user_link
%li= user_link
- if logout_path.present?
%li= link_to content_tag('span', t('admin.misc.log_out'), :class => 'label label-important'), logout_path, :method => Devise.sign_out_via
@ismaild
ismaild / error_routing.txt
Last active December 14, 2015 21:49
Heroku compile assets error with unicorn, routing error with subdomain.
2013-03-17T20:35:04+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/v1/cities.json"):
2013-03-17T20:35:04+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2013-03-17T20:35:04+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2013-03-17T20:35:04+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/rack/logger.rb:32:in `call_app'
2013-03-17T20:35:04+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/rack/logger.rb:16:in `block in call'
2013-03-17T20:35:04+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/tagged_logging.rb:22:in `tagged'
2013-03-17T20:35:04+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/rack/logger.rb:16:in `call'
2013-03-17T20:35:04+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.9