Skip to content

Instantly share code, notes, and snippets.

View rubanraj54's full-sized avatar
:octocat:
Eat, Sleep, Code, Repeat.

Rubanraj rubanraj54

:octocat:
Eat, Sleep, Code, Repeat.
  • Studocu
  • Amsterdam, Netherlands
View GitHub Profile
@rubanraj54
rubanraj54 / docker-compose.yml
Created October 6, 2017 13:04
Neo4j Enterprise edition docker compose file
version: '3'
services:
instance1:
image: neo4j:3.2-enterprise
ports:
- 7474:7474
- 7687:7687
volumes:
- $HOME/neo4j-enterprise/logs1:/logs
@rubanraj54
rubanraj54 / docker-compose.yml
Created October 6, 2017 13:07
Neo4j Community edition docker compose file Raw
version: '3'
services:
neo4j-community-1:
image: neo4j:3.2.3
ports:
- 9998:7474
- 7778:7687
volumes:
- ~/neo4j/data:/data
@rubanraj54
rubanraj54 / docker-compose.yml
Created October 13, 2017 12:24
Orientdb cluster mode docker compose file
version: '3'
services:
instance1:
image: orientdb
ports:
- 2424:2424
- 2480:2480
volumes:
- $HOME/orientdb/databases1:/orientdb/databases
@rubanraj54
rubanraj54 / zsh.md
Created December 12, 2017 13:24 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@rubanraj54
rubanraj54 / docker-compose.yml
Created January 13, 2018 17:56
Simple MongoDB cluster using docker compose (3 node cluster)
version: '3'
services:
node1:
image: mongo
ports:
- 30001:27071
volumes:
- $HOME/mongoclusterdata/node1:/data/db
networks:
@rubanraj54
rubanraj54 / gist:35ccd12688a487ae4dac84491e6ee2e9
Created July 3, 2018 13:34 — forked from Manu343726/gist:ca0ceb224ea789415387
Running ARM docker image with QEMU on x86_64 Arch Linux host
# Install quemu, docker, etc
yaourt -S qemu qemu-user-static binfmt-support
# The quemu-user-static AUR package is outdated and broken. The .deb package they pull is no longer in the ubuntu repository.
# Edit the PKGBUILD and use qemu-user-static_2.4+dfsg-3_amd64.deb (With SHA1 sum "84d83a16c60c82b6c579f2f750b04a3ac26c249b")
# Enable ARM emulation
update-binfmts --enable qemu-arm
<template>
<div id="app">
<VueBootstrap4Table :payload="data" :table-config="config"></VueBootstrap4Table>
</div>
</template>
<script>
import VueBootstrap4Table from 'vue-bootstrap4-table'
export default {
@rubanraj54
rubanraj54 / PaginationController.php
Created April 2, 2019 16:37 — forked from Repox/PaginationController.php
Laravel 5 Pagination with transform
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
class PaginationController extends Controller
{
@rubanraj54
rubanraj54 / gist:8d2071f2ebe2c592e70aba63857b83e6
Created April 25, 2019 12:36 — forked from irazasyed/gist:4340734
PHP: Match wildcard in string
function match_wildcard( $wildcard_pattern, $haystack ) {
$regex = str_replace(
array("\*", "\?"), // wildcard chars
array('.*','.'), // regexp chars
preg_quote($wildcard_pattern)
);
return preg_match('/^'.$regex.'$/is', $haystack);
}
@rubanraj54
rubanraj54 / index.js
Created March 12, 2020 04:06 — forked from svaj/index.js
product sync-actions external image example
import { createSyncProducts } from '@commercetools/sync-actions'
import {cloneDeep} from 'lodash'
const syncProducts = createSyncProducts()
const before = {
"id": "4e7ccbb5-0d06-48a8-8ff1-2b17b4bee189",
"version": 1,