Skip to content

Instantly share code, notes, and snippets.

View naokiri's full-sized avatar

Naoaki Iwakiri naokiri

View GitHub Profile
# Cut the network cable, use 1CD linux like isolated environment.
# Don't leave something on disk
mkdir workspace
sudo mount -t tmpfs tmpfs workspace
cd workspace
gpg --expert --full-generate-key
# Certificate のみを生成し、マスターキーとする。このマスターキーのパスフレーズが必要。
# Yubikey5に入れる場合、RSA4096が推奨されているはず。楕円曲線暗号にも対応していたか?
@naokiri
naokiri / main.rs
Created October 11, 2020 06:51
aws-lambda-runtime 0.3 or lambda example
extern crate lambda;
#[macro_use]
extern crate serde;
use rusoto_dynamodb::{DynamoDbClient, DynamoDb, PutItemInput, AttributeValue};
use rusoto_core::Region;
use std::collections::HashMap;
use uuid::Uuid;
use lambda::{handler_fn, Context};
@naokiri
naokiri / firefox-developer-edition.md
Last active January 18, 2020 05:22 — forked from mahammad/firefox-developer-edition.md
How To install Firefox Developer Edition and create desktop icon for Ubuntu 18.04 LTS

chose other install way

  1. Open Terminal Ctrl+Alt+T Download Firefox Developer Edition tar file

    wget https://download.mozilla.org/?product=firefox-aurora-latest-ssl&os=linux64&lang=en-US

  2. Copy tar file to opt sudo cp -rp firefox-35.0a2.en-US.linux-x86_64.tar.bz2

  3. Open opt folder (cd /opt/) and untar file sudo tar xjf firefox-35.0a2.en-US.linux-x86_64.tar.bz2

Keybase proof

I hereby claim:

  • I am naokiri on github.
  • I am naokiri (https://keybase.io/naokiri) on keybase.
  • I have a public key ASDPeHZMu_5oQO-kZ0ZjOTCgss_0HXhuG5YgI3i-m1IfwAo

To claim this, I am signing this object:

# backup and sync whole
#rsync -az --delete --progress --stats src dest/`date +%y-%m`
# backup diff
#rsync -azb --backup-dir=`date +%m-%d` --progress --stats src dest/`date +%y-%m`