Skip to content

Instantly share code, notes, and snippets.

View blackraccoon000's full-sized avatar

Yutaka Fujii blackraccoon000

View GitHub Profile
@blackraccoon000
blackraccoon000 / Execution.java
Created April 26, 2013 03:59
ランダムパスワード生成(手抜き)
import java.util.Random;
/**************************************************************************************************
* Copyright (c) 2013. Yutaka Fujii *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
@blackraccoon000
blackraccoon000 / sv.ttl
Last active December 16, 2015 04:48
teratermマクロ
;==■ファイル名作成者名==========================
; Filename : sv.ttl
; Description : SSH Auto login
; Author : Yutaka
; Created : 2013/03/14
; modified :
;==============================================
;==■参考URL=====================================
;-Tera Termマクロ-SSH自動ログイン
/**
*Copyright (c) 2013/04/11 Yutaka Fujii
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
package GetIntName;
/**
* Created with IntelliJ IDEA.
* User: Yutaka Fujii
* Date: 13/04/10
* Time: 10:53
* To change this template use File | Settings | File Templates.
*/
@blackraccoon000
blackraccoon000 / FirstCase_Exe.java
Created April 8, 2013 15:05
IPアドレスを分割して再構築する試行錯誤①
package FirstCase;
/**
* Created with IntelliJ IDEA.
* User: Yutaka Fujii
* Date: 13/04/08
* Time: 22:29
*/
public class Exe {
public static void main(String args[]){
@blackraccoon000
blackraccoon000 / DataTest
Created April 8, 2013 10:38
*1 動作失敗。 ロジック考え中 取得した文字列をsplitで分割して成形する->IPアドレスの形へという目的 **2戻り値を複数返すテスト
public class DataTest {
static int[] init(){
int data[] = new int[2];
data[0] = 10;
data[1] = 19;
return data;
}
}
@blackraccoon000
blackraccoon000 / CalenderTest_CalenderIncrement.java
Created April 7, 2013 16:19
数字重複のない日付探索プログラム
package CalenderTest;
/**
* Created with IntelliJ IDEA.
* User: Yutaka Fujii
* Date: 13/04/07
* Time: 23:20
*/
import java.util.Calendar;
@blackraccoon000
blackraccoon000 / SnmpGet.java
Created April 5, 2013 10:30
はだかの隊長日記様より拝借 http://blog.r-unit.co.jp/archives/274 2013/04/05 ローカル環境でループバックアドレスを用いて使用できる事を確認 snmp4jとmibbleのjarファイル等が必要 詳細は参考URLより
package snmpfirst;
/**
* Created with IntelliJ IDEA.
* User: Yutaka Fujii
* Date: 13/04/05
* Time: 11:52
* To change this template use File | Settings | File Templates.
*/
@blackraccoon000
blackraccoon000 / Bindec.java
Last active December 15, 2015 11:09
2進数10進数変換(255 -> 11111111)想定
/**
* Created with IntelliJ IDEA.
* User: Yutaka Fujii
* Date: 13/03/27
* Time: 9:24
* To change this template use File | Settings | File Templates.
*/
//得た10進数を2進数に変換する。
@blackraccoon000
blackraccoon000 / RandomAddNum.java
Created March 20, 2013 05:22
乱数生成100未満なら更に乱数生成加算、 合計値100を超えたら終了
/**
* Created with IntelliJ IDEA.
* User: Yutaka Fujii
* Date: 13/03/20
* Time: 13:44
*/
import java.util.Random;
public class RandomNum {