Skip to content

Instantly share code, notes, and snippets.

View taufikherjanto's full-sized avatar

Taufik Herjanto taufikherjanto

View GitHub Profile

Tutorial: Meteor in Windows using Vagrant

These days some people were discussing at meteor-talk group about running Meteor at Windows and I’ve recommended them using Vagrant. It’s a very developer-friendly piece of software that creates a virtual machine (VM) which let you run any operating system wanted and connect to it without big efforts of configuration (just make the initial installation and you have it working).

Many packages (I've tested) for running Meteor+Vagrant fails because Meteor writes its mongodb file and also other files inside local build folder into a shared folder between the Windows host and the Linux guest, and it simply does not work. So I've put my brain to work and found a solution: do symlinks inside the VM (but do not use ln. Use mount so git can follow it). It’s covered on steps 8 to 15.

If you have no idea what I’m talking about, I’ve made a tutorial to install Ubuntu Precise x86 through Windows command-line with Meteor very simple to follow

user www-data;
# As a thumb rule: One per CPU. If you are serving a large amount
# of static files, which requires blocking disk reads, you may want
# to increase this from the number of cpu_cores available on your
# system.
#
# The maximum number of connections for Nginx is calculated by:
# max_clients = worker_processes * worker_connections
worker_processes 1;
server {
listen 80 default; ## listen for ipv4; this line is default and implied
listen [::]:80 default ipv6only=on; ## listen for ipv6
# Make site accessible from http://localhost/
server_name localhost;
server_name_in_redirect off;
charset utf-8;

Keybase proof

I hereby claim:

  • I am taufikherjanto on github.
  • I am taufikherjanto (https://keybase.io/taufikherjanto) on keybase.
  • I have a public key whose fingerprint is 92C7 FC7B 1C9F 884E 0342 7034 5780 71C7 8557 8FA0

To claim this, I am signing this object:

<?php
interface Hitung {
public function calculate();
}
class Jumlah implements Hitung
{
private $a;
private $b;
<?php
interface Segitiga {
public function calculate();
}
class Keliling implements Segitiga
{
private $a;
private $b;
Your Telegram History
03.10.2016 17:00:15, Nur Rahmat Taufik(you): undefined
03.10.2016 17:16:40, Muhammad Surya: selamat datang semuanya 😊
03.10.2016 17:30:04, Muhammad: undefined
03.10.2016 17:30:10, Muhammad: Tes
03.10.2016 17:30:30, Muhammad Surya: Makin rame
03.10.2016 17:30:41, Muhammad Surya: tersisa 10 quota lagi :D
03.10.2016 17:30:50, Muhammad Surya: 5 dari luar 5 dari komunitas
03.10.2016 17:31:03, Muhammad: Seeeppp👍
@taufikherjanto
taufikherjanto / cte_of_wbsproject.sql
Last active March 15, 2021 08:47
CTE Tree Path WBS
WITH wbsproject(id, NAME, parentid, level, treepath) AS (
SELECT id,
NAME,
parentid,
0 AS LEVEL,
Cast(NAME AS VARCHAR(1024)) AS treepath
FROM port_project
WHERE parentid = 0
UNION ALL -- and now for the recursive part
SELECT d.id,
-- Using the REPLICATE function to indent with a '. ' for each level
WITH WBSProject(Id, name, Parentid, Level, TreePath) AS (
SELECT
id as Id,
name,
parentid,
0 as Level,
cast(name as varchar(1024)) as TreePath
FROM port_project
WHERE parentid = 0