Skip to content

Instantly share code, notes, and snippets.

View goeroeku's full-sized avatar

Agus Indra Cahaya goeroeku

View GitHub Profile
@goeroeku
goeroeku / adminer.md
Last active November 13, 2018 04:58
Install adminer

install

wget -O d.php https://www.adminer.org/latest-en.php
@goeroeku
goeroeku / Readme.md
Created December 26, 2018 03:29
Production vue & nodejs
  • Gunakan pm2
  • build vue
yarn build
  • buat server nodejs menggunakan express dan serve-static
yarn add express serve-static
  • jalankan vue menggunakan nodejs
@goeroeku
goeroeku / CommandLine.md
Last active February 7, 2019 07:07
Some utilities app

batch rename extension to UPERCASE

for f in *.jpg; do mv "$f" "${f//jpg/JPG}"; done
@goeroeku
goeroeku / Installasi.md
Last active July 23, 2019 23:22
All about Docker & Ranches on Manjaro

Docker

a. Install Docker

sudo pacman -S docker docker-machine docker-compose

b. Jalankan Service

sudo systemctl start docker

c. Tambahkan current user ke group docker agar pada saat menjalankan tidak perlu menggunakan sudo

@goeroeku
goeroeku / Readme.md
Last active August 16, 2019 06:56
All about IoT

Software pendukung IoT

  1. minicom Terminal emulator
# sudo pacman -Ss minicom
# sudo minicom -s

Untuk keluar dari emulator

# CTRL+A X
@goeroeku
goeroeku / Application-Utilities.md
Last active October 2, 2019 08:15
note about arch linux

Aplikasi pendukung

Ulauncher

https://ulauncher.io/

Scanner

EPSON L220

@permatis
permatis / 1Instruksi.md
Last active November 25, 2019 02:37
Membuat helper tanggal Indonesia di laravel 5 dengan Carbon.

Membuat Helper di Laravel 5

Berikut ini adalah langkah-langkah membuat helper di laravel 5 dengan contoh kasus membuat helper tanggal / datetime ke Indonesia.

  • Buat folder Helpers atau lainnya didalam folder App.
  • Membuat file Service Provider terlebih dahulu. gunakan perintah php artisan make:provider HelperServiceProvider
  • Kemudian buka file HelperServiceProvider.php di dalam folder App/Providers/
  • Tambahkan kode dibawah ini didalam fungsi register()
@FauziFerdiansyah
FauziFerdiansyah / helper.php
Last active January 7, 2020 17:18
Membuat helper tanggal Indonesia di laravel 5.* menggunakan CARBON
// ini diletakan di HELPER atau langsung di controllernya
public static function keIndonesia($tgl) {
$dt = new \Carbon\Carbon($tgl);
setlocale(LC_TIME, 'IND');
return $dt->formatLocalized('%A, %e %B %Y'); // Senin, 3 September 2018
}
@goeroeku
goeroeku / .prettierrc.md
Created March 11, 2020 04:27
All about VS Code - Prettier - ESLint

Rule:

  1. wraping if length : 100
  2. using single Quote
  3. using comma
  4. using parenthesis
{
  "printWidth": 100,
  "singleQuote": true,
 "trailingComma": "all",
@goeroeku
goeroeku / install-old-php-from-source.md
Last active March 28, 2020 11:40
Ubuntu/Debian - PHP & PHP Extension

Old PHP from Source

php 5.4

add old repo, ex jesie

deb http://kartolo.sby.datautama.net.id/debian/ jessie main contrib non-free
deb http://kartolo.sby.datautama.net.id/debian-security/ jessie/updates main contrib non-free
deb-src http://kartolo.sby.datautama.net.id/debian/ jessie main contrib non-free