Skip to content

Instantly share code, notes, and snippets.

View timetobye's full-sized avatar
๐Ÿค”
์‹คํŒจ๊ฐ€ ์ผ์ƒ์ผ์ง€๋ผ๋„..

WonTaek Hwang timetobye

๐Ÿค”
์‹คํŒจ๊ฐ€ ์ผ์ƒ์ผ์ง€๋ผ๋„..
View GitHub Profile
@sigridjineth
sigridjineth / mysql_tablecsv.md
Last active March 13, 2021 02:54
How to load csv files into MySQL tables (for Docker users)

How to load csv files into MySQL tables (for Docker users)

์š”๊ตฌ์‚ฌํ•ญ

  • MySQL ํ…Œ์ด๋ธ” ์Šคํ‚ค๋งˆ์— ๋งž๋Š” ๋Œ€๋Ÿ‰์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด์œ ํ•˜๊ณ  ์žˆ๋Š” CSV ํŒŒ์ผ์„ MySQL์— ์ง‘์–ด๋„ฃ๊ณ ์ž ํ•œ๋‹ค.
  • Mac ํ™˜๊ฒฝ์—์„œ Docker๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ MySQL 8 ์ด๋ฏธ์ง€๋ฅผ ์‹คํ–‰ํ•˜๊ณ  ์žˆ๋‹ค.

ํŒŒ์ผ ์˜ฎ๊ธฐ๊ธฐ

  • ๋กœ์ปฌ์—์„œ ์ž‘์—…ํ•˜๊ณ  ์žˆ๋Š” CSV ํŒŒ์ผ์„ ๋„์ปค ์ปจํ…Œ์ด๋„ˆ๋กœ ์˜ฎ๊ธด๋‹ค.
  • docker ps -a ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ํ˜„์žฌ ๋„์ปค ์ปจํ…Œ์ด๋„ˆ์˜ ์•„์ด๋””๋ฅผ ๊ฒ€์ƒ‰ํ•œ๋‹ค.
  • ๋‹ค์Œ์˜ cp ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ๋„์ปค ์ปจํ…Œ์ด๋„ˆ๋กœ csv ํŒŒ์ผ์„ ๋ณต์‚ฌํ•œ๋‹ค.
@bradtraversy
bradtraversy / mysql_cheat_sheet.md
Last active November 3, 2025 04:54
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@appkr
appkr / yark-shaving.md
Last active November 9, 2020 04:45
๋Ÿฌ์‹œ์•„ ํŽ˜์ธํŠธ๊ณต, ๋งˆ์„ธ๋ผํ‹ฐ, ์•ผํฌ ํ„ธ๊น๊ธฐ

๋Ÿฌ์‹œ์•„ ํŽ˜์ธํŠธ๊ณต ์•Œ๊ณ ๋ฆฌ์ฆ˜

ํŽ˜์ธํŠธ๊ณต์ด ์ฒซ๋‚ ์€ ์ฐจ์„  ํŽ˜์ธํŠธ ์ž‘์—…์„ 300์•ผ๋“œ ์น ํ•จ ๋‘˜์งธ ๋‚ ์€ 150์•ผ๋“œ ์น ํ•จ ์…‹์งธ ๋‚ ์€ 30์•ผ๋“œ ์น ํ•จ ์ฒซ ๋‚ ์€ ์–ด๋–ป๊ฒŒ 10๋ฐฐ๋ฅผ ์น ํ–ˆ๋Š”์ง€ ๊ด€๋ฆฌ์ž๊ฐ€ ๋ฌป์ž ์ €๋„ ์–ด์ฉ” ์ˆ˜ ์—†์—ˆ์Šต๋‹ˆ๋‹ค. ๋งค์ผ ํŽ˜์ธํŠธ ํ†ต์—์„œ ์ ์  ๋ฉ€์–ด์ง€๋‹ˆ๊นŒ์š”

  • "์กฐ์—˜ ์˜จ ์†Œํ”„ํŠธ์›จ์–ด" by ์กฐ์—˜์Šคํด์Šคํ‚ค(์Šคํƒ์˜ค๋ฒ„ํ”Œ๋กœ, ํŠธ๋ ๋กœ ์ฐฝ์—…์ž)

