Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nmfzone/tutorial-list

Merupakan tutorial-tutorial yang pernah saya gunakan
https://github.com/nmfzone/tutorial-list

Last synced: 7 days ago
JSON representation

Merupakan tutorial-tutorial yang pernah saya gunakan

Awesome Lists containing this project

README

        

# tutorial-list
Merupakan tutorial-tutorial yang pernah saya gunakan

```
Cara Menulis di GitHub :
- https://help.github.com/articles/markdown-basics/
- https://github.com/jadejs/jade/blob/gh-pages/src/pages/tutorial.jade
Cara Remote Github dengan Command Line :
- git init
- git add answer atau git add * //disini answer merupakan folder yg ingin di upload atau untuk add semuanya
- git commit -m "First Commit" //Ini untuk commit file ke repo lokal
- git remote add origin [email protected]:username/projectname.git //project yg akan di remote
- git push -u origin master //ini untuk submit repo lokal ke repo online github

Apabila ada file di repo github yg tidak ada di repo lokal :
- git pull https://github.com/nmfzone/yourproject.git
- atau git pull origin master

Merubah/Menambah repo github :
- git remote set-url origin [email protected]:username/projectname.git

Menghapus remote repo github :
- git remote rm origin
```

# Website Penting
```
#####
```

# Tutorial ElementaryOS
#### Things to do after Installing Elementary OS :
```
http://itsfoss.com/things-todo-elementary-os-freya/

- Download exstra plugin to play .mp3/.mp4
$ sudo apt-get install ubuntu-restricted-extras

- Install NginX and MySQL
$ sudo apt-get install nginx
$ sudo apt-get install mysql-server mysql-client

- Install PHP, NodeJs, Git, Composer
PHP & Nginx :
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get install php7.1 php7.1-fpm php7.1-curl php7.1-mysql php7.1-common php7.1-mbstring php7.1-mcrypt php7.1-xml

Node Js :
Install NVM first : https://github.com/creationix/nvm
then
$ nvm ls-remote (check available nodejs version)
$ nvm install 6.9.2 (example install version 6.9.2)
$ nvm alias default 6.9.2

Composer :
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/bin/composer

Git :
$ sudo apt-get install git

- Install Python and Pip
$ sudo add-apt-repository ppa:fkrull/deadsnakes
$ sudo apt-get install python3.3
$ sudo apt-get install python3.4
$ sudo apt-get install python-pip

- Customize Terminal
- Enable 256 color xterm :
$ sudo apt-get install ncurses-term
$ vim ~/.bashrc OR $ vim ~/.zshrc
add export TERM="xterm-256color"

- Install Java
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get install oracle-java8-installer
$ sudo apt-get install oracle-java8-set-default

- Install Download Manager (Like IDM in Windows) :
$ sudo add-apt-repository ppa:noobslab/apps
$ sudo apt-get update
$ sudo apt-get install xdman

if using firefox, you need to run this (before this, run xdman first with $ sudo xdman) :
http://localhost:9614/xdmff.xpi
```
#### Shortcut Keys
```
Ctrl + T - Open a new tab in Files
Ctrl + Alt + T – Starts terminal
Alt + Tab - Switch between apps that are opened
Superkay + A – Show all windows on every desktop
Superkey + W – Show all windows on the current desktop
Superkey + Tab – Switch between desktops (in order they are used)
Superkey + directional arrows – Switch between desktops
Superkey + 1,2,3,4,5 … – Switch between desktops

Ctrl + Super (fn/windows) + left/right - Make app to left / right side
(http://askubuntu.com/questions/179136/how-do-i-put-two-windows-side-by-side-12-04)

Ctrl + Alt + Shift + left/right - Move app to another workspace
(http://askubuntu.com/questions/100773/how-do-i-move-applications-from-one-workspace-to-another)
```

# Tutorial UBUNTU
```
http://www.unixmen.com/install-lemp-server-nginx-mysql-mariadb-php-phpmyadmin-ubuntu-14-1014-0413-10/

http://blog.andzhar.com/2014/11/12/125234/hhvm-nginx-di-ubuntu-server-14-04/

http://blog.andzhar.com/2014/12/11/152615/instalasi-composer-di-hhvm/

http://culttt.com/2013/06/17/setting-up-vagrant-with-laravel-4/

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3
```

