Skip to content

Instantly share code, notes, and snippets.

@ko-zu
ko-zu / dns.py
Created September 13, 2013 08:11 — forked from johnboxall/dns.py
# http://notmysock.org/blog/hacks/a-twisted-dns-story.html
# http://blog.inneoin.org/2009/11/i-used-twisted-to-create-dns-server.html
# twistd -y dns.py
import socket
from twisted.internet.protocol import Factory, Protocol
from twisted.internet import reactor
from twisted.names import dns
from twisted.names import client, server
@ko-zu
ko-zu / dnsfuzz.py
Created September 13, 2013 08:14 — forked from santa4nt/dnsfuzz.py
# http://notmysock.org/blog/hacks/a-twisted-dns-story.html
# https://gist.github.com/johnboxall/1147973
# twistd -y dnsfuzz.py
import sys
import socket
from twisted.python import log
from twisted.internet.protocol import Factory, Protocol
from twisted.internet import reactor
@ko-zu
ko-zu / iptcheck.py
Last active November 16, 2018 02:07
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2014 ko-zu <causeless@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@ko-zu
ko-zu / file0.ini
Last active August 29, 2015 14:19
systemdでmount完了を待ってサービスを起動する ref: http://qiita.com/ko-zu/items/3759144c53904afe6b76
# /etc/systemd/system/smb.service.d/requiremount.conf
[Unit]
RequiresMountsFor=/mountpoint
RequiresMountsFor=/anothermountpoint
@ko-zu
ko-zu / dmesg-20210523153026
Last active May 23, 2021 07:49
dmesg: btrfs fi resize 8:-40G /nas
[ 0.000000] Linux version 5.11.21-300.fc34.x86_64 (mockbuild@bkernel01.iad2.fedoraproject.org) (gcc (GCC) 11.1.1 20210428 (Red Hat 11.1.1-1), GNU ld version 2.35.1-41.fc34) #1 SMP Fri May 14 17:43:38 UTC 2021
[ 0.000000] Command line: BOOT_IMAGE=(hd0,msdos1)/vmlinuz-5.11.21-300.fc34.x86_64 root=/dev/mapper/fedora_micro-root ro rd.lvm.lv=fedora_micro/swap rd.md=0 rd.dm=0 vconsole.keymap=jp106 rd.lvm.lv=fedora_micro/root rd.luks=0 vconsole.font=latarcyrheb-sun16 rhgb quiet crashkernel=auto
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009e7ff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009e800-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e2000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000d7f8ffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000d7f9e000-0x00000000d7f9ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x000000
@ko-zu
ko-zu / disableAAC.reg
Created August 14, 2023 02:12 — forked from hacker1024/disableAAC.reg
Disable AAC Bluetooth audio codec in Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BthA2dp\Parameters]
"BluetoothAacEnable"=dword:00000000