Skip to content

Instantly share code, notes, and snippets.

🍺
🍶

Kazuki Hashimoto eru

🍺
🍶
Block or report user

Report or block eru

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View clear-kernel-cache.sh
#! /bin/sh
#
# clear-kernel-cache.sh
# Copyright (C) 2016 Kazuki Hashimoto <eru.tndl@gmail.com>
#
# Distributed under terms of the MIT license.
#
sudo rm -r /System/Library/Caches/com.apple.kext.caches
sudo touch /System/Library/Extensions
View php_functions.snip
snippet abs
abbr number 絶対値
options word
abs($${1:number})${0}
snippet acos
abbr float 逆余弦(アークコサイン)
options word
acos($${1:arg})${0}
View metro.diff
--- metro.css.orig 2016-10-13 20:35:32.000000000 +0900
+++ metro.css 2016-10-13 20:47:58.000000000 +0900
@@ -197,22 +197,22 @@
.view_history td:first-child{max-height:calc(100% - 1.1em);}
/* レス */
-.view_bookmark td:nth-child(2),
+.view_bookmark td:nth-child(3),
.view_board td:nth-child(3){margin-top:3px;}
.view_search td:nth-child(4){width:50%;margin-bottom:-1.3em;}
View check-record.sh
#! /bin/sh
#
# check-mx-record.sh
# Copyright (C) 2016 Kazuki Hashimoto <eru.tndl@gmail.com>
#
# Distributed under terms of the MIT license.
#
# e.g.
# ./check-mx-record.sh ns DOMAIN_LIST
# DOMAIN_LIST sample file: https://gist.github.com/b5a86150f98b3d6102d5608878ca53f0
View relative_time.php
<?php
/**
* Short description for relative_time.php
*
* @package relative_time
* @author Kazuki Hashimoto <eru.tndl@gmail.com>
* @version 0.1
* @copyright (C) 2016 Kazuki Hashimoto <eru.tndl@gmail.com>
* @license MIT
*/
View playercorefactory.xml
<playercorefactory>
<players>
<player name="VLC" type="ExternalPlayer" audio="true" video="true">
<filename>/Applications/VLC.app/Contents/MacOS/VLC</filename>
<args>--rate 2.0 --video-on-top --play-and-exit</args>
<hidexbmc>true</hidexbmc>
</player>
</players>
<rules action="prepend">
<rule name="VLC" video="true" player="VLC">
View vmblock-kernel4.4.6-fc23.patch
diff --git linux/control.c linux/control.c
index 79716bd..2815f4f 100644
--- linux/control.c
+++ linux/control.c
@@ -208,9 +208,11 @@ SetupProcDevice(void)
VMBlockSetProcEntryOwner(controlProcMountpoint);
/* Create /proc/fs/vmblock/dev */
- controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
- VMBLOCK_CONTROL_MODE,
View build-nginx-rpm-fedora.sh
#!/bin/sh
# set PKGCMD
PKGCMD="yum"
if type dnf >/dev/null 2>&1; then
PKGCMD="dnf"
fi
# check root user
if [ ${EUID:-${UID}} != 0 ]; then
View fix-vmware-workstation12.1.0.3272444-on-kernel4.x.sh
#!/bin/sh
## VMware Workstation 12.1.0.3272444
## kernel: 4.3.5-300.fc23.x86_64
cd /usr/lib/vmware/modules/source
find . -type f -name \*.tar -exec cp {}{,.orig} \;
find . -type f -name \*.tar -exec tar xf {} \;
curl -O https://communities.vmware.com/servlet/JiveServlet/download/2576100-151611/b-c.patch.zip && \
unzip b-c.patch.zip && rm -f b-c.patch.zip
You can’t perform that action at this time.