#### Setting Environment di Ubuntu :
```
- Jika dalam keadaan biasa (belum login), maka lokasi environment berada di /home/NAMA_USER/ , maka
untuk menambahkan environment yaitu dengan menambahkan perintah export
di .profile (/home/NAMA_USER/.profile) :

export PATH=$HOME/.composer/vendor/bin:$PATH

kemudian jalankan perintah ". ~/.profile" (tanpa tanda petik)
kemudian cek dengan perintah "echo $PATH", kalau sudah muncul berarti berhasil :)

- Namun jika dalam keadaan sudah login (sudo su), maka lokasi environment yaitu berada di
/etc/environment , maka untuk menambahkan environment tinggal tambahkan saja di dalam PATH
yang ada disitu. Khusus untuk JAVA (maybe), berikan tambahkan line khusus dibawah PATH yaitu
JAVA_HOME..kemudian berikan value di belakangnya :

PATH="bla bla bla"
JAVA_HOME="JAVA_PATH" (ganti JAVA path dengan lokasi JAVA misalnya /usr/lib/jvm/java-8-openjdk-amd64

kemudian agar supaya bisa berjalan secara langsung, refresh environment dengan perintah
"source /etc/environment" (lagi-lagi tanpa tanda petik)
```
#### Install Oh-My-Zsh on ubuntu 14.04 :
```
- First of all, download zsh first with command "sudo apt-get install zsh"
- Then "sudo apt-get install git", because it need download source from github
- Then see https://github.com/robbyrussell/oh-my-zsh to Install (just the install)
- And then run command "chsh -s `which zsh`"
- Ok, now your Zsh is done, just need to change the theme, maybe to "agnoster" in "~/.zshrc"
- If you getting font error, try
cd ~/.oh-my-zsh/themes/
git checkout d6a36b1 agnoster.zsh-theme
Or try installing the fonts (All font in >>, just try https://github.com/nmfzone/fonts)
```
#### How to Add New Webserver in NginX
```
$ sudo mkdir -p /var/www/example.com/html
$ sudo chown -R $USER:$USER /var/www/example.com/html
$ sudo chmod -R 755 /var/www
$ sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/example.com
$ sudo nano /etc/nginx/sites-available/example.com
$ sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/
$ sudo nano /etc/hosts (add new domain)
```
#### CHEATS SHEET *UNIX
```
- tar -xvzf nama_file.tgz => Extract .tgz
- sudo su => Masuk sebagai root (tapi sebaiknya jangan, lebih baik setiap jalankan command tambahkan sudo)
- ls -la => Melihat ini List directory
- chmod -R 777 nama_folder / chmod 777 nama_file => Merubah hak akses file
- ln -s nama_folder_asal nama_folder_tujuan => Membuat symbolink Link
- curl -sSL alamat => Mendownload file menggunakan cURL
- wget => Mendownload file menggunakan wget
```
#### Install Slack Client in Ubuntu
```
$ sudo apt-add-repository -y ppa:rael-gc/scudcloud
$ sudo apt-get update
$ sudo apt-get install scudcloud
```
#### SettingUp Swap in Ubuntu 14.04 that have been Installed
```
$ sudo fallocate -l 4G /swapfile
$ sudo chmod 600 /swapfile
$ sudo mkswap /swapfile
$ sudo swapon /swapfile
$ sudo vim /etc/fstab
/swapfile none swap sw 0 0 // Add this at the end of line
$ sudo swapon -s // check
$ free -m // check
```
#### Change Disk UUID
```
$ sudo apt install uuid
$ uuid
$ sudo tune2fs /dev/{device} -U {uuid} // Change to the appropriate value
```
#### Install Vagrant di Ubuntu :
```
>>>>> https://scotch.io/tutorials/getting-started-with-laravel-homestead
- Buat sebuah folder terserah, misalnya dengan nama Project (mkdir Project)
di directory /var/www/html
- Kemudian berpindah ke direktory tersebut (cd Project)
- Kemudian download vagrant dengan menggunakan perintah :
vagrant box add laravel/homestead
- Selagi menunggu download selesai, kita beralih misal ke terminal yang lain. Masih di directory
yang sama seperti tadi. Ketikkan perintah :
git clone [email protected]:laravel/homestead.git Homestead
- Kemudian, setelah selesai mendownload, ketikkan perintah :
homestead init
ssh-keygen -t rsa -C "[email protected]"
- Setelah itu beralihlah (defaultnya) ke ~/.homestead kemudian buka Homestead.yaml. Kemudian
atur authorize, keys, folders dan sites.
- Kemudian beralih ke direktori awal yaitu direktori project anda tadi
(cd /var/www/html/Project) kemudian ketikkan perintah :
vagrant init
- Setelah itu buka Vagrantfile (vim Vagrantfile), setelah itu rubah :
dari >> config.vm.box = "base";
menjadi >> config.vm.box = "laravel/homestead";
- Done, terakhir tinggal menghidupkan vagrant yaitu dengan perintah :
vagrant up
```

