Skip to content

Instantly share code, notes, and snippets.

View arifikhsan's full-sized avatar
🏡
Cool and Focusing

Arif Ikhsanudin arifikhsan

🏡
Cool and Focusing
View GitHub Profile
@arifikhsan
arifikhsan / ahoy_base.rb
Created April 12, 2019 03:00 — forked from jabbett/ahoy_base.rb
Setting up Ahoy models to use a separate datastore
module Ahoy
class AhoyBase < ActiveRecord::Base
establish_connection DB_STATS
self.abstract_class = true
end
end
@arifikhsan
arifikhsan / app.css
Created February 15, 2019 15:28 — forked from oliverbth05/app.css
Vuetify Responsive Toolbar with Navigation Drawer
#drawer{
background: rgba(240, 240, 240, 1);
}
@arifikhsan
arifikhsan / eb-cli-ubuntu-16-04
Last active November 15, 2018 14:42 — forked from navid-taheri/eb-cli-ubuntu-16-04
How to install eb cli (awsebcli) on Ubuntu 16.04
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install python3-setuptools
sudo easy_install3 pip
pip -V
#pip 9.0.1 from /usr/local/lib/python3.5/dist-packages/pip-9.0.1-py3.5.egg (python 3.5)
sudo chown -R username:username ~/.local/
@arifikhsan
arifikhsan / vim-heroku.sh
Created November 10, 2018 01:04 — forked from dvdbng/vim-heroku.sh
Run vim in heroku updated 2017
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim
# Compiled on Jul 20 2017
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
@arifikhsan
arifikhsan / Connectivity.java
Created November 1, 2018 07:28 — forked from emil2k/Connectivity.java
Android utility class for checking device's network connectivity and speed.
/*
* Copyright (c) 2017 Emil Davtyan
*
* 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 the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions: