Skip to content

Instantly share code, notes, and snippets.

View kometchtech's full-sized avatar
🏠
Working from home

kometchtech kometchtech

🏠
Working from home
View GitHub Profile
@kometchtech
kometchtech / office_365_url
Created October 4, 2018 00:56
office365 endpoint
outlook.office.com
outlook.office365.com
smtp.office365.com
r1.res.office365.com
r3.res.office365.com
r4.res.office365.com
xsi.outlook.com
domains.live.com
*.store.core.windows.net
asl.configure.office.com
@kometchtech
kometchtech / stubby.yml
Created May 10, 2018 14:56
stubby config sample
# Specifies whether to run as a recursive or stub resolver
# For stubby this MUST be set to GETDNS_RESOLUTION_STUB
resolution_type: GETDNS_RESOLUTION_STUB
# Ordered list composed of one or more transport protocols:
# GETDNS_TRANSPORT_UDP, GETDNS_TRANSPORT_TCP or GETDNS_TRANSPORT_TLS
# If only one transport value is specified it will be the only transport used.
# Should it not be available basic resolution will fail.
# Fallback transport options are specified by including multiple values in the
# list. Strict mode (see below) should use only GETDNS_TRANSPORT_TLS.
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/spack/spack
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
@kometchtech
kometchtech / checkPublicDNS.sh
Last active January 4, 2018 05:45
Public DNS Server List (to resolv.conf type)
#!/usr/bin/env bash
# Public DNS Server List
# https://public-dns.info/
URL="https://public-dns.info/"
ALL="nameservers.txt"
COUNTRY="jp"
DEST="/etc/coredns"
@kometchtech
kometchtech / dnsperf_install.sh
Last active November 30, 2018 14:42 — forked from hanshasselberg/dnsperf_install.sh
Install dnsperf on ubuntu 16.04
#!/bin/bash
# Installing related packages
sudo apt-get install -y bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev
# Download query sample file
curl -LO ftp://ftp.nominum.com/pub/nominum/dnsperf/data/queryfile-example-current.gz$
# Download dnsperf source file
curl ftp://ftp.nominum.com/pub/nominum/dnsperf/2.1.0.0/dnsperf-src-2.1.0.0-1.tar.gz -O
# Extracting files
tar xfvz dnsperf-src-2.1.0.0-1.tar.gz
@kometchtech
kometchtech / coredns.service
Last active January 4, 2018 05:40
sample file for coreDNS
[Unit]
Description=CoreDNS DNS server
Documentation=https://coredns.io
After=network.target
[Service]
PermissionsStartOnly=true
LimitNOFILE=1048576
LimitNPROC=512
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
@kometchtech
kometchtech / redis.conf
Last active December 15, 2017 06:10
Redis server systemctl file
#Type Path Mode UID GID Age Argument
d /var/run/redis 0755 redis redis - -
" vimrc
set tabstop=4
set autoindent
set smartindent
set expandtab
set shiftwidth=4
set ambiwidth=single
set cursorline
if &t_Co > 1
syntax enable
@kometchtech
kometchtech / .tmux.conf
Created September 7, 2017 14:04
tmux config コピペ
# bind : to command-prompt like vim
# this is the default in tmux already
bind : command-prompt
# vi-style controls for copy mode
setw -g mode-keys vi
# prefixキーをC-wに変更する
set -g prefix C-w
@kometchtech
kometchtech / .screenrc
Created September 1, 2017 07:54
sample screenrc
#if [ $TERM != "screen" ]; then
# if [ $TERM != "dumb" ]; then
# screen -e ^z^z
# fi
#fi
termcapinfo xterm* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
escape ^wW
defscrollback 20000
bind l split -v