This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove ad link on u.gg | |
// @version 1.0 | |
// @match https://u.gg/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# scriptname short desc | |
# chkconfig: - 80 20 | |
# description: long description | |
# processname: scriptname | |
# Source function library. | |
. /etc/rc.d/init.d/functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove openrec comment | |
// @version 1.1 | |
// @description Openrecのコメント欄を消す | |
// @author YUKI Kaoru | |
// @match https://www.openrec.tv/live/* | |
// @grant none | |
// ==/UserScript== | |
(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitch carousel auto pause | |
// @version 1.4 | |
// @description Twitchトップページの自動再生を自動停止する | |
// @author YUKI Kaoru | |
// @match https://www.twitch.tv/* | |
// @grant none | |
// ==/UserScript== | |
function pauseVideo() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace example; | |
class Foo | |
{ | |
public function hoge() | |
{ | |
return "{$this->fuga()}"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
{ |
NewerOlder