# Tutorial Setup VPS
```
##### Merubah timezone di Ubuntu VPS 14.04
sudo timedatectl set-timezone America/New_York
```

## NginX Settings

#### Laravel :
```
location / {
try_files $uri $uri/ /index.php?$query_string;
}
```

#### Codeigniter :
```
location / {
try_files $uri $uri/ @ci_index;
}

location @ci_index{
rewrite ^(.*) /index.php?$1 last;
}
```

# Tutorial Android
#### ANDROID STUDIO
```
- Error (android.support.v7.internal.widget.actionBarOverlay)
http://stackoverflow.com/questions/29195195/android-studio-rendering-problems-classes-could-not-be-found
```
##### Troubleshooting AndroidStudio Errors
###### AVD Manager
```
- error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
$ sudo apt-get install lib32stdc++6
```
#### Install GoogleApps di GenyMotions
```
http://stackoverflow.com/questions/20121883/how-to-install-google-play-services-in-a-genymotion-vm-with-no-drag-and-drop-su
```

# Tutorial Polymer
```
http://webkayq.blogspot.com/2014/07/cara-mudah-menginstall-nodejs-dan-bower.html
http://webkayq.blogspot.com/2014/07/cara-mudah-untuk-menginstall-polymer.html
https://www.polymer-project.org/0.5/docs/start/tutorial/intro.html
```

# Tutorial Website
```
http://www.youtube.com/attribution_link?a=WkXjCu-8U6w&u=%2Fwatch%3Fv%3DobrHov9XfRk%26feature%3Dshare
```
### Laravel
##### Troubleshooting Laravel ERROR
```
- [PDOException] SQLSTATE[HY000] [2002] No such file or directory
http://johnshipp.com/php-artisan-migrate-laravel-5-pdoexception-sqlstatehy000-2002-no-such-file-or-directory-on-a-mac-using-mamp/

- No supported encrypter found. The cipher or key length are invalid
https://www.devside.net/wamp-server/laravel-no-supported-encrypter-found-the-cipher-or-key-length-are-invalid
```
### Ruby on Rails
```
https://gorails.com/setup/ubuntu/14.04

First of All, install the dependencies first :
$ sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev
libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev
libcurl4-openssl-dev python-software-properties libffi-dev

- Install RVM (you must Install cURL first) :
$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
$ \curl -L https://get.rvm.io | bash -s stable
$ cd ~/.rvm/archieve
$ tar -xvzf your_rvm_version.tgz
$ cd your_rvm_version
$ ./install
$ source ~/.rvm/scripts/rvm
$ rvm requirements
- Add to your terminal (~/.bashrc or ~/.zshrc or ~/.bash_profile)
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
- Install Ruby
Using rbenv :
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash

rbenv install 2.2.2
rbenv global 2.2.2
ruby -v

Another Way :
$ rvm install ruby or $ rvm install 2.2.2
$ rvm use ruby --default (maybe will not work, you may use another way)
$ rvm list (see your ruby version that have been installed)
$ rvm alias create default ruby-2.2.2 (use ruby version 2.2.2 for default)
- Install Gems
$ rvm rubygems current

If you're using ElementaryOS or maybe Ubuntu 14.04, by default you'll have gems installed :
Update first
$ gem install rubygems-update
$ sudo update_rubygems
- Install Rails
$ gem install rails or $ gem install rails -v 4.2.1 (to install specific version)

- Creating new Apps :
Using MySql :
$ rails new myapp -d mysql
$ subl config/database.yml (edit database credentials)
$ rake db:create
$ rails server
Using PostgreeSql :
$ rails new myapp -d postgresql
$ subl config/database.yml (edit database credentials)
$ rake db:create
$ rails server
```
### JavaScript
#### NodeJs
```
- Install NodeJS
$ sudo apt-get install python-software-properties
$ sudo apt-add-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs
- Install MongoDB (mongoose) untuk NodeJs :
$ sudo npm install mongoose

Lets start making a simple Apps by using NodeJS :
http://tecadmin.net/setup-nodejs-with-mongodb-on-ubuntu/
http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/
```
#### AngularJs
```
c
```
#### EXTJs
```
http://rizkylab.com/membuat-crud-dengan-ext-js-4/
```
### Database
#### MySQL
##### How to Install
```
$ sudo apt-get install mysql-server mysql-client
```
##### How to Allow DROP DATABASE
```
Add this line in /etc/phpmyadmin/config.inc.php :
$cfg['AllowUserDropDatabase'] = TRUE;
```

