Skip to content

Instantly share code, notes, and snippets.

View frullah's full-sized avatar
🎯
Focusing

Fajarullah frullah

🎯
Focusing
View GitHub Profile
@frullah
frullah / web-design-inspirations.txt
Last active September 4, 2020 13:13
web design inspirations
https://www.mint.com/
https://www.mobify.com/
https://alpha-creative.vuetifyjs.com
http://www.templatemonsterpreview.com/demo/94212.html?_ga=2.104293187.2122524184.1599223583-2013893291.1599223583
https://www.groovecommerce.com/
@frullah
frullah / debian-10-oci8-install.sh
Last active December 29, 2020 00:25
Oracle instantclient installation script
#!/bin/bash
set -e
MAJOR_VERSION=21
MINOR_VERSION=1
INSTANTCLIENT_DIRNAME=instantclient_${MAJOR_VERSION}_${MINOR_VERSION}
INSTANTCLIENT_PATH=/opt/${INSTANTCLIENT_DIRNAME}
INSTANTCLIENT_DOWNLOAD_PATH=/tmp/${INSTANTCLIENT_DIRNAME}
@frullah
frullah / Guardfile
Created October 5, 2020 04:39
rails additional rspec guard watch
# factories
begin
require "active_support/inflector"
watch(%r{spec/factories/(.+).rb}) do |match|
"#{rspec.spec_dir}/models/#{match[1].singularize}_spec.rb"
end
end
function logic() {
let data = {}
// kode pemrosesan data ...
console.log('-----------------------')
console.log('data setelah diproses')
console.log(data)
console.log('-----------------------')
}
function logic() {
let data = {}
// kode pemrosesan data ...
debugger
}
#!/bin/bash
# requirements:
# - pageres-cli (https://github.com/sindresorhus/pageres-cli)
# CLI website screenshot tool
# - crunch (https://github.com/chrissimpkins/Crunch)
# PNG image optimizer
#
# usage:
# see https://github.com/sindresorhus/pageres-cli#usage
# don't use `--format` argument, let script do it automatically
@frullah
frullah / rbenv-system-wide-installation78.sh
Created November 8, 2020 16:53
rbenv system wide install
#!/bin/bash
RBENV_GROUP=admin
# install rbenv in /usr/local/rbenv
cd /usr/local
git clone git://github.com/sstephenson/rbenv.git rbenv
chgrp -R ${RBENV_GROUP} rbenv
chmod -R g+rwxXs rbenv
@frullah
frullah / README.md
Last active March 5, 2021 06:22
Advanced rails project template
@frullah
frullah / rbenv-install.sh
Created December 25, 2020 16:26
rbenv installation in bash
#!/bin/bash
#
# simplified version of https://www.techiediaries.com/install-ruby-2-7-rails-6-ubuntu-20-04/
#
# make sure you have install all requisite libraries
# see https://github.com/rbenv/ruby-build/wiki#suggested-build-environment
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
@frullah
frullah / custom-generator-templates-guide.md
Created January 17, 2021 12:24
Rails custom generator templates guide

independent generator

example:

  • controller
  • model
  • etc.

lib/templates/rails/{singular_app_type}/{singular_app_type}.rb