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 / .neutrinorc.js
Created March 27, 2018 09:06
Neutrino react 15.3.2
const { merge } = require('@neutrinojs/compile-loader');
const { ProvidePlugin } = require('webpack');
const env = require('@neutrinojs/env');
module.exports = {
use: [
[
'@neutrinojs/react',
{
html: {
@wayanjimmy
wayanjimmy / Fetch.js
Created March 17, 2018 12:18
Fetch as a component
import React from 'react'
import PropTypes from 'prop-types'
import { request } from '../api'
class Fetch extends React.Component {
static propTypes = {
url: PropTypes.string.isRequired,
render: PropTypes.func.isRequired,
loader: PropTypes.element,
@wayanjimmy
wayanjimmy / .some-neutrino-config.js
Created February 21, 2018 06:08
Some neutrino config
const { ProvidePlugin } = require('webpack');
const path = require('path');
module.exports = {
use: [
[
'@neutrinojs/react',
{
html: {
title: 'sherly-married'
@wayanjimmy
wayanjimmy / docker-compose.yml
Created February 18, 2018 12:56
Rails docker compose
version: '3'
services:
db:
image: postgres
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/app
ports:
@wayanjimmy
wayanjimmy / Dockerfile
Created February 17, 2018 15:22
Dockerfile rails dev
FROM ruby:2.5.0-alpine
RUN apk update && apk add nodejs build-base libxml2-dev libxslt-dev postgresql postgresql-dev
RUN mkdir /app
WORKDIR /app
COPY Gemfile ./Gemfile
COPY Gemfile.lock ./Gemfile.lock
RUN bundle install -j 20
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Your SSID Here"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="YourPresharedKeyHere"

Keybase proof

I hereby claim:

  • I am wayanjimmy on github.
  • I am wayanjimmy (https://keybase.io/wayanjimmy) on keybase.
  • I have a public key ASDx_T8HYMbbISEOLAb7ZzWRYpp30e3tMkhW4cH_-8o0mAo

To claim this, I am signing this object:

@wayanjimmy
wayanjimmy / composer.json
Created September 16, 2017 04:33
Contoh load baligram package
{
"name": "jimboy/testbaligram",
"authors": [
{
"name": "Wayan Jimmy",
"email": "jimmyeatcrab@gmail.com"
}
],
"repositories": [
{
@wayanjimmy
wayanjimmy / gallery.js
Created June 24, 2017 10:52
Ionic file upload gallery
@wayanjimmy
wayanjimmy / install_php71.sh
Last active October 2, 2019 14:28
Install php7.1 ubuntu 16.04 EC2
sudo apt-get update -y
sudo apt-get install -y nginx
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update -y
sudo apt-get install -y php7.1 php7.1-fpm php7.1-cli php7.1-common php7.1-mbstring php7.1-gd php7.1-intl php7.1-xml php7.1-mysql php7.1-mcrypt php7.1-zip
sudo apt-get install php-curl