Skip to content

Instantly share code, notes, and snippets.

View wayanjimmy's full-sized avatar
🏠
Working from home

Wayan jimmy wayanjimmy

🏠
Working from home
View GitHub Profile
@wayanjimmy
wayanjimmy / 📊 Weekly development breakdown
Last active October 29, 2020 13:40
Weekly development breakdown
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%
@wayanjimmy
wayanjimmy / keybase.md
Created July 18, 2019 05:09
keybase.md

Keybase proof

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:

@wayanjimmy
wayanjimmy / Vagrantfile
Created June 4, 2019 02:39
Vagrant File With Docker
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
@wayanjimmy
wayanjimmy / Vagrantfile
Created March 20, 2019 10:51
Debian Docker
# -*- 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
@wayanjimmy
wayanjimmy / cli-apps-dev.md
Last active February 4, 2024 11:23
I curate a list of interesting CLI tools, below are some command line tools that I personally love and use

I curate a list of interesting CLI tools, below are some command line tools that I personally love and use

  • tmux - Terminal multiplexer.
  • ripgrep - Search text for patterns fast.
  • fzf - Command-line fuzzy finder.
  • exa - Replacement for ls written in rust.
  • git - Version control.
  • create-react-app - Create React apps with no build configuration.
  • npx - Execute npm package binaries.
  • wifi-password - Get the password of the WiFi you're on.
@wayanjimmy
wayanjimmy / assignment01.js
Created February 21, 2019 14:25
Assignment #1 - Node Master Class
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) {
@wayanjimmy
wayanjimmy / assignment01.ts
Created February 21, 2019 14:22
Assignment #1
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}`
@wayanjimmy
wayanjimmy / HistoryPanel.js
Created February 21, 2019 04:01
HistoryPanel
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>
@wayanjimmy
wayanjimmy / MediaUploader.js
Created February 21, 2019 03:42
Media Uploader component
// @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';
@wayanjimmy
wayanjimmy / Dockerfile
Last active March 11, 2019 02:47
Laravel Docker Permission Error
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 \