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

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