Skip to content

Instantly share code, notes, and snippets.

View e2kaneko's full-sized avatar

tomo kaneko e2kaneko

View GitHub Profile
@kishimotonico
kishimotonico / linux-useradd-util.py
Last active April 26, 2024 05:12
LinuxでSSH接続用のユーザを作成するユーティリティ
"""
# linux-useradd-util.py: LinuxでSSH接続できるユーザを作成するユーティリティ
## 使い方
ユーザの追加のため適切な権限が必要な点に注意してください
また実行前にスクリプトが問題ないことを確認してください
```bash
# simple usage
> perl -E 'say "生" & "死"'
生 Life U+751F \xe7\x94\x9f 11100111 10010100 10011111
死 Death U+6B7B \xe6\xad\xbb 11100110 10101101 10111011
愛 Love u+611B \xe6\x84\x9b 11100110 10000100 10011011
@e2kaneko
e2kaneko / gist:969955
Created May 13, 2011 04:03
jQuery - スクロール位置を移動
$("html,body").animate(
{scrollTop: $("#element_id").offset().top},
0
);
@kiy0taka
kiy0taka / commit-irc.groovy
Created September 9, 2010 02:46
Using Groovy to SVN post-commit hook: IRC Bot to print commit Message
@Grab('pircbot:pircbot:1.4.2')
import org.jibble.pircbot.*;
def (host, port, channel) = ['<Server>', <Port>, '<Channel>']
def bot = [:] as PircBot
bot.name = 'groovy_bot'
bot.encoding = 'ISO-2022-JP'
bot.connect host, port
bot.joinChannel channel