此文目標讀者需先自行學會
- 開 Github 帳號
- 會 fork 程式 repository
- 會在自己的電腦使用命令列
git - 會 clone 自己的 repository
| deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
| import numpy as np | |
| import pandas as pd | |
| import sys | |
| import json | |
| import time | |
| from telnetlib import Telnet | |
| # Initializing the arrays required to store the data. | |
| attention_values = np.array([]) | |
| meditation_values = np.array([]) |
| #Mastodonを止める | |
| systemctl stop mastodon-{web,sidekiq,streaming}.service | |
| #Mastodonユーザになる | |
| sudo su - mastodon | |
| #Rubyのアップデートをするためにrbenvのおいてあるディレクトリに移り最新版をダウンロード | |
| cd ~/.rbenv | |
| git pull | |
| #同じようにプラグインのディレクトリに移り最新版をダウンロード |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{QUERY_STRING} ^(.*?)(&?fbclid=[a-zA-Z0-9_-]+)$ | |
| RewriteRule ^(.*)$ /$1?%1 [L,NE,R=301] | |
| </IfModule> |
| http { | |
| ... | |
| # redirect map in http block - remove fbclid argument from the end | |
| map $request_uri $redirect_fbclid { | |
| "~^(.*?)([?&]fbclid=[a-zA-Z0-9_-]+)$" $1; | |
| } | |
| ... |
| var mongoObjectId = function () { | |
| var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
| return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
| return (Math.random() * 16 | 0).toString(16); | |
| }).toLowerCase(); | |
| }; |