This file contains 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 perl | |
use strict; | |
use warnings; | |
use Socket; | |
use Socket::MsgHdr; | |
use IO::Handle; | |
my ($parent, $child); |
This file contains 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 perl | |
use strict; | |
use warnings; | |
use Socket; | |
use IO::Socket; | |
use IO::Socket::INET; | |
use IO::Select; | |
use IO::Handle; |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/socket.h> | |
#include <sys/un.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
int main(int argc, char** argv) { | |
int sock; |
This file contains 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
adding 'td-agent' group... | |
adding 'td-agent' user... | |
Installing default conffile... | |
prelink detected. Installing /etc/prelink.conf.d/td-agent-ruby.conf ... | |
cp: cannot stat `/opt/td-agent/usr/sbin/td-agent-ui': No such file or directory | |
chmod: cannot access `/usr/sbin/td-agent-ui': No such file or directory | |
Configure td-agent to start, when booting up the OS... |
This file contains 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
requires 'Digest::SHA'; | |
requires 'MIME::Base64'; |
This file contains 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
[root@ip-172-31-10-148 irq]# ethtool -i eth0 | |
driver: ixgbevf | |
version: 2.16.1 | |
firmware-version: N/A | |
bus-info: 0000:00:03.0 | |
supports-statistics: yes | |
supports-test: yes | |
supports-eeprom-access: no | |
supports-register-dump: yes | |
supports-priv-flags: no |
This file contains 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
from __future__ import print_function | |
import json | |
import gzip | |
import boto3 | |
import time | |
import httplib | |
import urllib | |
from cStringIO import StringIO |
This file contains 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
#!/bin/sh | |
# Usage: $0 < redirect_list.tsv | |
while read from to;do | |
res=$(curl -s -D - -o /dev/null "$from") | |
if $(echo $res | grep "HTTP/1.1 200" > /dev/null); then | |
continue | |
fi | |
echo "from: $from to: $to" |
This file contains 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
data "aws_acm_certificate" "cert_global" { | |
domain = "example.com" | |
provider = "aws.virginia" | |
} | |
output "certificate" { | |
value = "${data.aws_acm_certificate.cert_global.arn}" | |
} |
This file contains 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
provider "aws" { | |
alias = "virginia" | |
region = "us-east-1" | |
} | |
data "aws_acm_certificate" "cert_global" { | |
domain = "example.com" | |
provider = "aws.virginia" | |
} |
OlderNewer