投稿者: Despina

  • Raspberry Piむずそう

    温度計作りたいけどむずそう

    メモURL:Raspberry Pi電子工作入門│ツール・ラボ (tool-lab.com)

    👆一からや教えてくれててわかりやすい。時間あったら見たい

  • ログ取り用のteratermマクロ

    意外と動く。

    ディレクトリ作成のところが動きにくいため要編集

    StrIP = 'アドレスを入れる:23 /nossh /T=1'
    connect StrIP
    	call LOGIN
    	call CMDLST
    endif
    
    :LOGIN	;ログインラベル
    
    ;文字化け用。TTX Kanji Menuというプラグインを入れて使う。
    ;    ; UTF8 
    ;    callmenu 54013  ; [KanjiCode] Recv: UTF-8 
    ;    callmenu 54113  ; [KanjiCode] Send: UTF-8 
    ;    ; EUC 
    ;    callmenu 54011  ; [KanjiCode] Recv: EUC-JP 
    ;    callmenu 54111  ; [KanjiCode] Send: EUC-JP 
    ;    ; SJIS 
    ;    callmenu 54010  ; [KanjiCode] Recv: Shift_JIS 
    ;    callmenu 54110  ; [KanjiCode] Send: Shift_JIS 
    
    wait 'Username:' 'Password:'
    	if result = 1 then
    	call LOGINPASS1
    	return
    	else
    	call LOGINPASS2
    	return
    	endif
    		:LOGINPASS1		;ベタ打ち行。AAA認証の場合の子ラベル
    		sendln 'ユーザ名を入れる
    		wait 'Password:'
    		sendln 'パスワードを入れる'
    		call LOGINENBLE
    		return
    
    		:LOGINPASS2		;ベタ打ち行。ローカル認証の場合の子ラベル
    		sendln 'パスワードを入れる'
    		call LOGINENBLE
    		return
    		
    			:LOGINENBLE	;ベタ打ち行。enableモードに入るための孫ラベル
    			wait '>'
    			sendln 'ena'
    			wait 'Password:'
    			sendln 'パスワードを入れる'
    			wait '#'
    			sendln ''
    			return
    
    :CMDLST	;コマンド流し入れラベル
    flushrecv
    getdir CD
    setdir CD
    foldercreate '\log'
    
    mpause 10
    loglog = CD
    strconcat loglog '\log\'	;ログ用のディレクトリ
    strconcat loglog 'ログの名前.log'
    logopen loglog 1 1			;ログの取得を開始
    
    sendln 'ter len 0'
    pause 1
    sendln 'show clock'
    pause 1
    sendln 'show run'
    pause 1
    sendln 'exit'
    

  • 古いCisco、必須のコマンド

    特にプロキシアープはL3インターフェース必須。

    端末側で”IP重複”とか出て、はまった経験アリ。

    no ip proxy-arp
    no ip redirects
    no ip source-route
  • RDPした時キーボードUSになるやつ回避用

    追記:アプリ版のRDPだとUSになっちゃうみたい。

    👆コイツ、クソ

    素直にmstscでやりませう。しかも赤いほうのRDPはキーボードだけじゃなく、60Hzしか対応していないのか、モニタによってはチラついて変なことになる。


    それでも赤いほうでやりたい人はレジストリいじっていいけど、あんまりうまくいかないと思う。USキーボードになるよりましだけど、、、

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000411]
    "Layout Display Name"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,\
      52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,\
      00,32,00,5c,00,69,00,6e,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,2c,00,\
      2d,00,35,00,30,00,36,00,31,00,00,00
    "Layout File"="kbd106.dll"
    "Layout Text"="Japanese"
    

  • WordPressタイトルとか本文の大きさ変更

    追加CSSで下をコピペ

    .singular .entry-title {font-size: 4rem !important; }

    追記:親切な人がブログにのっけてた。ちょっとだけいじってつかってる。

    Twenty Twenty-One 1, 本文エリアの幅を広げる – ブログのウラ側 (tehehet.com)

    Twenty Twenty-One 2, タイトル文字の大きさ調整 – ブログのウラ側 (tehehet.com)

    以下引用:
    
    /* デスクトップデバイスの本文幅を広げる */
    @media only screen and (min-width: 822px){
      .post-thumbnail, .entry-content .wp-audio-shortcode, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce), *[class*=inner-container] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce), .default-max-width {
        max-width: var(--responsive--alignwide-width);
        margin-left: auto;
        margin-right: auto;
      }
      .entry-footer {
        max-width: var(--responsive--alignwide-width);
        margin-left: auto;
        margin-right: auto;
      }
      .author-bio {
        max-width: var(--responsive--alignwide-width);
        margin-left: auto;
        margin-right: auto;
      }
      .site {
        max-width: 70vw;
        margin-left: auto;
        margin-right: auto;
      }
    }
    
    /* タイトル文字の大きさ変更 */
    .singular .entry-title {
    	font-size: var(--global--font-size-xl);
    }
    .page-title {
    	font-size: var(--global--font-size-sm);
    }
    /*
    .archive-description {
    	font-size: var(--global--font-size-sm);
    }
    .site-title {
    	font-size: var(--global--font-size-xl);
    }
    .site-description {
    	font-size: var(--global--font-size-sm);
    }