Skip to content

Instantly share code, notes, and snippets.

View hongry18's full-sized avatar

hongry hongry18

View GitHub Profile
@hongry18
hongry18 / git.pager.branch.md
Created January 30, 2023 09:05
git pager.branch

git branch 명령어 사용시 새로운 화면과 함께 branch가 paging된다

아래 명령어로 옵션을 제거 하여 기존처럼 사용 가능하다

git config --global pager.branch false
@hongry18
hongry18 / iso-639-1-codes.php
Created April 28, 2021 01:39 — forked from DimazzzZ/iso-639-1-codes.php
ISO 639-1 language codes array
<?php
$codes = [
'ab' => 'Abkhazian',
'aa' => 'Afar',
'af' => 'Afrikaans',
'ak' => 'Akan',
'sq' => 'Albanian',
'am' => 'Amharic',
'ar' => 'Arabic',
@hongry18
hongry18 / settings.md
Last active February 7, 2022 21:11
typescript, eslint (airbnb style guide), prettier ON vscode
@hongry18
hongry18 / compile_php_5.2.17_Ubuntu_14.04.sh
Created June 11, 2020 00:47 — forked from deanet/compile_php_5.2.17_Ubuntu_14.04.sh
Install NGINX AND PHP 5.2.17 WITH PATCH FPM 0.5.14
apt-get update
apt-get install -y gcc make build-essential \
libxml2-dev libcurl4-openssl-dev libpcre3-dev libbz2-dev libjpeg-dev \
libpng12-dev libfreetype6-dev libt1-dev libmcrypt-dev libmhash-dev \
freetds-dev libmysqlclient-dev unixodbc-dev \
libxslt1-dev
mkdir -pv /usr/include/freetype2/freetype
ln -sf /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h
wget -c -t 3 -O ./php-5.2.17.tar.gz http://museum.php.net/php5/php-5.2.17.tar.gz
@hongry18
hongry18 / python.matplotlib.custom.font.py
Created September 9, 2019 03:39
using matplotlib custom font in python
#!/bin/python
import matplotlib as mpl
import matplotlib.font_manager as font_manager
font_dirs = ['/my/custom/font/dir', ]
font_files = font_manager.findSystemFonts(fontpaths=font_dirs)
font_list = font_manager.createFontList(font_files)
font_manager.fontManager.ttflist.extend(font_list)
mpl.rcParams['axes.unicode_minus'] = False
@hongry18
hongry18 / redis.install.on.centos7.md
Last active August 27, 2019 05:55
redis.install.on.centos7.md

install ffmpeg on Mac 14

dependencies

  • pkg-config
  • freetype2
  • fribidi
  • libass
  • x264

pkg-config

OpenCV install in mac

install homebrew

install requirements

brew install python3
brew install cmake
@hongry18
hongry18 / gdb-osx-mojave.md
Created June 18, 2019 06:28
gdb install guid with brew

brew install gdb

generate keychain gdb-cert

vi gdb-gdb-entitlement.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">