Skip to content

Instantly share code, notes, and snippets.

View zendzo's full-sized avatar
🤖
Never Stop Learning

M. Z Mustofa zendzo

🤖
Never Stop Learning
  • Bintan Island
View GitHub Profile
If you'r using MAC Intel CPU you want to use VMware to virtual your desired OS such Windows or Ubuntu on the MAC OS you need to download VMware Fusion Player first then it has two version Pro and Player, the Player version is free for personal use but you need to create VM account to download and licence key.
You can create account to download yourself here:
https://customerconnect.vmware.com/group/vmware/evalcenter?p=fusion-player-personal
If you don't want to create account to get license, you can try below original license key for VMware Fusion Player:
COMPONENT:
VMware Fusion Player – Personal Use

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@zendzo
zendzo / git-commit-template.md
Created November 16, 2020 01:21 — forked from lisawolderiksen/git-commit-template.md
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

One of my colleagues shared an article on writing (good) Git commit messages today: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@zendzo
zendzo / service-worker.js
Last active October 23, 2018 09:53
My Service Worker Experiment Google Kejar MWS Batam 2018
// for caches version on the browser so when we change the version, old version of caches will be reaplaced
var VERSION = 'static-assets-01';
self.addEventListener('install', function(event) {
event.waitUntil(
caches.open(VERSION).then(function(cache) {
return cache.addAll([
'/',
'/index.html',
'/main.js',
@zendzo
zendzo / bubble-sort.js
Created October 17, 2018 04:14 — forked from fed/bubble-sort.js
Bubble Sort
const numbers = [13, 5, -3, 7, 6, 4, 1, 17, 0, -1, -2];
function sort(arr) {
const sorted = arr.slice();
let swapped;
do {
swapped = false;
for (let i = 0, l = sorted.length; i < l; i++) {
@zendzo
zendzo / PreviewOfUpcomingPackage.php
Created September 24, 2018 06:53 — forked from calebporzio/PreviewOfUpcomingPackage.php
A model trait that allows child models to use parent table names and relationship keys.
<?php
namespace App\Abilities;
use Illuminate\Support\Str;
use ReflectionClass;
/**
* Note: This is a preview of an upcoming package from Tighten.
**/
@zendzo
zendzo / settings.json
Last active February 5, 2022 16:40
My Personal VsCode Settings with Fira Code, Dunk Mono Font and Ocean Material Theme
// Place your settings in this file to overwrite the default settings
{
"workbench.iconTheme": "material-icon-theme",
"emmet.syntaxProfiles": {
"blade": "html"
},
"editor.tabCompletion": true,
"editor.fontSize": 16,
"editor.lineHeight": 30,
"editor.tabSize": 2,
@zendzo
zendzo / h3-gradient.css
Created December 15, 2016 09:09
h3-text-gradient
.entry h3, .entry h4, .rs {
font-size: 22px;
color: #d01759;
font-weight: 900;
background: -webkit-linear-gradient(45deg, #b03ffc 0%,#00bcfe 50%,#00bcfe 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 30px;
padding-top: 10px;
text-align: left;
Installing Arch:
sudo vim /etc/pacman.conf
Update packages list: sudo pacman -Syy
run sudo pacman -Syu before installing any software (to update the repositories first)
* Timing issue:
- Change hardware clock to use UTC time:
sudo timedatectl set-local-rtc 0
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated for Laravel 4.2.8 on 2014-08-26.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {