This file contains hidden or 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
| RC_AFTER="network-bridge" | |
| RC_NEED="!net net.eth0" |
This file contains hidden or 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
| export GTK_IM_MODULE=fcitx | |
| export QT_IM_MODULE=fcitx | |
| export XMODIFIERS="@im=fcitx" | |
| fcitx-autostart |
This file contains hidden or 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
| --- /usr/portage/www-servers/nginx/metadata.xml 2016-08-15 20:34:53.000000000 +0900 | |
| +++ metadata.xml 2017-05-27 12:08:38.069476300 +0900 | |
| @@ -24,6 +24,7 @@ | |
| <flag name="pcre-jit">Enable JIT for pcre</flag> | |
| <flag name="ssl">Enable HTTPS module for http. Enable SSL/TLS support for POP3/IMAP/SMTP for mail.</flag> | |
| <flag name="rtmp">NGINX-based Media Streaming Server</flag> | |
| + <flag name="mruby">ngx_mruby</flag> | |
| </use> | |
| <upstream> | |
| <changelog>http://nginx.org/en/CHANGES</changelog> |
This file contains hidden or 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
| --- linux-4.9.5-aufs/fs/aufs/branch.c.orig 2017-01-27 09:30:29.423491472 +0900 | |
| +++ linux-4.9.5-aufs/fs/aufs/branch.c 2017-01-27 09:24:23.582978707 +0900 | |
| @@ -250,7 +250,7 @@ | |
| goto out; | |
| } | |
| - if (unlikely(inode->i_sb->s_stack_depth)) { | |
| + if (!inode->i_sb->s_stack_depth && strcmp(au_sbtype(inode->i_sb), "overlay")) { | |
| pr_err("already stacked, %s (%s)\n", | |
| add->pathname, au_sbtype(inode->i_sb)); |
This file contains hidden or 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/sh | |
| [[ $# -eq 0 ]] && exit | |
| VMNAME=$1 | |
| SRC_VG=ssd480g | |
| DST_VG=960GB-RAID1 | |
| echo "Migrating $1..." | |
| xl shutdown -w $VMNAME | |
| xfs_copy -d /dev/$SRC_VG/$VMNAME /dev/$DST_VG/$VMNAME | |
| lvchange --deltag=@wbvm /dev/$SRC_VG/$VMNAME | |
| lvchange --addtag=@wbvm /dev/$DST_VG/$VMNAME |
This file contains hidden or 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/sh | |
| VMNAME=myvm | |
| IMAGE_TAR=image.tar.gz | |
| IMAGE=image:orig | |
| NEW_IMAGE=image:new | |
| docker import $IMAGE_TAR $IMAGE | |
| docker create --privileged --name=$VMNAME --restart=unless-stopped -v $HOME:/home/user -p 5000:80 $IMAGE /sbin/init | |
| docker start $VMNAME | |
| docker exec -ti -u user $VMNAME env TERM=$TERM /bin/bash |
This file contains hidden or 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
| if (isset($_SERVER["HTTP_ORIGIN"])) { | |
| if (parse_url(explode(",",$_SERVER["HTTP_ORIGIN"])[0], PHP_URL_HOST) != $_SERVER["SERVER_NAME"]) { | |
| header("HTTP/1.1 403 Forbidden"); | |
| exit; | |
| } | |
| } | |
| // XHRで必ず呼ばれるはずのリクエストについてはコレも付ける | |
| if (!isset($_SERVER["HTTP_X_REQUESTED_WITH"]) || $_SERVER["HTTP_X_REQUESTED_WITH"] != "XMLHttpRequest") { | |
| header("HTTP/1.1 403 Forbidden"); |
This file contains hidden or 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/sh | |
| mkdir -p clean | |
| for i in $@; do | |
| java -jar atlassian-xml-cleaner-0.1.jar $i > clean/$i | |
| done |
This file contains hidden or 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
| #!/usr/bin/electron | |
| const electron = require('electron'); | |
| const app = electron.app; | |
| var mainWindow = null; | |
| // Quit when all windows are closed. | |
| app.on('window-all-closed', function() { | |
| app.quit(); | |
| }); |
This file contains hidden or 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
| "*": | |
| editor: | |
| fontFamily: "Ricty" | |
| welcome: | |
| showOnStartup: false | |
| "tree-view": | |
| squashDirectoryNames: true |