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 / .bashrc
Created January 11, 2016 01:25 — forked from vsouza/.bashrc
Golang 1.5 setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Config Github Settings
github_username = "fideloper"
github_repo = "Vaprobash"
github_branch = "1.4.2"
github_url = "https://raw.githubusercontent.com/#{github_username}/#{github_repo}/#{github_branch}"
# Because this:https://developer.github.com/changes/2014-12-08-removing-authorizations-token/
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@wayanjimmy
wayanjimmy / selenium.sh
Created June 2, 2016 09:53
Run selenium with chrome driver
java -jar selenium.jar -Dwebdriver.chrome.driver=/Users/jimboy/Downloads/chromedriver
@wayanjimmy
wayanjimmy / masuk-1-keluar2.txt
Last active June 16, 2016 16:48
Hasil Olah Data
+------------+-------------+--------------+
| Number | Interval In | Interval Out |
+------------+-------------+--------------+
| 1145 KH | 27 | 24,39 |
| 1507 AC | 30 | 21,38 |
| 875 KU | 31 | 22,37 |
| 1387 AK | 33 | 34,57 |
| 1118 OB | 26 | 18,49 |
| 729 BD | 26 | 7,26 |
| 1663 IU | 21 | 7,24 |
@wayanjimmy
wayanjimmy / BackendRouteListCommand.php
Last active June 7, 2016 12:39
Override RouteListCommand
<?php
namespace App\Console\Commands\Route;
use Illuminate\Console\Command;
use Illuminate\Foundation\Console\RouteListCommand;
use Illuminate\Routing\Router;
class BackendRouteListCommand extends RouteListCommand
{
@wayanjimmy
wayanjimmy / disable_xdebug.sh
Created June 12, 2016 15:59
Disable xdebug
sudo php5dismod -s cli xdebug
@wayanjimmy
wayanjimmy / gitflow-breakdown.md
Created July 5, 2016 13:33 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@wayanjimmy
wayanjimmy / AuthServiceProvider.php
Last active January 4, 2024 09:32
Extend Laravel SessionGuard
<?php
namespace App\Providers;
use App\Extensions\SessionAnonymousGuard;
use Illuminate\Auth\SessionGuard;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
@wayanjimmy
wayanjimmy / phpspec.yml
Created September 24, 2016 15:43
Php spec sample config for laravel
suites:
my_suite:
namespace: App
psr4_prefix: App
src_path: app
spec_prefix: spec