export GIT_AUTHOR_NAME=ユーザ名
export GIT_AUTHOR_EMAIL=メールアドレス
export GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
export GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
export EMAIL=$GIT_AUTHOR_EMAIL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # こちらに移動 | |
| # https://github.com/mamemomonga/cloud-workspace-instance-starter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -eu | |
| # Build Essentialをインストールする | |
| INSTALL_BUILD_ESSENTIAL=1 | |
| # Dockerをインストールする | |
| INSTALL_DOCKER=1 | |
| if [ "$(id -u)" != 0 ]; then |
上級者向けコンテンツ
https://fedibird.com/@kimura03/103261444392071749 https://raspidon.mamemo.online/@mamemomonga/103261451824891362 https://raspidon.mamemo.online/@mamemomonga/103261468775845279 https://raspidon.mamemo.online/@mamemomonga/103283998990411640 https://oransns.com/@nacika/103284018097578035 https://raspidon.mamemo.online/@mamemomonga/103284026325794334
$ sudo apt install xrdp
$ sudo sh -c 'cat > /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf' << 'EOS'
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.color-manager.create-device" ||
action.id == "org.freedesktop.color-manager.create-profile" ||
action.id == "org.freedesktop.color-manager.delete-device" ||
action.id == "org.freedesktop.color-manager.delete-profile" ||
action.id == "org.freedesktop.color-manager.modify-device" ||
- bin/run-tmuxというシェルスクリプトを経由して起動する。デタッチ後も以前のssh-agentを利用できるようにする。
- セッションがあればattach、セッションがなければ新しいセッションを開始する
- セッションがなければ、ssh-agentを起動し、SSH_AUTH_SOCK, SSH_AGENT_PIDを .ssh/tmux-ssh-agent に保存しtmuxセッションを開始する。
- bash や zsh起動時には .ssh/tmux-ssh-agent の環境変数を読み込むことでssh-agentを利用可能にする。
- セッション開始時に bin/run-tmux agent-killer を起動し、数秒おきにtmuxの終了をチェック、終了されていたらssh-agentを停止する。
- ssh-agentのPIDが無効ならばファイルを削除する。
ArduinoチームがつくってるCLIのArduino
$ cd
$ mkdir bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt install jq | |
| bash << 'EOS' | |
| GH_USERNAME=mamemomonga | |
| curl -s "https://api.github.com/users/$GH_USERNAME/keys" | jq -r '.[]|.key+" '$GH_USERNAME'@github/"+(.id|tostring)' | |
| EOS |