Skip to content

Instantly share code, notes, and snippets.

View rafeequl's full-sized avatar
😴
I may be slow to respond.

vcool rafeequl

😴
I may be slow to respond.
View GitHub Profile
@rafeequl
rafeequl / vcr.rb
Created November 24, 2023 09:02
VCR Rspec Config
require 'vcr'
require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true)
VCR.configure do |c|
c.cassette_library_dir = Rails.root.join('spec', 'cassettes')
c.ignore_localhost = true
c.hook_into :webmock
c.configure_rspec_metadata!
@rafeequl
rafeequl / rubocop.yml
Last active November 24, 2023 09:23
rubocop yml
require:
- rubocop-performance
- rubocop-rails
AllCops:
TargetRubyVersion: 2.7
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
SuggestExtensions: false
@rafeequl
rafeequl / Flutter CBL
Created October 2, 2023 02:37
Sample of CBL with Flutter
// ignore_for_file: avoid_print, lines_longer_than_80_chars, diagnostic_describe_all_properties
/// This simple example app allows users to view and add to a list of log
/// messages.
///
/// It demonstrates how to:
///
/// - initialize Couchbase Lite,
/// - open a database,
/// - create an index,
#!/usr/bin/env bash
sudo apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -

Checklist Barang

Group

  • Tenda
  • Tali
  • Lampu tenda
  • Flysheet
  • Kompor
  • Peralatan masak (panci)
  • Jerry Can
@rafeequl
rafeequl / gist:634583d1108cf4bf5911
Created October 27, 2014 14:13
Two Click part 2
<?php
require_once(dirname(__FILE__) . '/../../Veritrans.php');
if(empty($_POST['token_id'])) {
die('Empty token_id!');
}
Veritrans_Config::$serverKey = 'server key';
@rafeequl
rafeequl / gist:72a2255fadc5bf986095
Created October 27, 2014 14:12
Two Click part 1
<html>
<head>
<title>Two Click</title>
</head>
<body>
<h1>Two Click</h1>
<form action="two_click_charge.php" method="POST" id="payment-form">
<p>
<label>PIN</label>
<input id="card-pin" name="card-pin" size="20" type="text" autocomplete="off"/>
@rafeequl
rafeequl / debit_status.md
Last active August 29, 2015 14:06
Notification for debit transactions

#Status explanation reference : (http://docs.veritrans.co.id/sandbox/status_code.html)

##Mandiri clickpay ###success notification

{
    "status_code" : "200",
    "status_message" : "Veritrans payment notification",
    "transaction_id" : "e9ebb49c-9d41-4852-b68f-74e76b5ea8dc",
@rafeequl
rafeequl / get_redir_url.php
Last active August 29, 2015 14:06
vt-web sample get redirection url request for ALL payment method
<?php
require_once(dirname(__FILE__) . '/../../Veritrans.php');
Veritrans_Config::$serverKey = 'change_with_your_server_key';
// Uncomment for production environment
// Veritrans_Config::$isProduction = true;
// Uncomment to enable sanitization