Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
(⌐■_■

Huy Nguyen (David) Huynt-dev

💭
(⌐■_■
View GitHub Profile
@Huynt-dev
Huynt-dev / cloudflare-update-record.sh
Created November 20, 2021 11:02 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
View cloudflare-update-record.sh
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@Huynt-dev
Huynt-dev / MongoDB.md
Last active September 30, 2020 13:14
View MongoDB.md

sudo systemctl start mongod

sudo systemctl status mongod

sudo systemctl stop mongod

sudo systemctl enable mongod // tự động bặt servẻ khi khởi động máy

sudo systemctl restart mongod