Create by @terrychan999 on 2021-Apr-30, feel free to share :)
-
Linux ENV: Ubuntu 20.04 Server
此教學僅在Ubuntu 20.04測試過
-
更新apt套件庫
sudo apt update && sudo apt upgrade
import bme280 | |
import time | |
import requests | |
import json | |
import datetime | |
firebase_url = 'https:/change_your_project_name.firebaseio.com/' | |
while True: | |
temperature,pressure,humidity = bme280.readBME280All() |
server { | |
root /var/www/html; | |
# Add index.php to the list if you are using PHP | |
index index.php; | |
server_name example.com; # managed by Certbot | |
autoindex off; | |
error_log /var/log/nginx/example_error.log; |
deb http://free.nchc.org.tw/ubuntu/ focal main restricted universe multiverse | |
deb http://free.nchc.org.tw/ubuntu/ focal-updates main restricted universe multiverse | |
deb http://free.nchc.org.tw/ubuntu/ focal-security main restricted universe multiverse | |
deb http://free.nchc.org.tw/ubuntu/ focal-backports main restricted universe multiverse |
html { | |
font-size: 16px; | |
} | |
html * { | |
font-size: 1rem; | |
} | |
h1 { | |
font-size: 2rem; |
<?php | |
// Disable wp-embed | |
function disable_embed_feature(){ | |
wp_deregister_script( 'wp-embed' ); | |
} | |
add_action('wp_footer', 'disable_embed_feature'); | |
// Disable wp-emoji | |
function disable_emoji_feature() |
mkdir glibc217 | |
cd glibc217 | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm |