Skip to content

Instantly share code, notes, and snippets.

View README.md

お題

こういうデータを処理して

eth0
  link/ether 00:00:00:00:00:00
  inet 192.168.0.1 brd 192.168.0.255
eth1
  link/ether 11:11:11:11:11:11
View expand me!
<details>
<summary>押してみそ?</summary>
な?
```pl
use strict;
```
どう?
</details>
View stamped-filehandler.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import logging.handlers
import freezegun
import time
import os
View diskpart.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import threading
import time
descriptors = list()
mount_points = list()
View use-tls11.diff
diff --git a/lib/Net/SSL/ExpireDate.pm b/lib/Net/SSL/ExpireDate.pm
index b2492ba..5ba1aef 100644
--- a/lib/Net/SSL/ExpireDate.pm
+++ b/lib/Net/SSL/ExpireDate.pm
@@ -249,7 +249,7 @@ sub _send_client_hello {
## ClientHello
# client_version
- push @buf, 3, 3;
+ push @buf, 3, 2;
View data-validator-nothrow.pl
#!/usr/bin/env perl
# Time-stamp: <2016-06-30 22:05:57 JST, hirose31>
use strict;
use warnings;
use 5.010_000;
use utf8;
use Data::Validator;
@hirose31
hirose31 / lxc-move.log
Last active Jun 12, 2016
failed live migration w/ LXD 2.0
View lxc-move.log
$ lxc move --debug u161:u1 u162:u1
...
DBUG[04-28|19:46:57] 1.0/operations/0ff5d006-5c1e-4316-b73b-e14c15cbeb6e/wait
DBUG[04-28|19:47:13] Raw response: {"type":"sync","status":"Success","status_code":200,"metadata":{"id":"0ff5d006-5c1e-4316-b73b-e14c15cbeb6e","class":"task","created_at":"2016-04-28T19:46:57.675309701+09:00","updated_at":"2016-04-28T19:46:57.675309701+09:00","status":"Failure","status_code":400,"resources":{"containers":["/1.0/containers/u1"]},"metadata":null,"may_cancel":false,"err":"Error transferring container data: checkpoint failed:\n(00.000951) Error (sockets.c:129): Diag module missing (-2)\n(00.001681) Error (sockets.c:129): Diag module missing (-2)\n(00.002459) Error (sockets.c:129): Diag module missing (-2)\n(00.021356) Error (cr-dump.c:1600): Dumping FAILED."}}
error: Error transferring container data: checkpoint failed:
(00.000951) Error (sockets.c:129): Diag module missing (-2)
(00.001681) Error (sockets.c:129): Diag module missing (-2)
(00.002459) Error (sockets.c:129): Diag mod
View dv.pl
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010_000;
use Data::Validator;
use Time::Piece;
say 'Perl: ', $^V;
View getaddrinfo.rb
#!/usr/bin/env ruby
require 'socket'
$stdout.sync = true
$stderr.sync = true
@lock = Mutex.new
def main
View private.xml
<?xml version="1.0"?>
<!-- http://blog.glidenote.com/blog/2014/08/06/custom-keybind-for-slack/ -->
<root>
<appdef>
<appname>SLACK</appname>
<equal>com.tinyspeck.slackmacgap</equal>
</appdef>
<item>
<name>Slack keyboard shortcut like LimeChat</name>
<identifier>private.app_slack_like_limechat</identifier>