Skip to content

Instantly share code, notes, and snippets.

View yukikaoru's full-sized avatar

YUKI Kaoru yukikaoru

  • Tokyo/Japan
  • 15:50 (UTC +09:00)
View GitHub Profile
@yukikaoru
yukikaoru / dropbox-ignore.ps1
Created May 13, 2023 11:35
Dropboxの無視ファイルに追加するためのスクリプト
foreach($path in $args) {
if (Test-Path "$path")
{
Write-Host "--- $path is dropbox ignores ---";
Set-Content -Path "$path" -Stream com.dropbox.ignored -Value 1;
}
}
Pause
@yukikaoru
yukikaoru / removeadlinkugg.js
Created November 25, 2018 19:59
u.ggのヘッダーと左枠の広告リンクを潰すgrease monkey
// ==UserScript==
// @name Remove ad link on u.gg
// @version 1.0
// @match https://u.gg/*
// @grant none
// ==/UserScript==
(function() {
'use strict'
@yukikaoru
yukikaoru / init.sh
Created October 24, 2018 08:36
init.d template
#!/bin/bash
#
# scriptname short desc
# chkconfig: - 80 20
# description: long description
# processname: scriptname
# Source function library.
. /etc/rc.d/init.d/functions
@yukikaoru
yukikaoru / 01-vhost.conf
Last active October 12, 2018 04:18
VirtualHost template
<VirtualHost *:80>
ServerName any #12.34.56.78 #anyが使えるらしいがマニュアルで見つからない
DocumentRoot /path/to/root/
CustomLog /var/log/httpd/vhost-access_log combined
ErrorLog /var/log/httpd/vhost-error_log
<Directory /path/to/root/>
Require all granted
Options FollowSymlinks
AllowOverride all
</Directory>
@yukikaoru
yukikaoru / removeopenrecomment.js
Last active August 7, 2019 13:43
Openrecのコメント欄を消す
// ==UserScript==
// @name Remove openrec comment
// @version 1.1
// @description Openrecのコメント欄を消す
// @author YUKI Kaoru
// @match https://www.openrec.tv/live/*
// @grant none
// ==/UserScript==
(() => {
@yukikaoru
yukikaoru / twitchcarouselautopause.js
Last active December 10, 2019 18:12
Twitchトップページのカルーセルの自動再生を自動停止する
// ==UserScript==
// @name Twitch carousel auto pause
// @version 1.4
// @description Twitchトップページの自動再生を自動停止する
// @author YUKI Kaoru
// @match https://www.twitch.tv/*
// @grant none
// ==/UserScript==
function pauseVideo() {
@yukikaoru
yukikaoru / Vagrantfile
Created August 12, 2014 08:06
Template for EC2+Ansible
# vim:set ft=ruby ts=2 sts=2 sw=2:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "dummy"
config.vm.provider :aws do |aws, override|
aws.access_key_id = ""
aws.secret_access_key = ""
aws.keypair_name = ""
diff --git a/Zend/acinclude.m4 b/Zend/acinclude.m4
index 454513f..5a521dc 100644
--- a/Zend/acinclude.m4
+++ b/Zend/acinclude.m4
@@ -12,7 +12,7 @@ AC_DEFUN([LIBZEND_BISON_CHECK],[
bison_version=none
if test "$YACC"; then
AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
- bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
+ bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z`
@yukikaoru
yukikaoru / test.php
Created December 12, 2013 09:20
This sample code is verify that "Unused private method" inspection does not work in PHP Plug-in 133.51
<?php
namespace example;
class Foo
{
public function hoge()
{
return "{$this->fuga()}";
}
@yukikaoru
yukikaoru / test.php
Created October 31, 2013 18:21
Test of binding definitions are duplicate on Ray.Di
<?php
use Ray\Di\AbstractModule;
use Ray\Di\Di\Inject;
use Ray\Di\Injector;
$loader = require __DIR__ . '/vendor/autoload.php';
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader([$loader, 'loadClass']);
class Base
{