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 | |
cloudflare_email='your sign-in email' | |
cloudflare_apikey='your api key' | |
cloudflare_dns_record='your dns record' | |
cloudflare_zone_id='your dns zone id on cloudflare' | |
cloudflare_dns_record_id='your dns record id under the zone' | |
data_string=$( jq -n \ | |
--arg ip "$(curl --silent ipecho.net/plain)" \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
[ ca ] | |
default_ca = ca_default | |
[ ca_default ] | |
dir = ./ca | |
certs = $dir | |
new_certs_dir = $dir/ca.db.certs | |
database = $dir/ca.db.index | |
serial = $dir/ca.db.serial | |
RANDFILE = $dir/ca.db.rand |
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 bash | |
# | |
# https://gist.github.com/davxiao/66a0c9f8f5bbe4ad543056e2b056ecd2 | |
# | |
function usage | |
{ | |
echo "This script generates AWS CLI commands for enumerating VPCs in specified accounts and regions." | |
echo "Edit script to add profile names and regions." | |
} |
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 | |
MY_VPC_ID=vpc-012f140a162878def; | |
PROFILE_NAME=lab-acc1; | |
REGION_NAME=us-east-1; | |
date | |
echo "This script needs AWS CLI to run properly. It looks up in the AWS environment and construct commands for you." | |
echo "It requires read only privileges, it does NOT change anything on your AWS environment." | |
echo "MY_VPC_ID=$MY_VPC_ID" |
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
{{ if (index site.Params.comments.commentable .Type) | and (ne .Params.commentable false) | or .Params.commentable }} | |
<section id="comments"> | |
<hr> | |
<h2>Comments</h2><div id="remark42"></div> | |
<script> | |
var remark_config = { | |
host: "https://api.davidxiao.me/remark42", // hostname of remark server, same as REMARK_URL in backend config, e.g. "https://demo.remark42.com" | |
site_id: 'davidxiao', | |
components: ['embed'], // optional param; which components to load. default to ["embed"] | |
// to load all components define components as ['embed', 'last-comments', 'counter'] |
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
# SSL configuration | |
# | |
server { | |
listen 8964 ssl; | |
# allowing only local networks and cloudflare CDN IPs for security | |
allow 127.0.0.0/8; | |
allow 192.168.2.0/24; | |
# cloudflare IPs. see https://www.cloudflare.com/ips/ |
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
# See /usr/share/postfix/main.cf.dist for a commented, more complete version | |
myhostname=pve.home | |
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) | |
biff = no | |
# appending .domain is the MUA's job. | |
append_dot_mydomain = 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
// See https://github.com/dialogflow/dialogflow-fulfillment-nodejs | |
// for Dialogflow fulfillment library docs, samples, and to report issues | |
'use strict'; | |
const { | |
Image, | |
MediaObject, | |
Suggestions, | |
} = require('actions-on-google'); | |
const functions = require('firebase-functions'); |