sudo apt update && sudo apt upgrade -yFirefoxのインストールまたは更新: Firefoxが既にインストールされている場合でも、以下のコマンドで最新バージョンに更新できます。
sudo apt install --only-upgrade firefox再起動: 更新が完了したら、システムを再起動して変更を適用します。
sudo reboot
sudo apt update && sudo apt upgrade -yFirefoxのインストールまたは更新: Firefoxが既にインストールされている場合でも、以下のコマンドで最新バージョンに更新できます。
sudo apt install --only-upgrade firefox再起動: 更新が完了したら、システムを再起動して変更を適用します。
sudo reboot
C#でよく利用されているTicks値をJavaのサービスで解析するために書いたコード
paizaへのリンクはこちら
https://paiza.io/projects/3G0Z2TzELkiqeUrvXyENeQ
import java.util.*;
public class Main {
/** Ticks default date 1970/1/1 0:0:0 */
private static long TICKS_AT_EPOCH = 621355968000000000L;
/** Ticks変換用 */
private static long TEN_THOUSAND = 10000L;
public static void main(String[] args) throws Exception {
// request ticks value
long ticks = 637854553115230580L;
long createDateTime = (ticks - TICKS_AT_EPOCH) / TEN_THOUSAND;
// set Date Entity
Date createDate = new Date(createDateTime);
// set Calendar Entity
Calendar calendar = Calendar.getInstance();
calendar.setTime(createDate);
// months
int months = calendar.get(Calendar.MONTH) + 1;
System.out.println(calendar.get(Calendar.YEAR) + "/" + months + "/" + calendar.get(Calendar.DAY_OF_MONTH) + " " + calendar.get(Calendar.HOUR) + ":" + calendar.get(Calendar.MINUTE) + ":" + calendar.get(Calendar.SECOND) );
}
}
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"cleanUrls": true,
"redirects": [{
"source": “/oldURL”,
"destination": "https://happy.info/newURL”,
"type": 301
} ]
}
}
okomeum$ scp -r -P portNo userName@hostName:filePass ./
| オプション | 説明 |
|---|---|
| -r | ディレクトリごと再帰的にコピーする |
| -P ポート番号 | (sshのポートを変更している場合などに)接続に使用するポートを指定する |
okomeum$ firebase deploy Error: Failed to get Firebase project okomeum-web. Please make sure the project exists and your account has permission to access it.
okomeum$ firebase logout ⚠ Invalid refresh token, did not need to deauthorize ✔ Logged out from hogehoge@gmail.com
okomeum$ firebase login i Firebase optionally collects CLI usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (https://policies.google.com/privacy) and is not used to identify you. ? Allow Firebase to collect CLI usage and error reporting information? Yes i To change your data collection preference at any time, run `firebase logout` and log in again. Visit this URL on this device to log in: https://accounts.google.com/o/oauth2/auth?client_id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Waiting for authentication... ✔ Success! Logged in as hogehoge@gmail.com
okomeum$ firebase deploy === Deploying to 'okomeum-web'... i deploying hosting i hosting[okomeum-web]: beginning deploy... i hosting[okomeum-web]: found 0 files in public ✔ hosting[okomeum-web]: file upload complete i hosting[okomeum-web]: finalizing version... ✔ hosting[okomeum-web]: version finalized i hosting[okomeum-web]: releasing new version... ✔ hosting[okomeum-web]: release complete ✔ Deploy complete! Project Console: https://console.firebase.google.com/project/okomeum-web/overview Hosting URL: https://okomeum-web.web.app
hoge
a{
text-decoration: none;
}
a:hover{
text-decoration: underline;
}