Skip to content

Instantly share code, notes, and snippets.

View YJSoft's full-sized avatar
💻
I may be slow to respond.

YJSoft YJSoft

💻
I may be slow to respond.
View GitHub Profile
@YJSoft
YJSoft / htaccess_router.php
Created February 16, 2022 00:43 — forked from aenglander/htaccess_router.php
PHP .htaccess router for built in web server
<?php
if (file_exists($_SERVER['SCRIPT_FILENAME'])) {
return false;
}
$_SERVER['DOCUMENT_ROOT'] = empty($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['PWD'] . '/www' : $_SERVER['DOCUMENT_ROOT'];
$htaccess = $_SERVER['DOCUMENT_ROOT'] . '/.htaccess';
$rewrites = array();
if (file_exists($htaccess)) {
$fp = fopen($htaccess, "r");
@YJSoft
YJSoft / fixcloudflare.php
Last active April 9, 2021 03:56 — forked from kijin/fixcloudflare.php
CloudFlare 사용시 실제 방문자 IP 및 SSL 사용 여부 파악
<?php
/**
* CloudFlare 사용시 실제 방문자 IP 및 SSL 사용 여부를
* 정확하게 파악하지 못하는 문제를 해결하는 클래스
* 웹서버에 mod_cloudflare를 설치하기 곤란한 경우 사용한다
*
* Written by 기진곰 <kijin@kijinsung.com>
* License: Public Domain
*
@YJSoft
YJSoft / rpi_opencv_install.sh
Last active October 24, 2018 01:58 — forked from jbienkowski311/rpi_opencv_install.sh
OpenCV 3.4.3 installation script for Raspberry Pi (Raspbian Jessie)
#!/bin/bash
# full update
sudo apt-get update
sudo apt-get -y upgrade
# sudo rpi-update
# reboot required
read -r -p "You may need to reboot your RPi. Would you like to do that? [y/N] " response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]
then

Keybase proof

I hereby claim:

  • I am YJSoft on github.
  • I am yjsoft (https://keybase.io/yjsoft) on keybase.
  • I have a public key whose fingerprint is 6A59 3D2E E326 E5F7 37C0 AD43 914D B814 D0EF 35BE

To claim this, I am signing this object:

@YJSoft
YJSoft / License.md
Last active January 9, 2016 13:52
Contributor license agreements for LoginXE Project

#Contributor Agreement #Individual Contributor Non-Exclusive License Agreement #including the Patent Pledge OPTION Thank you for your interest in contributing to LoginXE Project ("We" or "Us").

The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://cla-assistant.io/YJSoft/xe-module-loginxeserver.

##1. DEFINITIONS "You" means the Individual Copyright owner who submits a Contribution to Us. If You are an employee and submit the Contribution as part of your employment, You have had Your employer approve this Agreement or sign the Entity version of this document.

@YJSoft
YJSoft / github.lib.php
Last active September 12, 2015 12:44
The github library of the socialxe module
<?php
/**
* @class libraryGithub
* @author YJSoft (http://yjsoft.pe.kr)
* @brief The github library of the socialxe module
*/
const GITHUB_OAUTH2_URI = 'https://github.com/login/oauth/';
const GITHUB_API_URI = 'https://api.github.com/';

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA