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
auburnpub.com | |
chinaplus.cri.cn | |
dailymail.co.uk | |
drudgereport.com | |
english.cctv.com | |
english.news.cn | |
metro.co.uk | |
nypost.com | |
pagesix.com | |
peoplesdaily.pdnews.cn |
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
modules: | |
pi-hole-test: | |
prober: dns | |
timeout: 5s | |
dns: | |
query_name: pagead2.googlesyndication.com | |
query_type: A | |
validate_answer_rrs: | |
fail_if_not_matches_regexp: | |
- ".*0.0.0.0" |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Resources": { | |
"aRecord": { | |
"Properties": { | |
"HostedZoneId": { | |
"Ref": "hostedZone" | |
}, | |
"Name": "test.mmbtest.com", | |
"ResourceRecords": [ |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
appsv1 "k8s.io/api/apps/v1" | |
corev1 "k8s.io/api/core/v1" |
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
import sys | |
import weechat | |
if weechat.register('test', 'test', 'test', 'test', 'test', 'shutdown', ''): | |
weechat.prnt('', str(sys.version)) | |
weechat.prnt('', str(sys.path)) |
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
ping -o 8.8.8.8 && say 'internet is back' |
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
SRCS = $(wildcard *.dot) | |
PDFS = $(patsubst %.dot,%.pdf,$(SRCS)) | |
PNGS = $(patsubst %.dot,%.png,$(SRCS)) | |
all: pdfs pngs | |
pdfs: $(PDFS) | |
pngs: $(PNGS) |
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
# Writing to Linux virtual consoles to simulate user input: | |
s = "ls\n" | |
open('/dev/tty1','w') do |f| | |
s.each_char do { |c| f.ioctl(0x5412, c) } | |
end | |
# From the shell: | |
echo 7 | ruby -e "open('/dev/tty1', 'w') { |o| \$stdin.each_char { |c| o.ioctl(0x5412, c) } }" |
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
require 'aws-sdk-s3' | |
client = Aws::S3::Client.new(region: 'us-west-2') | |
bucket = 'bucket1' | |
resp = client.list_objects(bucket: bucket) | |
resp.contents.each do |object| | |
metadata = client.head_object(bucket: bucket, key: object.key) | |
puts object.key unless metadata.server_side_encryption |
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
# graphite/statsd/grafana setup on new Amazon Linux instance | |
# add http://graphite/ to grafana as a data source | |
sudo su | |
yum update --assumeyes | |
yum install --assumeyes docker | |
service docker start | |
docker \ | |
run \ |
NewerOlder