I hereby claim:
- I am wayanjimmy on github.
- I am wayanjimmy (https://keybase.io/wayanjimmy) on keybase.
- I have a public key ASC4QQ6nsR8_Sh6_fPXK4Nvf_6mZHH_CDxnLkUIhl6OUiQo
To claim this, I am signing this object:
Go 19 hrs 59 mins ██████████████████▏░░ 86.7% | |
TypeScript 1 hr 19 mins █▏░░░░░░░░░░░░░░░░░░░ 5.7% | |
JSON 42 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.1% | |
JavaScript 28 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.0% | |
Vue.js 12 mins ▏░░░░░░░░░░░░░░░░░░░░ 0.9% |
I hereby claim:
To claim this, I am signing this object:
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.synced_folder "./", "/vagrant", owner: "www-data", group: "www-data", mount_options: ["dmode=775,fmode=666"] | |
config.vm.network "forwarded_port", guest: 8080, host: 8080, host_ip: "127.0.0.1" | |
config.vm.network "forwarded_port", guest: 8000, host: 8000, host_ip: "127.0.0.1" | |
config.vm.network "forwarded_port", guest: 9001, host: 9001, host_ip: "127.0.0.1" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "2048" | |
end |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
I curate a list of interesting CLI tools, below are some command line tools that I personally love and use
import http from 'http' | |
import url from 'url' | |
// config object | |
const config = { | |
httpPort: 8080 | |
} | |
// retrieve the third argument if user use custom port | |
if (process.argv.length > 2) { |
import { args } from 'deno' | |
import { parse } from 'https://deno.land/x/flags/mod.ts' | |
import { serve } from 'https://deno.land/x/http/server.ts' | |
enum ErrorCode { | |
NotFound = 400 | |
} | |
const { p: port = 8080 } = parse(args) | |
const address = `0.0.0.0:${port}` |
import React, {Component} from "react" | |
const dateTimeFormat = "DD/MM/YYYY h:mm:ss a" | |
function HistoryRows({histories}) { | |
return histories.map((data, index) => ( | |
<tr key={index}> | |
<td>{data.message}</td> | |
<td>{moment(data.createdAt).format(dateTimeFormat)}</td> | |
<td>{data.createdBy}</td> |
// @flow | |
import React from 'react'; | |
import DropzoneComponent from 'react-dropzone-component'; | |
import type {DropzoneState, DropzoneMedia} from 'react-dropzone-component'; | |
import 'react-dropzone-component/styles/filepicker.css'; | |
//$FlowFixMe | |
import 'dropzone/dist/min/dropzone.min.css'; | |
import type {Media} from '../types/media'; |
FROM php:7.3-fpm | |
RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libpq-dev libzip-dev git\ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ | |
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip bcmath exif | |
#Get Composer | |
RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \ |