Skip to content

Instantly share code, notes, and snippets.

View happydeveloper's full-sized avatar
🎯
Focusing

DU RU KANG happydeveloper

🎯
Focusing
  • duru
  • seoul, korea
View GitHub Profile
@rkttu
rkttu / Program.cs
Last active April 5, 2024 22:34
GPT Prompt Builder
using System;
using System.Globalization;
public static class Program
{
private static void Main()
{
var prompt = string.Empty;
prompt = Prompt
@happydeveloper
happydeveloper / multiple_ssh_setting.md
Created September 16, 2018 13:41 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@happydeveloper
happydeveloper / pthreads.md
Created July 7, 2016 12:51 — forked from krakjoe/pthreads.md
pthreads.md

Multi-Threading in PHP with pthreads

A Brief Introduction to Multi-Threading in PHP

  • Foreword
  • Execution
  • Sharing
  • Synchronization
  • Pitfalls
wordsChunk = document.getElementsByTagName('body')[0].innerText.split(' ')
wordSortTable = {};
for(i = 0; i < wordsChunk.length; i++){
wordSortTable[wordsChunk[i]] = wordSortTable[wordsChunk[i]] == undefined ? 1 : wordSortTable[wordsChunk[i]]+1;
}
wordSort = []
for(var name in wordSortTable){
if(name.length == 1 && name.match(/\W/g))
continue;
wordSort.push([name, wordSortTable[name]]);
@composite
composite / jumin.js
Last active December 20, 2023 09:22
주민등록번호 생성기 (주민번호 로직 들어가는 양식 테스트용. 개발 외 목적 사용 금지, 이 프로그램 사용에 대한 법적 책임 일체 없음.)
/**
* 주민번호 생성기
* 사용예) jumin()
* jumin({year:1990, month:3, day: 12, loop: 10}); //1990년 3월 12일생 10개 주민번호 생성.
* 확인예) jumin.verify(확인할 주민번호) 확인할 주민번호는 - 있어도 없어도 무관. 13자리만 맞추면 .
* @param {object} options 옵션
* year: 년도, 값으면 랜덤
* month: , 값이면 랜덤
* day: , 값이면 랜덤
* loop: 생성개수, 값이면 1 생성.
@janikvonrotz
janikvonrotz / Install Ghost Blog.md
Created January 21, 2014 15:20
Step by Step: Install Ghost Blog #Ghost #Ubuntu #Markdown #Nginx #Node.js #AmazonAWS

Finishing this guide you'll get:

  • A running Ghost installation
  • Amazon SES mail configuration
  • Simple ssh hardenings
  • Nginx proxy
  • Node.js configured with forever

Specification of latest running installation:

@happydeveloper
happydeveloper / memoryUsage.cs
Created October 10, 2013 11:33
원도우 계열 운영체제 - 닷넷이 설치되어 있는 컴퓨터 닷넷 2.0 동작 메모리 사용량 체크
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;
namespace memoryUsage
{
class Program
@krakjoe
krakjoe / pthreads.md
Last active August 30, 2023 18:30
pthreads.md

Multi-Threading in PHP with pthreads

A Brief Introduction to Multi-Threading in PHP

  • Foreword
  • Execution
  • Sharing
  • Synchronization
  • Pitfalls