Skip to content

Instantly share code, notes, and snippets.

View DevGW's full-sized avatar
🔥
building ... things!

JB (DevGW) DevGW

🔥
building ... things!
View GitHub Profile
@DevGW
DevGW / mysql_cheatsheet.md
Created March 13, 2023 16:08
MySQL Cheatsheet #hha_ank #cheatsheet #mysql

Browsing

SHOW DATABASES;
SHOW TABLES;
SHOW FIELDS FROM table / DESCRIBE table;
SHOW CREATE TABLE table;
SHOW PROCESSLIST;
KILL process_number;
@DevGW
DevGW / markdown_cheatsheet.md
Created March 13, 2023 16:06
Markdown Cheatsheet #hha_ank #cheatsheet #git #markdown

Reference

Headers

# h1
## h2
### h3
#### h4
##### h5
@DevGW
DevGW / grep_cheatsheet.md
Created March 13, 2023 16:05
Grep Cheatsheet #hha_ank #cheatsheet #bash

Usage

grep <options> pattern <file...>

Matching options

-e, --regexp=PATTERN
@DevGW
DevGW / find_cheatsheet.md
Created March 13, 2023 16:03
Find Cheatsheet #hha_ank #cheatsheet #bash

Usage

find <path> <conditions> <actions>

Conditions

-name "*.c"
@DevGW
DevGW / curl_cheatsheet.md
Created March 13, 2023 16:01
Curl Cheatsheet #hha_ank #cheatsheet #curl

Options

-o <file>    # --output: write to file
-u user:pass # --user: Authentication
-v           # --verbose
-vv          # Even more verbose
@DevGW
DevGW / circleci_cheatsheet.md
Created March 13, 2023 15:57
Circle CI Cheatsheet #circleci #cheatsheet #hha_ank
title CircleCI
category Devops

circle.yml

  • machine: adjusting the VM to your preferences and requirements
  • checkout: checking out and cloning your git repo
  • dependencies: setting up your project's language-specific dependencies
@DevGW
DevGW / bash_cheatsheet.md
Last active March 13, 2023 15:56
Bash Cheatsheet #bash #cheatsheet #hha_ank

Getting started

{: .-three-column}

Introduction

{: .-intro}

This is a quick reference to getting started with Bash scripting.

@DevGW
DevGW / rails-model-cheatsheet.md
Last active March 13, 2023 15:56
Rails Model Cheatsheet #RoR #cheatsheet #hha_ank

Generating

Generating

$ rails g model User

Using models

@DevGW
DevGW / payor_config.rb
Created March 3, 2023 18:17
Load payor config #hha_ank #ruby
config = PayorConfiguration.new
PayorConfigLoaders::VtCfc.load(config)
@DevGW
DevGW / ruby_array_methods_cheatsheet.md
Last active March 14, 2023 16:27 — forked from mkdika/ruby_array_methods_cheatsheet.md
Ruby arrays methods Cheatsheet #ruby #cheatsheet

Ruby Arrays Methods Cheatsheet

This is collection of Ruby Array methods usage, tips & tricks.

Codes block

# All array method can use do..end block.
[1,2,3].each do |number|
 world = "World #{number}"