Skip to content

Instantly share code, notes, and snippets.

View zypA13510's full-sized avatar

Yuping Zuo zypA13510

  • China
  • 19:08 (UTC +08:00)
View GitHub Profile
@zypA13510
zypA13510 / README.md
Last active July 18, 2024 05:49
cloud-init cloud config file to install docker-ce on Ubuntu

Inspired by syntaqx/cloud-init.yaml.

This version uses the built-in apt module to configure docker repository. Also, rather than downloading the signing key using curl on init, which can be insecure, it has the GPG signing key inline explicitly. Please check the signing key yourself and update it in case docker rotated the signing key.

Tested on Ubuntu 24.04 (Noble).

@zypA13510
zypA13510 / compute-engine-ddns.service
Created December 26, 2021 19:48
Utility script to help GCP Compute Engine VMs to set their ephemeral IP address to Cloud DNS zone on boot.
[Unit]
Description=Update current instance IP to Cloud DNS.
After=network-online.target auditd.service
[Service]
#ExecStart=/opt/compute-engine-ddns.sh <zone-name> <domain>
Type=oneshot
[Install]
WantedBy=multi-user.target
@zypA13510
zypA13510 / bootstrap-ms-standalone.css
Last active March 1, 2021 06:02 — forked from Jakobud/bootstrap-ms.scss
Adds in the missing 480px-768px breakpoint range to Bootstrap 3 for SASS
.col-xs-1, .col-ms-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-ms-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-ms-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-ms-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-ms-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-ms-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-ms-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-ms-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-ms-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-ms-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-ms-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-ms-12, .col-sm-12, .col-md-12, .col-lg-12 {
position: relative;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
@media (min-width: 480px) and (max-width: 767px) {
.container {
max-width: 748px;
@zypA13510
zypA13510 / recaptcha.conf
Last active April 15, 2024 08:07
How to set up a reverse proxy for Recaptcha on Apache httpd
LoadModule ssl_module modules/mod_ssl.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule filter_module modules/mod_filter.so
LoadModule substitute_module modules/mod_substitute.so
<VirtualHost *:443>
ServerName yourdomain.com:443
SSLEngine On
SSLProxyEngine On