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 | |
set -eu | |
MODEM_URL='https://192.168.0.1' | |
USERNAME='admin' | |
PASSWORD='your password' | |
curl \ | |
--cookie-jar cookie \ |
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
businessinsider.com | |
cnn.com | |
drudgereport.com | |
enduser.adsrvr.org | |
evenpolitics.com | |
metafilter.com | |
news.google.com | |
niothinker.com | |
savannahtime.com | |
temu.com |
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
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
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
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
config setup | |
uniqueids=no | |
charondebug="enc 0, ike 2, knl 0, net 0" | |
conn ipsec-10.0.16.1/20 | |
leftcert=instance_certificate.pem | |
auto=route | |
keyexchange=ike | |
esp=aes128gcm16! | |
type=transport |
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
<h1 id="time"></h1> | |
<script> | |
function toBeats(date) { | |
return ((date.getTime() / 1000.0) + 3600) % 86400 / 86.4; | |
} | |
function formatTime(date) { | |
return (date.getMonth() + 1) + "/" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes(); | |
} |
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/bash | |
set -eu | |
APP_NAME=$1 | |
METADATA_URL=$( | |
cf curl /v2/apps?q=name:$APP_NAME | | |
jq -r .resources[0].metadata.url | |
) |
NewerOlder