Skip to content

Instantly share code, notes, and snippets.

View landzz's full-sized avatar

landzz landzz

  • seoul south korea
View GitHub Profile
@landzz
landzz / database_dump_for_mysql.php
Last active February 16, 2023 09:04
php database dump tool for mysql
<?php
/**
* php database dump tool for mysql
* @author https://github.com/landzz
* @version 0.1
*/
error_reporting(E_ALL ^ E_NOTICE);
@set_time_limit(0);
@landzz
landzz / js.stx
Created October 20, 2022 09:22 — forked from camille-hdl/js.stx
ES6-friendly EditPlus syntax file
#TITLE=JavaScript
; JavaScript syntax file written by ES-Computing, edited by https://github.com/Eartz/ based on ECMA-262 6th Edition / Draft April 3, 2015.
; This file is required for EditPlus to run correctly.
#DELIMITER=,(){}[]-+*%/="'`~!&|<>?:;.
#QUOTATION1='
#QUOTATION2="
#QUOTATION3=`
#LINECOMMENT=//
#LINECOMMENT2=
@landzz
landzz / curl.post.multipart.php
Created June 8, 2018 06:52
php curl post with file (multipart)
<?php
if ( ! function_exists('getCurlPostwithFile')){
function getCurlPostwithFile($_url='', $_param=array(), $_file_name=array()){
if($_url !=''){
ini_set("memory_limit", "512M");
$_file_data = array();
foreach ($_file_name as $_key => $_val){
@landzz
landzz / curl.post.php
Created June 8, 2018 06:43
php curl post function
<?php
if ( ! function_exists('getCurlPost')){
function getCurlPost($_url='', $_param=array()){
if($_url !=''){
ini_set("memory_limit", "512M");
$_headers = array(
"Content-Type: application/x-www-form-urlencoded; charset=utf-8"
);
$curlObj = curl_init();
@landzz
landzz / curl.get.php
Last active June 8, 2018 06:39
php curl get function
<?php
if ( ! function_exists('getCurlGet')){
function getCurlGet($_url='', $_param=array()){
if($_url !=''){
$curlObj = curl_init();
curl_setopt($curlObj, CURLOPT_URL, $_url.'?'.http_build_query($_param) );
//curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, false);
//curl_setopt($curlObj, CURLOPT_SSLVERSION, 1);
//curl_setopt($curlObj, CURLOPT_POST, true);
curl_setopt($curlObj, CURLOPT_HEADER, true);
@landzz
landzz / ExecuteAppOrGoStore.html
Created June 15, 2016 05:21 — forked from seongchan/ExecuteAppOrGoStore.html
Execute App at Mobile WebPage
<!--
2015.10.29
Hong SeongChan (seongchan116@gmail.com)
-------------------------------------------
모바일 웹 페이에서 개발하고 있는 앱이 실행이 안되길래 샘플코드를 작성해 봄.
이 소스의 전제 조건은 uri scheme 방식이 적용된 앱을 기준으로 한다.
Android 앱의 경우 intent를 이용한 방식을 주로 사용했겠지만, 모바일 웹을 고려한다면 uri scheme을 적용하는게 유리하다.
(웹쪽 코드가 단순해 진다.)
아래 코드는 이러한 전제로 작성되었다.
-->
@landzz
landzz / DirLib.php
Last active February 16, 2023 06:45
php directory explorer
<?php
/**
* php directory explorer
*
* @author https://github.com/landzz
* @version 1.1
* @link https://gist.github.com/landzz/db4037aadd44f89a0cef
* HTTP Digest authentication is added
*/