A handful of BigQuery SQL queries that you can use to analyze your own Google Analytics for Firebase data. To find out more about how they work, check out our presentation from Cloud Next 2018 (Video link to be added soon)

Please note that these scripts have been updated to make sure of the new Firebase schema, which was rolled out to Analytics products in July of 2018.

Note that none of these scripts will work out of the box -- you'll need to update the values in brackets with the names of your actual datasets, and you'll most likely also need to replace the names of events and event properties with ones that are appropriate for your app.

The contents of this gist are licensed under the Apache License, version 2.0

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active October 31, 2025 13:24
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@iamstoick
iamstoick / import.md
Created June 14, 2017 05:03
How to import database in MySQL in Docker?

This is a simple way of importing MySQL database in Docker.

  1. In you Dockerfile you must have a shared folder. Shared folder is a directory in your host machine that is mounted to Docker instance.

  2. Put the exported sql file in the shared folder.

  3. Login to your Docker instance via docker exec -it DOCKER_CONTAINER_ID bin/bash.

  4. Login to MySQL via mysql -u USERNAME -p.

@akashnimare
akashnimare / README.md
Last active July 30, 2025 11:21
A Beginners Guide to writing a Kickass READMEย โœ

Project title

A little info about your project and/ or overview that explains what the project is about.

Motivation

A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.

Build status

Build status of continus integration i.e. travis, appveyor etc. Ex. -

Build Status

@fredbenenson
fredbenenson / kickstarter_sql_style_guide.md
Last active October 14, 2025 15:32
Kickstarter SQL Style Guide
layout title description tags
default
SQL Style Guide
A guide to writing clean, clear, and consistent SQL.
data
process

Purpose

@squarism
squarism / iterm2.md
Last active November 2, 2025 22:08
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So โŒ˜ + D does not mean hold shift. โŒ˜ + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab โŒ˜ + T
Close Tab or Window โŒ˜ + W (same as many mac apps)
Go to Tab โŒ˜ + Number Key (ie: โŒ˜2 is 2nd tab)
Go to Split Pane by Direction โŒ˜ + Option + Arrow Key
@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active October 30, 2025 02:19
๋งˆํฌ๋‹ค์šด(Markdown) ์‚ฌ์šฉ๋ฒ•

[๊ณตํ†ต] ๋งˆํฌ๋‹ค์šด markdown ์ž‘์„ฑ๋ฒ•

์˜์–ด์ง€๋งŒ, ์กฐ๊ธˆ ๋” ์ƒ์„ธํ•˜๊ฒŒ ๋งˆํฌ๋‹ค์šด ์‚ฌ์šฉ๋ฒ•์„ ์•ˆ๋‚ดํ•˜๊ณ  ์žˆ๋Š”
"Markdown Guide (https://www.markdownguide.org/)" ๋ฅผ ๋ณด์‹œ๋Š” ๊ฒƒ์„ ์ถ”์ฒœํ•ฉ๋‹ˆ๋‹ค. ^^

์•„, ๊ทธ๋ฆฌ๊ณ  ๋งˆํฌ๋‹ค์šด๋งŒ์œผ๋กœ ํ‘œํ˜„์ด ๋ถ€์กฑํ•˜๋‹ค๊ณ  ๋А๋ผ์‹ ๋‹ค๋ฉด, HTML ํƒœ๊ทธ๋ฅผ ํ™œ์šฉํ•˜์‹œ๋Š” ๊ฒƒ๋„ ์ข‹์Šต๋‹ˆ๋‹ค.

1. ๋งˆํฌ๋‹ค์šด์— ๊ด€ํ•˜์—ฌ