Skip to content

Instantly share code, notes, and snippets.

Rahmat Awaludin rawaludin

Block or report user

Report or block rawaludin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View resto.sql
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `counter_customer` (
`total_customer` tinyint NOT NULL
SET character_set_client = @saved_cs_client;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer` (
View soal.txt
1. Tampilkan menu dengan pesanan terbanyak
2. Tampilkan jumlah pembayaran untuk tiap customer
3. Tampilkan menu dengan pendapatan (pesanan*harga) paling kecil tapi bukan nol
4. Tampilkan menu dengan harga termahal
5. Tampilkan menu dengan harga termurah
6. Tampilkan rata-rata pembayaran tiap customer
View resto.sql
-- MySQL dump 10.13 Distrib 5.5.33, for osx10.6 (i386)
-- Host: localhost Database: resto
-- ------------------------------------------------------
-- Server version 5.5.33
/*!40101 SET NAMES utf8 */;
View gist:9092765


Now Hiring:

At we are looking to expand our small team to include a number of new development positions ahead of a major project. Go ahead and take a look at the role descriptions. If the must haves don't quite fit, let us know anyway, you never know!

Front-end Developer

Must have

View Laravel Sentry 2 with multiple user

Sentry is an amazing auth system. But I really need a feature: multiple user types in the same app. And I cannot separate those in groups, because they have different table columns. After 2 days burning my head, I think I found a good solution. The magic is duplicate SentryServiceProvider with new different settings.

This was tested on Laravel 4.0 and Sentry 2. If you're using other version of Sentry, my suggestion is to follow same steps from this gist but use your local files instead copying files from here.

Lets suppose we have a fresh Sentry install with default User ambient. Now we want another ambient called Admin, with new model and different settings. How to do:

1. One model, one ambient

View Default (OSX).sublime-keymap
{ "keys": ["enter"], "command": "commit_completion", "context":
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab", "operand": true }
View Preferences.sublime-settings
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Piatto/Piatto Dark.tmTheme",
"theme": "Piatto Dark 3.sublime-theme",
"piatto_folder_icons": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_size": 14,
"highlight_line": true,
rawaludin / .zshrc
Created Sep 2, 2014
My ZSH Configuration
View .zshrc
# Path to your oh-my-zsh configuration.
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
View gist:bdb34f02f4f7fbbfb6ac
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tudu App</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
You can’t perform that action at this time.