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 / disable_xdebug.sh
Created June 12, 2016 15:59
Disable xdebug
sudo php5dismod -s cli xdebug
@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 / 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 / selenium.sh
Created June 2, 2016 09:53
Run selenium with chrome driver
java -jar selenium.jar -Dwebdriver.chrome.driver=/Users/jimboy/Downloads/chromedriver
# 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 ->
# -*- 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/
@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
@wayanjimmy
wayanjimmy / gosublime.json
Created January 10, 2016 11:48
GoSublime user setting
{
"env": {
"GOPATH": "$HOME/gogo",
"PATH": "$GOPATH/bin:$PATH"
},
"fmt_cmd": [
"goimports"
],
"comp_lint_enabled": true,
"comp_lint_commands": [
@wayanjimmy
wayanjimmy / xinput.sh
Created October 28, 2015 02:32
Disable touchpad
xinput #list devices
xinput set-prop 13 'Device Enabled' 0 #disabled
xinput set-prop 13 'Device Enabled' 1 #enabled
@wayanjimmy
wayanjimmy / import_redis.sh
Created October 22, 2015 03:02
Import redis
#http://stackoverflow.com/questions/6004915/how-do-i-move-a-redis-database-from-one-server-to-another
B$ sudo service redis-server stop
B$ sudo cp /tmp/dump.rdb /var/lib/redis/dump.rdb
B$ sudo chown redis: /var/lib/redis/dump.rdb
B$ sudo service redis-server start