Skip to content

Instantly share code, notes, and snippets.

View akbarabustang's full-sized avatar
🏡
Working From Home

Akbar Abustang akbarabustang

🏡
Working From Home
  • Jakarta, Indonesia
View GitHub Profile
@akbarabustang
akbarabustang / sql-mongo_comparison.md
Created February 23, 2020 03:18 — forked from aponxi/sql-mongo_comparison.md
MongoDb Cheat Sheets

SQL to MongoDB Mapping Chart

SQL to MongoDB Mapping Chart

In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.

Executables

The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.

@akbarabustang
akbarabustang / redis_cheatsheet.bash
Created December 27, 2019 11:49 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@akbarabustang
akbarabustang / encode_decode.php
Created April 23, 2018 07:16 — forked from LogIN-/encode_decode.php
PHP custom encode decode functions
<?php
function encode($string,$key) {
$key = sha1($key);
$strLen = strlen($string);
$keyLen = strlen($key);
for ($i = 0; $i < $strLen; $i++) {
$ordStr = ord(substr($string,$i,1));
if ($j == $keyLen) { $j = 0; }
$ordKey = ord(substr($key,$j,1));
$j++;