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
- CVE-2014-6271 ✔ | |
- CVE-2014-7169 ✔ | |
- CVE-2014-7186 ✔ | |
- CVE-2014-7187 ? | |
- CVE-2014-6277 ✔ | |
- CVE-2014-6278 ✔ |
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
$ sudo patch -b -p0 < Reader.html.patch |
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/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import division | |
from __future__ import print_function | |
# n: the continuous count of days since March first in 1 B.C. proleptic Gregorian | |
# date = (year, month, day) in the proleptic Gregorian calendar | |
# ymd = (y, m, d); modified date in the proleptic Gregorian calendar (see date2ymd() below) |
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
$ ./neighbors.py -n 10000 | |
[[0, 69, 1720, 7675, 8172, 9198], [1, 1167, 4385, 5063, 7716, 9184], [2, 2129, 4849, 7180], [3, 374, 753, 1039, 1506, 3230, 7188, 7433], [4, 2836, 4777, 7088, 9563], [5, 2936], [6, 9214, 9839], [7, 3288, 3762, 8710]] |
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/ruby | |
require 'yaml' | |
$prompt = "% " | |
$commands_to_be_checked_yml = <<EOS | |
"": | |
- "uname -a" | |
- "sw_vers" | |
- "hostinfo" | |
- "mdimport -L" |
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
$ go run json2str.go "{\"key\": {\"country\": \"日本\", \"n\": 0}, \"values\": [1,2]}" | |
{"key":{"country":"日本","n":0},"values":[1,2]} |
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
$ wget http://download.geofabrik.de/asia/japan-latest.osm.bz2 | |
$ go run goosm.go -f japan-latest.osm.bz2 -db osm | |
[6時間以上かかった] | |
$ mongo osm_ways | |
MongoDB shell version: 3.0.1 | |
connecting to: osm_ways | |
> show dbs | |
local 0.000GB | |
osm_nodes 5.479GB |
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
$ cat points.json | |
{ | |
"type": "FeatureCollection", | |
"features": [ | |
{ | |
"type": "Feature", | |
"geometry": { | |
"type": "Point", | |
"coordinates": [139.710001, 35.690283] | |
}, |
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/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import numpy as np | |
import sklearn.cluster | |
from scipy import spatial | |
def dbscandepth(neigh, minp): | |
ilabel = 0 |
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
<script src='http://ukyo.github.io/jsziptools/jsziptools.js'></script> | |
<script> | |
function readFile(aFile) { | |
var gzipped = getSuffix(aFile.name, 'gz')['compression']; | |
var reader = new FileReader(); | |
reader.onload=function(e){ | |
var result = reader.result; | |
if (gzipped) {result = gzipd(result);} | |
handleTextContent(result); // result を処理する関数 | |
}; |