Skip to content

Instantly share code, notes, and snippets.

View arohman84's full-sized avatar

Abdul Rohman arohman84

View GitHub Profile
@arohman84
arohman84 / .env
Created August 27, 2023 10:32 — forked from degitgitagitya/.env
Next JS + Next Auth + Keycloak + AutoRefreshToken
# KEYCLOAK BASE URL
KEYCLOAK_BASE_URL=
# KEYCLOAK CLIENT SECRET
KEYCLOAK_CLIENT_SECRET=
# KEYCLOAK CLIENT ID
KEYCLOAK_CLIENT_ID=
# BASE URL FOR NEXT AUTH
@arohman84
arohman84 / GitCommitEmoji.md
Created November 19, 2021 01:08 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@arohman84
arohman84 / patch.sh
Created July 8, 2021 02:55 — forked from rufoa/patch.sh
sublime merge 2 build 2056 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid
@arohman84
arohman84 / xsellbug.md
Last active March 10, 2021 07:24
cross sell bug

gender birthday doesn autofill

occupation is auto filled fine but province filled but others address doesnt

@arohman84
arohman84 / .bash_profile
Created April 7, 2020 01:40 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@arohman84
arohman84 / cloudSettings
Created January 7, 2020 14:03
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-07T14:03:37.207Z","extensionVersion":"v3.4.3"}
@arohman84
arohman84 / functions.php
Last active March 20, 2019 04:49 — forked from EddyRespondek/functions.php
Wordpress - Simple AJAX Pagination
function get_posts_for_pagination() {
$html = '';
$paged = ( $_GET['page'] ) ? $_GET['page'] : 1;
$post_type = $_GET['posttype'];
if ( empty($post_type) ) {
return '';
}
if( filter_var( intval( $paged ), FILTER_VALIDATE_INT ) ) {
@arohman84
arohman84 / wp-query-ref.php
Created March 17, 2019 13:13 — forked from luetkemj/wp-query-ref.php
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@arohman84
arohman84 / customizer-options.php
Created March 15, 2019 01:40 — forked from asif5057/customizer-options.php
Wordpress: Customizer options for logo upload, color schemes for background color,footer copyright text option.
<?php
/*
* @ include file in theme
* Register different customizer options
* @Logo option
* @footer copyright option
* @Color schemes for navigation and footer
*/
function customtheme_customize_register( $wp_customize ){
* {
/*font-family: Helvetica, Arial, sans-serif !important;*/
}
:focus {
outline-color: none;
}
div#gameBorder {
border: 1px solid #000;
border-top-left-radius: 5px;
border-top-right-radius: 5px;