Skip to content

Instantly share code, notes, and snippets.

View sangheonhan's full-sized avatar
πŸ€”
Minimalizing...

Sangheon Han sangheonhan

πŸ€”
Minimalizing...
View GitHub Profile
@sos4nt
sos4nt / xterm-256color-italic.terminfo
Created July 27, 2012 12:13
A xterm-256color based TERMINFO that adds the escape sequences for italic
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=xterm-256color-italic
#
@shawnbot
shawnbot / xterm-256color.md
Last active March 22, 2024 16:26
Make OS X Terminal respect 256 colors in screen

1. Ensure that Terminal declares itself as "xterm-256color"

Under Terminal > Preferences... > (Profile) > Advanced, "Declare terminal as:" should be set to xterm-256color.

2. Build a version of screen that supports 256 colors

This is easy with homebrew:

brew install screen
@ck-on
ck-on / ocp.php
Last active March 14, 2025 08:34
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
@prime31
prime31 / gist:5675017
Last active September 9, 2024 04:24
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@willurd
willurd / web-servers.md
Last active May 18, 2025 17:06
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@krakjoe
krakjoe / pthreads.md
Last active September 24, 2024 14:50
pthreads.md

Multi-Threading in PHP with pthreads

A Brief Introduction to Multi-Threading in PHP

  • Foreword
  • Execution
  • Sharing
  • Synchronization
  • Pitfalls
@rxaviers
rxaviers / gist:7360908
Last active May 19, 2025 04:38
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:
@nacyot
nacyot / 2013-03-04-ruby-trivias-you-should-know-4.md
Last active April 23, 2025 00:36
μ•Œμ•„λ‘λ©΄ 도움이 λ˜λŠ” 55κ°€μ§€ 루비 기법

μ•Œμ•„λ‘λ©΄ 도움이 λ˜λŠ” 55κ°€μ§€ 루비 기법

RubyλŠ” 즐거운 μ–Έμ–΄μž…λ‹ˆλ‹€. Rubyλ₯Ό μ‚¬μš©ν•˜λ‹€λ³΄λ©΄ 맀뉴얼에도 λ‚˜μ™€μžˆμ§€ μ•Šμ€ 'μž‘μ€ 발견'을 λ§Œλ‚˜κ²Œ λ©λ‹ˆλ‹€. μ΄λŸ¬ν•œ '발견'은 ν”„λ‘œκ·Έλž¨μ˜ μ§ˆμ΄λ‚˜

@XVilka
XVilka / TrueColour.md
Last active April 27, 2025 10:17
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@kijin
kijin / rsa_encrypt.php
Created January 23, 2014 04:55
PHPμ—μ„œ RSA κ°œμΈν‚€/κ³΅κ°œν‚€ 쑰합을 μ‚¬μš©ν•˜μ—¬ μ„œλ²„μ— λΉ„λ°€λ²ˆν˜Έλ₯Ό μ €μž₯ν•  ν•„μš” 없이 λ¬Έμžμ—΄μ„ μ•”ν˜Έν™”ν•˜λŠ” 법
<?php
// λΉ„λŒ€μΉ­ μ•Œκ³ λ¦¬λ“¬μΈ RSAλ₯Ό μ‚¬μš©ν•˜μ—¬ λ¬Έμžμ—΄μ„ μ•”ν˜Έν™”ν•˜λŠ” 법.
// κ°œμΈν‚€ λΉ„λ°€λ²ˆν˜ΈλŠ” μ•”ν˜Έν™”ν•  λ•ŒλŠ” ν•„μš”μ—†κ³  λ³΅ν˜Έν™”ν•  λ•Œλ§Œ μž…λ ₯ν•˜λ©΄ λ˜λ―€λ‘œ
// μ„œλ²„μ— μ €μž₯ν•  ν•„μš” 없이 κ·Έλ•Œκ·Έλ•Œ κ΄€λ¦¬μžκ°€ μž…λ ₯ν•˜λ„λ‘ 해도 λœλ‹€.
// PHP 5.2 이상, openssl λͺ¨λ“ˆμ΄ ν•„μš”ν•˜λ‹€.
// RSA κ°œμΈν‚€, κ³΅κ°œν‚€ 쑰합을 μƒμ„±ν•œλ‹€.
// ν‚€ μƒμ„±μ—λŠ” μ‹œκ°„μ΄ 많이 κ±Έλ¦¬λ―€λ‘œ, ν•œ 번만 μƒμ„±ν•˜μ—¬ μ €μž₯ν•΄ 두고 μ‚¬μš©ν•˜λ©΄ λœλ‹€.
// 단, λΉ„λ°€λ²ˆν˜ΈλŠ” κ°œμΈν‚€λ₯Ό μ‚¬μš©ν•  λ•Œλ§ˆλ‹€ ν•„μš”ν•˜λ‹€.