Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env perl
use strict;
use warnings;
use 5.010_000;
use utf8;
use Config;
use T;
use threads;
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import os
import click
from pathlib import Path
CONTEXT_SETTINGS = {
'ignore_unknown_options': True,
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from sqlathanor import declarative_base, Column, relationship
from sqlalchemy import create_engine, Integer, String, Sequence, ForeignKey
from sqlalchemy.orm import sessionmaker
Base = declarative_base()
@hirose31
hirose31 / README.md
Last active September 7, 2018 06:14
nested map

お題

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

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
<details>
<summary>押してみそ?</summary>
な?
```pl
use strict;
```
どう?
</details>
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import logging.handlers
import freezegun
import time
import os
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import threading
import time
descriptors = list()
mount_points = list()
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;
#!/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 June 12, 2016 11:18
failed live migration w/ LXD 2.0
$ 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