#### MongoDB
##### How to Install MongoDB on Ubuntu
```
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
$ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
$ sudo apt-get update
$ sudo apt-get install mongodb-org mongodb-org-server
```
##### MongoDB using NodeJs
```
http://mongoosejs.com/docs/guide.html
```
#### Postgree SQL
##### Install PostgreeSQL on Ubuntu
```
$ sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
$ wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install postgresql-common postgresql-9.3 libpq-dev

Untuk setup username dan Password :
$ sudo -u postgres createuser your_username -s
$ sudo -u postgres psql
$ postgres=# \password your_username

Untuk exit dari postgres=#, tekan CTRL+D atau \q kemudian enter

```
##### Setting Up PGAdmin III (Like PHPMyAdmin on mysql)
```
$ sudo apt-get install pgadmin3

- Open PGAdmin3
- File -> Add Server
- Name : up_to_you
Host : localhost
Username : your_username
Password : your_username_password

```
##### PostgreeSQL Query / Snippets Command
```
- Add new Database :
$ sudo -u postgres createdb -O your_username new_database
```
### Next?
```
d
```

# Programming
### Java
##### How to Install
```
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get install oracle-java8-installer
$ sudo apt-get install oracle-java8-set-default
```
##### How to Use
```
- Create a file in somewhere, e.g. in Home (~) directory, with the exstension .java
- Create a file named e.g. Hello.java, then write some code (yeaay) in those file
REMEMBER!! Class name and file name must use the same name :)))
- Now, we need to Compile it. Before that, go to the dir. where you've been save the file.
$ cd ~ // e.g. I've been save the file in Home (~) directory
$ javac Hello.java // If success, it will produce nothing
- In the last, we need to run the program by using this command :
$ java Hello
```
### Python
##### How to Install
```
Very very simple to Install Python, just follow instruction in this links :
https://github.com/yyuu/pyenv

--- OR ---

You can also use this instruction :
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:fkrull/deadsnakes
$ sudo apt-get update
$ sudo apt-get install python3.4 // OR you can choose specific version
```
##### How to Use
```
- Create a file in somewhere, e.g. in Home (~) directory, with the exstension .py
- Create a file named e.g. Coba.py, then write some code (yeaay) in those file
REMEMBER!! Python2 and Python3 have a different syntaks
- Now, let's run the program by using this command :
$ python3 Coba.py // OR you can choose python version that you'll use
```
### Pascal
```
```
### MATLAB / Octave
```
# Terminal Command :
- Installing Octave on ubuntu :
$ sudo add-apt-repository ppa:octave/stable
$ sudo apt-get update
$ sudo apt install octave

- Force Octave to open using GUI :
$ octave --force-gui

# Basic Command Windows :
- clc => clear the console
- clear => delete the variable value
- hold on => make all plots show in one figure
- delete(plot) => unplot the selected plot
- clf => clear the figure
- ctrl + c => break the process

# Basic Operation :
- 1:100 => 1 until 100 increments by 1
- 1:0.2:100 => 1 until 100 increments by 0.2
```

# Tutorial Webdeveloper Tools
### Git
##### Upgrade Git Version
```
$ git clone git://git.kernel.org/pub/scm/git/git.git
$ tar -zxf git-2.0.0.tar.gz
$ cd git-2.0.0
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info
```

### Gulp
```
- To stop gulp watch : CTRL+C (because watch is neverending proccess)
- Fix gulp watch error (ENOSPC) :
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
```

# Tutorial WINDOWS
```
Menghilangkan dan atau menambah context menu (saat klik kanan) :
http://www.howtogeek.com/howto/windows-vista/add-any-application-to-the-desktop-right-click-menu-in-vista/
http://www.howtogeek.com/howto/windows-vista/how-to-clean-up-your-messy-windows-context-menu/
http://www.thewindowsclub.com/remove-click-context-menu-items-editors
```

# Fonts
####Woff to Ttf
```
https://andrewsun.com/services/woffer-convert-woff-fonts/
```

#Others
```
Share Localhost dengan ngrok : http://rizkylab.com/share-localhost-ke-public-menggunakan-ngrok/
```