Skip to content

Instantly share code, notes, and snippets.

View suryakencana007's full-sized avatar
🛴
Never End Learning

Nanang Suryadi suryakencana007

🛴
Never End Learning
View GitHub Profile
https://flightaware.com/live/airport/WIII
// Password Hide
https://codepen.io/jjmartucci/pen/mVjzZP
// git flow
https://blogs.endjin.com/2013/04/a-step-by-step-guide-to-using-gitflow-with-teamcity-part-3-gitflow-commands/
// !! Penting Check rst format file readme sebelum upload pypi
pip install docutils Pygments
python setup.py check --restructuredtext --strict
@suryakencana007
suryakencana007 / docker.inc.run.ini
Created January 26, 2018 04:37
How to build your docker image swarm
docker build -t localhost:5000/xfe-desktop:24011802 .
docker push localhost:5000/xfe-desktop:24011802
docker service upadate --image localhost:5000/xfe-desktop:24011802 xfe-desktop
@suryakencana007
suryakencana007 / Reactnative.ini
Last active March 2, 2018 19:41
React Native CLi BUG
latest React-Native Cli fallow below Command in mac terminal run on android device
step1: If not than (in project directory) mkdir android/app/src/main/assets
step2: react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
step3: react-native run-android
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
How to fix “Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]”
It happened to me a few days ago. The problem was caused by using different versions of Android SDK build tool to build Xamarin.Android apps (at home I’m using v24.0.1 while at the office I’m using v23.0.3). It can be fixed by uninstalling the app manually (if it shows in application list) or re-building the app with the last Android SDK build tool you used then uninstall it manually (as the app is uninstall
@suryakencana007
suryakencana007 / git-pull-all
Created February 1, 2018 07:06 — forked from grimzy/git-pull-all
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@suryakencana007
suryakencana007 / .eslintrc
Last active February 14, 2018 08:17
eslint for react js
{
"extends": [
"plugin:react/recommended",
"plugin:jest/recommended"
],
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"node": true,
@suryakencana007
suryakencana007 / curl.md
Created February 17, 2018 23:45 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@suryakencana007
suryakencana007 / web-2.0.ini
Last active February 19, 2018 21:11
New ERA HTTP SERVER
// free SSL HTTPS
https://letsencrypt.org/
https://h2o.examp1e.net/
https://github.com/h2o/h2o/wiki/Listening-to-both-HTTP-and-HTTPS
https://github.com/h2o/h2o/wiki/GitLab-%28reverse-proxy%29-with-HTTPS
https://github.com/h2o/h2o/wiki/Reverse-Proxy
https://github.com/jonashaag/bjoern
@suryakencana007
suryakencana007 / android_instructions.md
Created March 2, 2018 09:00 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

git checkout -- config/environment.json.dist
git checkout -- src/config.js
git branch
config/environment.json.dist
nano src/config.js
git pull origin develop
docker service ls
docker build -t localhost:5000/xfe-desktop:20031801 .
docker push localhost:5000/xfe-desktop:20031801
docker service update --image localhost:5000/xfe-desktop:20031801 xfe-desktop

First init

from your local machine SSH access to github must be enabled on this host

  git clone [email protected]:heroku/ruby-rails-sample.git