Skip to content

Instantly share code, notes, and snippets.

Set-StrictMode -Version 2.0
function Get-SqlDataScript {
param(
[Parameter(Mandatory, Position = 0)]
[string] $ServerName,
[Parameter(Mandatory, Position = 1)]
[string] $InstanceName,
@aetos382
aetos382 / yeasterday.cmd
Last active August 29, 2015 14:02
バッチファイルで指定日の前日を求める関数っぽいもの
@echo off
rem テスト
rem 何でもない日
call :GET_YESTERDAY "2014/06/13"
if "%result%" == "2014/06/12" (echo OK) else (echo NG)
rem 1 月以外の月初日
call :GET_YESTERDAY "2014/06/01"
@mochiz
mochiz / gist:4736183
Last active April 16, 2023 03:56
rbenvとruby-buildでRuby環境を最新に保つ

rbenvとruby-buildでRuby環境を最新に保つ

更新日:2014/11/19

rbenv, ruby-buildを更新

$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
@hayajo
hayajo / changelog_en.md
Last active May 3, 2024 08:29
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@kurochan
kurochan / あいさつ.java
Created August 23, 2011 12:02
日本語メソッドその2
class あいさつ<にほんご> {
ことば ことば;
static {
あいさつしよう: {
あいさつ こんにちは = new あいさつ(new ことば("こんにちワン!"));
あいさつ ありがとう = new あいさつ(new ことば("ありがとウサギ!"));
あいさつ さよなら = new あいさつ(new ことば("さよなライオン!"));
こんにちは.と言う();
This project was moved to https://github.com/tdtds/kindlizer
@uasi
uasi / vim.rb
Created November 30, 2010 16:46
Vim formula for Homebrew (EDIT: recent versions of official Homebrew distribution includes one)
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
head 'https://vim.googlecode.com/hg/'
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
version '7.3.682'
def features; %w(tiny small normal big huge) end