This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rename -v ’s/\.htm$/\.html/’ *.htm | |
Batch rename all files in directory (dari .htm ke .html) | |
sudo sed -i 's/http:\/\/id./http:\/\//g' /etc/apt/sources.list | |
Ganti repo source dari server id ke server main | |
cp -avu /arsip_sumber /arsip_tujuan | |
Kopi sebuah folder dan isinya ke folder tujuan hanya yg terbaru sambil lihat progress | |
rm -r /arsip_yg_mau_dihapus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALL Docker | |
sudo apt install docker.io | |
service docker start | |
docker run hello-world | |
PULL IMAGES | |
Browsing google atau hub.docker.com | |
docker pull nama_image | |
SHOW CONTAINERS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Upload project | |
Di web github, login dan create repository baru sesuai nama aplikasi | |
Di komputer | |
cd /var/www/html/aplikasi/ | |
git init | |
git remote add origin https://github.com/rikyperdana/aplikasi.git | |
git remote -v | |
git add . | |
git commit -m 'Upload pertama' | |
git push -u origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALL TRANSFER.SH | |
nano ~/.bashrc | |
tambahkan coding ini | |
transfer() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi | |
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; } | |
source ~/.bashrc | |
UPLOAD KE TRANSFER.SH | |
transfer ./nama_file.eks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Any plugin we create has to be in it's own folder ~/.meteor-kitcen/plugins/plugin_name | |
# And has to contain plugin.js and plugin.json | |
# Content of plugin.js | |
var kitchen = require('meteor-kitchen'); | |
var component = kitchen.getInput(); | |
var prop1 = component.properties.prop1; | |
var prop2 = component.properties.prop2; | |
if (prop1 === undefined) {var prop1 = value1;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install openjdk | |
sudo apt-get install openjdk-7-jdk lib32stdc++6 lib32z1 | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
tar -xvf android-sdk_r24.2-linux.tgz | |
# install all sdk packages | |
cd android-sdk-linux/tools | |
./android update sdk --no-ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/.meteor-kitchen/plugins/leaflet | |
then create plugin.js and plugin.json and copy the codes below | |
after that, you can use recipe.yaml below to create your sample app | |
FOR PLUGIN.JS | |
var kitchen = require('meteor-kitchen'); | |
var component = kitchen.getInput(); | |
var zoom = component.properties.zoom; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prepare android-sdk-linux-cli with https://gist.github.com/rikyperdana/61b1a5008b757da35a745185bfed7374 | |
# Update your android sdk to the latest on android-sdk-linux/tools with | |
# android list sdk --all | |
# android update sdk -u -a -t <package num> | |
# Copy this meteorandroid.sh to your project folder, and then chmod +x meteorandroid.sh | |
# We will use 2 params, app_name and server_address | |
# Example, meteorandroid.sh sample http://localhost:3000 | |
meteor add-platform android | |
meteor build ../apk_$1 --server=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do it in bash | |
meteor create --bare rest; cd rest; meteor npm install; meteor | |
meteor add coffeescript nimble:restivus | |
# Write these in both.coffee | |
@Items = new Mongo.Collection 'items' | |
# Write these in server.coffee | |
if Meteor.isServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put these lines on ~/.nanorc | |
bind ^i up main | |
bind ^j left main | |
bind ^k down main | |
bind ^l right main | |
bind ^s writeout main | |
bind ^x cut main | |
bind ^v uncut main | |
bind ^z undo main | |
bind ^y redo main |
OlderNewer