Skip to content

Instantly share code, notes, and snippets.

View hiukky's full-sized avatar
🏝️
~ vacation, back soon!

R o m u l l o hiukky

🏝️
~ vacation, back soon!
View GitHub Profile
@hiukky
hiukky / postgres-cheatsheet.md
Created December 9, 2020 22:25 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@hiukky
hiukky / mongodb_shell_commands.md
Created November 26, 2020 18:38 — forked from michaeltreat/mongodb_shell_commands.md
Quick Cheat Sheet for Mongo DB Shell commands.

MongoDB Shell Commands Cheat Sheet.

This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.

Preface:

Mongo Manual can help you with getting started using the Shell.

FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.

@hiukky
hiukky / regex.md
Created November 16, 2020 22:28 — forked from vitorbritto/regex.md
Regex Cheat Sheet

Regular Expressions

Basic Syntax

  • /.../: Start and end regex delimiters
  • |: Alternation
  • (): Grouping
@hiukky
hiukky / PKGBUILD
Created September 3, 2020 20:06 — forked from mugifly/PKGBUILD
PKGBUILD file for odenwlan-node (It also an example of PKGBUILD file for Electron based app.)
# Maintainer: Masanori Ohgita <mp_aur[at]ohgita[dot]info>
pkgname=odenwlan-node
pkgver=1.3.0
pkgrel=1
pkgdesc="An automatic login tool for Wi-Fi of OECU"
url="https://github.com/odentools/odenwlan-node/"
arch=('i686' 'x86_64')
license=('MIT')
depends=('nodejs>=4.1.1' 'npm>=3.3.4')
makedepens=('git')
@hiukky
hiukky / pt-br.js
Created February 23, 2020 05:54 — forked from fernandosavio/pt-br.js
Locale pt-br of Moment.js
// moment.js locale configuration
// locale : brazilian portuguese (pt-br)
// author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment')); // Node
} else {
@hiukky
hiukky / folder.code-workspace
Created February 15, 2020 16:41
Configuration to use separate workspaces in VScode
{
"folders": [
{
"path": "."
}
]
}
@hiukky
hiukky / redis.txt
Created February 15, 2020 16:21
redis
To start Redis server
sudo systemctl start redis
To start Redis automatically when your server boots
sudo systemctl enable redis
To restart Redis server
sudo systemctl restart redis
@hiukky
hiukky / gist:e3bdcba426f538fede65b8e4ba8c04d9
Created November 15, 2019 12:33 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@hiukky
hiukky / ultimate-ut-cheat-sheet.md
Created November 7, 2019 20:54 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@hiukky
hiukky / GitCommitEmoji.md
Created November 6, 2019 12:09 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji