Skip to content

Instantly share code, notes, and snippets.

:octocat:
Slowly becoming a neko

Kazuki Yamaguchi rhenium

:octocat:
Slowly becoming a neko
View GitHub Profile
View chromium.diff
diff --git a/components/url_formatter/url_formatter.cc b/components/url_formatter/url_formatter.cc
index 047ab69bf7ae..bd58042b4e60 100644
--- a/components/url_formatter/url_formatter.cc
+++ b/components/url_formatter/url_formatter.cc
@@ -462,14 +462,14 @@ bool IDNToUnicodeOneComponent(const base::char16* comp,
} // namespace
const FormatUrlType kFormatUrlOmitNothing = 0;
-const FormatUrlType kFormatUrlOmitUsernamePassword = 1 << 0;
-const FormatUrlType kFormatUrlOmitHTTP = 1 << 1;
View gist:47938183f9b9bfa458ce152319697abe
diff --git a/Makefile b/Makefile
index d0657aaea0f5..cf72ad5d9c7d 100644
--- a/Makefile
+++ b/Makefile
@@ -196,7 +196,8 @@ progs = $(progs_install) btrfsck btrfs-corrupt-block
progs_install = btrfs mkfs.btrfs btrfs-debug-tree \
btrfs-map-logical btrfs-image btrfs-zero-log \
btrfs-find-root btrfstune \
- btrfs-select-super
+ btrfs-select-super \
View a.c
void
sfunc(int room)
{
if (room)
go();
}
void
func(int argc)
{
View 0001-Add-a-rake-task-to-install-testing-dependencies.patch
From e7c0f184530fa3f056ac2939793797fff9d5448e Mon Sep 17 00:00:00 2001
From: Kazuki Yamaguchi <k@rhe.jp>
Date: Wed, 26 Oct 2016 18:29:09 +0900
Subject: [PATCH] Add a rake task to install testing dependencies
Extracted from tool/ruby-openssl-docker/init.sh. Parse the dependency
gems from openssl.gemspec and install them.
---
Rakefile | 22 ++++++++++++++++++----
tool/ruby-openssl-docker/init.sh | 11 +----------
View gist:2a36cee51612a1b44563052b6daec077
import java.math.BigInteger;
import java.security.KeyFactory;
import java.security.Signature;
import java.security.interfaces.*;
import java.security.spec.DSAPrivateKeySpec;
import java.security.spec.RSAPrivateKeySpec;
import org.bouncycastle.jce.spec.*;
import org.bouncycastle.jce.*;
import java.util.Base64;
View gist:f6f1bf30a7c7c946ed0f23342b511b45
root@archiso ~/btrfs-progs/target/bin (git)-[master] # gdb --args ./btrfs-debug-tree -b 154647527424 /dev/sdc
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
View gist:1aabe07c729fa8fa50a59ba465760cf1
[4575981.724436] BTRFS warning (device sdd): csum failed ino 4026619 off 1679110144 csum 1020158818 expected csum 89181750
[4575981.779455] BTRFS warning (device sdd): csum failed ino 4026619 off 1679110144 csum 1020158818 expected csum 89181750
[4575981.796494] BTRFS warning (device sdd): csum failed ino 4026619 off 1679110144 csum 1020158818 expected csum 89181750
[4575981.832603] BTRFS warning (device sdd): csum failed ino 4026619 off 1679110144 csum 1587196673 expected csum 89181750
[4776329.360108] BTRFS warning (device sda): csum failed ino 210744 off 168673280 csum 2350653862 expected csum 3045231858
[4776329.365327] BTRFS warning (device sda): csum failed ino 210744 off 168673280 csum 2350653862 expected csum 3045231858
[4776329.372411] BTRFS warning (device sda): csum failed ino 210744 off 168673280 csum 3419420001 expected csum 3045231858
[4776331.069572] BTRFS warning (device sda): csum failed ino 210744 off 168673280 csum 2350653862 expected csum 3045231858
[4776331.069645] BTRFS warning (device s
View tsp_visualize.rb
# usage:
#
# gem install rb-inotify
# ruby tsp_visualize.rb tech30000.{in,out}
require "tk"
require "rb-inotify"
RADIUS = 400
canvas = TkCanvas.new do |c|
View memory.max_usage.diff
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 36db05f..be54063 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4942,6 +4942,14 @@ static u64 memory_current_read(struct cgroup_subsys_state *css,
return (u64)page_counter_read(&memcg->memory) * PAGE_SIZE;
}
+static u64 memory_max_usage_read(struct cgroup_subsys_state *css,
+ struct cftype *cft)
@rhenium
rhenium / git.diff
Created Mar 18, 2016
git branch -m が worktree の HEAD を更新するようになる diff
View git.diff
diff --git a/builtin/branch.c b/builtin/branch.c
index 7b45b6b..07b7afb 100644
--- a/builtin/branch.c
+++ b/builtin/branch.c
@@ -20,6 +20,7 @@
#include "utf8.h"
#include "wt-status.h"
#include "ref-filter.h"
+#include "worktree.h"
You can’t perform that action at this time.