Skip to content

Instantly share code, notes, and snippets.

View junichi11's full-sized avatar
🇯🇵

Junichi Yamamoto junichi11

🇯🇵
View GitHub Profile
@nojimage
nojimage / xdebug-3-upgrade-guide.ja.md
Last active December 29, 2020 00:26
Xdebug 3 アップグレードガイド

Xdebug 3 アップグレードガイド

原文: https://xdebug.org/docs/upgrade_guide

Xdebug 2 から 3 へのアップグレード

An upgrade guide detailing which changes there are between Xdebug 2 and 3, and how to reconfigure your set-up to do similar things.

このアップグレードガイドは、Xdebug 2から3への変更点と、同様のことを行うようにセットアップを再構成する方法を詳しく説明します。

@mtei
mtei / helix_keyboard_build_tool_memo.md
Last active August 24, 2023 08:19
キーボード自作、特に Helix キーボードキットの製作に最低必要な工具のメモ
@kazuho
kazuho / git-blame-pr.pl
Last active June 28, 2022 07:15
git-blame by PR #
#! /usr/bin/perl
#
# Written in 2017 by Kazuho Oku
#
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
#
use strict;
use warnings;
@lukas-h
lukas-h / license-badges.md
Last active April 21, 2024 09:35
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@nojimage
nojimage / phpunit-for-cakephp.sh
Last active August 29, 2015 14:02
Custom PHPUnit script for CakePHP on NetBaeans 8.0
#!/usr/bin/env bash
##
#
# Custom PHPUnit script for CakePHP on NetBaeans 8.0
#
# @author Takashi Nojima [http://php-tips.com]
# @copyright 2014 Takashi Nojima
##
PROJECT_ROOT=$(cd "$(dirname "$(dirname "$0")")" && pwd)
@nojimage
nojimage / phpunit.sh
Last active August 29, 2015 13:57
Custom phpunit script for NetBeans 8.0
#!/usr/bin/env bash
export PATH="$HOME/.phpenv/bin:/opt/local/bin:$PATH"
eval "$(phpenv init -)"
args=""
while [ "$1" != "" ] ; do
arg=$1
if [[ $arg =~ NetBeansSuite.php && -f $(pwd)/nbproject/NetBeansSuite.php ]] ; then
# Change custom NetBeansSuite path
arg=$(pwd)/nbproject/NetBeansSuite.php
@wokamoto
wokamoto / gist:8841077
Last active August 12, 2017 00:44
[WordPress][Backlog API] CF7 to Backlog
<?php
/*
Plugin Name: WP CF7 to Backlog
Plugin URI:
Description:
Author: wokamoto
Version: 0.0.1
*/
include_once( ABSPATH . WPINC . '/class-IXR.php' );
@nojimage
nojimage / phpunit.php
Last active December 29, 2015 10:19
netbeans custom phpunit script
#!/usr/bin/env php
<?php
$paths = array(
PHP_BINDIR,
'/usr/local/phpenv/shims',
getenv('PATH')
);
putenv('PATH=' . join(PATH_SEPARATOR, $paths));
array_shift($argv);
@nojimage
nojimage / bake-composer.sh
Last active December 25, 2015 18:49
ComposerでインストールしたCakePHPからプロジェクトを生成して、CAKE_CORE_INCLUDE_PATHの相対パス化とautoloaderの読込み。
#!/usr/bin/env bash
Vendor/bin/cake bake project --empty -v app
# replace include_path
replace="s/define('CAKE_CORE_INCLUDE_PATH',.*$/define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib');/"
sed -i .orig -e "$replace" app/webroot/index.php app/webroot/test.php
## # replace console path, if CakePHP < 2.5
@andyferra
andyferra / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {