Skip to content

Instantly share code, notes, and snippets.

View kostysh's full-sized avatar

Kostiantyn Smyrnov kostysh

View GitHub Profile
@kostysh
kostysh / gist:f3e2b798000c37a6f78c
Created May 19, 2015 21:03
Android device config for debug
Dial this: *#*#2846579#*#*
Service menu will appear.
Go to "ProjectMenu" -> "Background Setting" -> "Log Setting"
Open "Log switch" and set it to ON.
Open "Log level setting" and set the log level you wish.
sudo chown -R $(whoami) ~/.npm
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@kostysh
kostysh / gist:3fc46e010e07d1ec1a63
Created August 20, 2014 01:46
Environment for OpenShift development on Ubuntu
# Install Git
# https://gist.github.com/kostysh/1f6f56660ce08e0d4c69
# Install Ruby
sudo apt-get install ruby
# Install OpenShift gem
sudo gem install rhc
# Setup for OpenShift client
@kostysh
kostysh / gist:1f6f56660ce08e0d4c69
Created August 20, 2014 01:33
Install Git on Ubuntu
sudo apt-get install git
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
@kostysh
kostysh / gist:ea088becdbb0334f6f92
Created August 20, 2014 01:31
Sencha CMD environment for Cordova (Android) builds on Ubuntu
# Install Java:
# https://gist.github.com/kostysh/f46fe6ddf808a53d6a53
# Download and install Sencha CMD into /home/[user]/bin
# http://www.sencha.com/products/sencha-cmd/download/
# Get the Android SDK
# http://developer.android.com/sdk/index.html#download
# Unzip sdk into folder /home/[user]/bin/android-sdk-linux_x86
@kostysh
kostysh / gist:6fae05edd04f1302a76d
Created August 19, 2014 23:50
Ubuntu config for Dropbox ability to sync many-many files
sudo gedit /etc/sysctl.conf
# add at the end of file line:
fs.inotify.max_user_watches=1000000
# and when
sudo sysctl -p
@kostysh
kostysh / gist:c180413a1ae748751b63
Created August 14, 2014 14:36
Add some useful Cordova plugins
cordova plugin add org.apache.cordova.battery-status &
cordova plugin add org.apache.cordova.camera &
cordova plugin add org.apache.cordova.console &
cordova plugin add org.apache.cordova.contacts &
cordova plugin add org.apache.cordova.device &
cordova plugin add org.apache.cordova.device-motion &
cordova plugin add org.apache.cordova.dialogs &
cordova plugin add org.apache.cordova.file &
cordova plugin add org.apache.cordova.file-transfer &
cordova plugin add org.apache.cordova.geolocation &
@kostysh
kostysh / gist:e4e54c57001015fd11a3
Created August 12, 2014 01:28
Install Cordova cli on Ubuntu
sudo add-apt-repository ppa:cordova-ubuntu/ppa
sudo apt-get update
sudo apt-get install cordova-cli
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
#sudo update-java-alternatives -s java-7-oracle
sudo apt-get install oracle-java8-set-default