Skip to content

Instantly share code, notes, and snippets.

@a1phanumeric
a1phanumeric / gist:5346170
Created April 9, 2013 14:35
Grep exclusions. Demonstrates how to exclude multiple directories, and files.
grep -r --color --exclude-dir={custom,lib,scripts} --exclude={*.xml,error_log} "beta" .
@acple
acple / SandS.ahk
Last active December 7, 2023 08:37
;; SandS for AutoHotkey
;; ===初期設定==========================================================
;; 多重起動の制御をforceに指定
#SingleInstance force
;; 環境変数を無視する
#NoEnv
@kurotaky
kurotaky / git-study-sample.md
Last active June 6, 2024 16:46
git commit するまでに自分がやっていること

コミットするまでの流れ

前回のコミットから何も変更を加えていない状態。

$ git status
# On branch masternothing to commit, working directory clean

エディタでファイルを編集する

@sunaot
sunaot / if.md
Last active October 2, 2019 15:15
条件分岐とのつきあい方

条件分岐とのつきあい方

プログラムが複雑になる一番の理由は条件分岐 (if 文など) です。

条件分岐がなければ、一本道で読み下していけばいいのでバグが入り込む余地は大変少なくなります。

ということで、

  • 条件分岐を書かなくていいように書く
  • 条件分岐を書くなら、わかりやすく局所化して書く
@taichi
taichi / configure_bower.md
Created September 2, 2013 06:50
bowerにbowerrcを使ってプロキシの設定をする

bowerにプロキシの設定をする方法

プロジェクトのディレクトリかユーザホームディレクトリに.bowerrcファイルを作る。

  • Windowsのユーザホームの確認の仕方
> echo %HOMEPATH%
@mk2
mk2 / setup_devenv_on_windows.md
Last active February 17, 2021 09:27
Wndowsにおける快適な開発環境のセットアップ

Windows上における快適な開発環境のセットアップについて

Windows上で快適な開発環境をセットアップするためのメモです。

更新履歴

更新日 更新内容
2014-02-23 Sleipnir4の部分を修正

ソフトウェア

@paularmstrong
paularmstrong / foo.test.js
Last active March 29, 2018 03:00
Mocha test runner with Require.js
define(['modules/foo'], function (foo) {
describe('test foo', function () {
// ...
});
});
@mistymagich
mistymagich / gist:6864772
Last active June 12, 2018 04:54
自己認証局のルート証明書をCentOSのca-bundle.crtにインストールするレシピ
#
# Cookbook Name:: install-private-CA-certificate
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
# 自己認証局のルート証明書
@voluntas
voluntas / shiguredo.rst
Last active January 17, 2026 03:55
時雨堂コトハジメ
@anthonyeden
anthonyeden / Python WExpect
Created January 18, 2014 10:40
Python's PExpect for Microsoft Windows: WExpect
"""Pexpect is a Python module for spawning child applications and controlling
them automatically. Pexpect can be used for automating interactive applications
such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup
scripts for duplicating software package installations on different servers. It
can be used for automated software testing. Pexpect is in the spirit of Don
Libes' Expect, but Pexpect is pure Python. Other Expect-like modules for Python
require TCL and Expect or require C extensions to be compiled. Pexpect does not
use C, Expect, or TCL extensions. It should work on any platform that supports
the standard Python pty module. The Pexpect interface focuses on ease of use so
that simple tasks are easy.