Skip to content

Instantly share code, notes, and snippets.

View YasuhiroABE's full-sized avatar

Yasuhiro ABE YasuhiroABE

View GitHub Profile
##
## my favorite setting C-t
escape "^t^t"
## C-t w shows windowlist after screen-3.11
bind w windowlist -b
## set the title
shelltitle "vmhome"
#
# caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
#hardstatus alwayslastline "%-w [screen %n%?: %t%?] %h %+w"
#!/bin/bash
## Filling following variables in the randomized text
## e.g. $ openssl rand -hex 8
## b3122cf15fc5a41e
username=""
password=""
htpasswd -nbBC12 $username $password
#!/usr/bin/ruby
=begin
This script generates ID files into the current directory for the "sdamps stamp -f" command.
Usage: $0 [-n <number of unit>] [-c <prefix number>] [-p <output file prefix>] [-s <output file suffix>] <total number of set>
-n <number of unit> (default: 100)
If the "-n 10" is specified, then the each ID file contains 10 lines.
@YasuhiroABE
YasuhiroABE / sdaps-example-ja.tex
Created December 22, 2021 02:18
It is an example for the sdaps-ja docker container.
\documentclass[
english,
a4paper,
checkmode=check,
pagemark,
stamp]{sdapsclassic}
\usepackage[utf8]{inputenc}
% For demonstration purposes
\usepackage{multicol}
@YasuhiroABE
YasuhiroABE / authorized_keys
Last active October 30, 2023 09:54
My default SSH authorized key file.
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPZBsnzJPK79gc9ILEsZdAhPFMxps/r11Jxj3l8n/rD8 yasu@freenas
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKMzcXO0vn+qwfQPnvTba8f3E3Mvr8Wxd59Uw8HJZzRs yasu@ub1804
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKH4MrCwhdZPxfKMuymXsQnaWoExjNPRGBhWQFADLZtX yasu@YASUT14G2
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID28rOk6bNcA5SpThyPcOvS/H+pMkRnHEGuMdnvi4Mql yasu@inovtst9
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINgMvMNt7APJtktC3gta0prsHrmOYf5j+cjEwARykp3G yasu@macbook2015
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPhWnnwd1vhUtJ7p1JgkTjv19eoNp9d2HqfsZsr7wu9s yasu@desktop
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFTBhMxqTaa5AVppWmWvCL1s/DsOCBOVr04ARqG1RJxh yasu@YAM1MacMini-Home
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAFJyM8S91+tyRDu7Fr+ZYbGZr2QEMFraj2o7rauuqcV yasu@athlon
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDBZQQwbQSgFMEQg5gwwcyOx1JcZWfFg+qweyrIoSNb yasu@winarmdev
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPR1CzQMicLiCBwgaSEpZCCZWxSQsffVHS+4Uo8OSo6u yasu@windev
# same as my screen configuration.
set -g prefix C-t
## It's essential for copy mode
set -g mode-keys vi
## avoid TERM=tmux-256color
set-option -g default-terminal screen-256color
@YasuhiroABE
YasuhiroABE / setup-solr-schema.rb
Created December 16, 2020 06:24
A ruby script for setting up apache solr schema and field-types
#!/usr/bin/ruby
# coding: utf-8
def usage
puts <<EOF
It posts the solr schema data to the server.
Usage: $ #{$0} operation files..
opration:
@YasuhiroABE
YasuhiroABE / wpa2-eap-peap_wpa_supplicant.conf
Created December 15, 2018 02:37
wpa_supplicant configuration file for Raspberry Pi 3 with WPA2-EAP-PEAP.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=JP
network={
ssid=""
priority=1
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
@YasuhiroABE
YasuhiroABE / README.md
Last active February 15, 2018 07:41
Build the latest lftp on Solaris 11.3

Prerequisites

  • Solaris 11.3
  • Solaris Studio 12.4
  • GNU Tools (readline, etc.)