Skip to content

Instantly share code, notes, and snippets.

View watahani's full-sized avatar

WataruHaniyama watahani

View GitHub Profile
apt-get update
apt-get install -y libcurl3 opensc
curl https://developers.yubico.com/YubiHSM2/Releases/yubihsm2-sdk-1.0.1-ubuntu1604-amd64.tar.gz | tar zx -C ./
dpkg -i yubihsm2-sdk/libyubihsm1_1.0.1-1_amd64.deb
dpkg -i yubihsm2-sdk/libyubihsm-dev_1.0.1-1_amd64.deb
dpkg -i yubihsm2-sdk/yubihsm-connector_1.0.1-1_amd64.deb
dpkg -i yubihsm2-sdk/yubihsm-shell_1.0.1-1_amd64.deb
dpkg -i yubihsm2-sdk/yhwrap_1.0.1-1_amd64.deb
dpkg -i yubihsm2-sdk/yubihsm-pkcs11_1.0.1-1_amd64.deb
@watahani
watahani / mailToArchive.gs
Last active February 23, 2018 04:00
mail labeled move to archive for gmail
var labels = PropertiesService.getScriptProperties().getProperty('GMAIL_ARCHIVE_LABELS');
function mail_to_archive() {
var labellist = labels.split(',');
labellist.forEach(
function to_archive(value) {
if (value) {
var label = GmailApp.getUserLabelByName(value);
if (label == null) {
GmailApp.createLabel(value);