Skip to content

Instantly share code, notes, and snippets.

@hoco
hoco / gist:2823068
Created May 29, 2012 07:13
SVNあれこれ
#ローカルファイルを残したままリポジトリからファイル削除
svn delete hoge.log --keep-local
svn commit hoge.log
#特定リビジョンにロールバック
svn update
svn merge -r HEAD:999 .
svn commit -m "rollback to revision 999"
@hoco
hoco / gist:2952704
Created June 19, 2012 07:02
telnetでメール送信
# telnet mailsrv 25
HELO mailsrv
MAIL FROM: [email protected]
RCPT TO: [email protected]
DATA
subject: test
from: [email protected]
to: [email protected]
Hello world.
@hoco
hoco / gfm_template.html.erb
Last active August 29, 2015 14:07
Github Flavor Markdown template ERB
<%#
template for: https://github.com/hoco/markup
stylesheet from: https://gist.github.com/andyferra/2554919
%><!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<style type="text/css">
body {
#!/bin/sh
# WARNING: REQUIRES /bin/sh
#
# - must run on /bin/sh on solaris 9
# - must run on /bin/sh on AIX 6.x
#
# Copyright:: Copyright (c) 2010-2015 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");