Skip to content

Instantly share code, notes, and snippets.

View adisuryadi's full-sized avatar

Adi Luhung Suryadi adisuryadi

View GitHub Profile
@adisuryadi
adisuryadi / snapshot.vim
Created April 27, 2021 22:05
Personal Vim Plug snapshot
" Generated by vim-plug
" Wed Apr 28 05:03:46 2021
" :source this file in vim to restore the snapshot
" or execute: vim -S snapshot.vim
silent! let g:plugs['auto-pairs'].commit = '39f06b873a8449af8ff6a3eee716d3da14d63a76'
silent! let g:plugs['bufexplorer'].commit = '29258f58357acc10c672585a9efe8913d756734d'
silent! let g:plugs['coc.nvim'].commit = 'a336a8bc251702d9526a6818ae56e86d92fafc0c'
silent! let g:plugs['ctrlsf.vim'].commit = 'c90632e6a27bfd525a2a4c6e108981d4558202c0'
silent! let g:plugs['editorconfig-vim'].commit = '047c4b455b9d56adee63a52d6d7cdf5bb6521d53'
@adisuryadi
adisuryadi / how-to-flash-qicycle-ef1-to-english.md
Last active June 24, 2020 16:26
Mengubah QiCycle display dari Bahasa Cina ke Bahasa Inggris

Mengubah QiCycle display dari Bahasa Cina ke Bahasa Inggris

DO AT YOUR OWN RISK! YOU HAVE BEEN WARNED.

Display di QiCycle EF-1 versi china dapat diubah menjadi bahasa inggris, thanks to MiguelBi dari komunitas QiCycle Spanyol. Anda hanya membutuhkan sebuah clip (yang dapat diprint dengan printer 3D) dan Windows PC. Prinsip kerjanya adalah display firware bawaan diganti dengan firmware yang berbahasa inggris. Ini tidak ada hubungannya dengan firmware controller motor ataupun batre, jika sebelumnya Anda sudah flash firmware upgrade speed, perubahannya akan tetap tersimpan.

Harap ikuti semua step di playlist terutama backup, karena proses ini melibatkan penghapusann sementara serial rangka dan history di module.

@adisuryadi
adisuryadi / yl-api-reference.md
Created April 10, 2019 05:31 — forked from westdavidr/yl-api-reference.md
Young Living API reference
function moveCaretToStart(el) {
if (typeof el.selectionStart == "number") {
el.selectionStart = el.selectionEnd = 0;
} else if (typeof el.createTextRange != "undefined") {
el.focus();
var range = el.createTextRange();
range.collapse(true);
range.select();
}
}
'use strict';
import React, { PropTypes } from 'react';
import RestaurantStore from '../storage/RestaurantStore.js'
import ActionCreators from '../actions/ActionCreators.js'
function _getStoreState() {
return {
items: RestaurantStore.getRestaurants()
==> Pouring couchdb-1.6.1_2.yosemite.bottle.tar.gz
==> Caveats
To test CouchDB run:
curl http://127.0.0.1:5984/
The reply should look like:
{"couchdb":"Welcome","uuid":"....","version":"1.6.1","vendor":{"version":"1.6.1-1","name":"Homebrew"}}
To have launchd start couchdb at login:
ln -sfv /usr/local/opt/couchdb/*.plist ~/Library/LaunchAgents
==> Pouring mongodb-3.0.3.yosemite.bottle.tar.gz
==> Caveats
To reload mongodb after an upgrade:
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
mongod --config /usr/local/etc/mongod.conf
==> Summary
🍺 /usr/local/Cellar/mongodb/3.0.3: 17 files, 154M
@adisuryadi
adisuryadi / compile.sh
Last active November 28, 2021 00:16
Run ES6/ES2016/ES2017 in Coderunner (using babel)
#!/bin/bash
#
# This script will transplie our code using babel and evaluates it using node.js
#
# Steps:
# 1) Install babel globally:
# npm install -g babel-cli
# or
# yarn global add babel-cli
# 2) Create a new language in Coderunner preferences (eg. Javascript (Babel)).
@adisuryadi
adisuryadi / uninstall-gems.sh
Created December 27, 2014 03:39
Uninstall all ruby gems
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
@adisuryadi
adisuryadi / config.xml
Created July 28, 2013 23:46
Console2 with MinGW bash
<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="25" columns="80" buffer_rows="500" buffer_columns="0" shell="c:\msysgit\msysgit\msys.bat /bin/bash -l" init_dir="" start_hidden="0" save_size="0">
<colors>
<color id="0" r="0" g="0" b="0"/>
<color id="1" r="0" g="0" b="128"/>
<color id="2" r="0" g="150" b="0"/>
<color id="3" r="0" g="150" b="150"/>
<color id="4" r="170" g="25" b="25"/>
<color id="5" r="128" g="0" b="128"/>