Skip to content

Instantly share code, notes, and snippets.

View d6rkaiz's full-sized avatar

Isao Sugimoto d6rkaiz

View GitHub Profile
@t9md
t9md / vagrant-snapshot.rb
Created June 4, 2011 16:21
vagrant snapshot management command for one vm.
## place this file to same directory of `Vagrantfile' then simply require "snap.rb" in Vagrantfile
module Snap
module VBox
class SnapShot
require "forwardable"
extend Forwardable
def_delegators :@snap, :name, :uuid, :time_stamp
@@snaps = []
class << self
@d6rkaiz
d6rkaiz / id_rsa.pub
Created November 12, 2011 02:40
d6rkaiz@publickey
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzXvGAxHaqRWxIQixkgfCSowh997121hbJEbpP8ObDmBOCDGj5Qq8WqVYg0ynYbqWBcfHHybwf59XIh26DVZvz91S+zyPC/itKlFDIZfF3NEKFzSRRCTUH5IF7il2+zwY84zTxu9HXl1G0PRz79ZYZKjqXttrbSLVMMGVDFIEiZ1cJj8di76Zb36UAwh5KqBe6DZx6h86Bf/ylec5/p8ZguKqHRIUWYFAmnLTf9+vK62CIKFXOF8Wmgt3Dslx2o5UMyg1f9M/oDCAClJ1BNeJUdVLxHa8o5V82VjdgWHE2q7if0NNxK6AtPZl1OviiNzQiDIL7k5jhn41jXb0MITxSQ== [email protected]
@d6rkaiz
d6rkaiz / hack.sh
Created June 19, 2012 18:06 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@datenimperator
datenimperator / Gemfile
Created September 7, 2012 18:55
Sinatra, sprockets, compass, bootstrap-sass playing together
source :rubygems
gem 'shotgun', :group=>:development
gem 'rack-cache'
gem 'sinatra', :require => 'sinatra/base'
gem 'sinatra-support'
gem 'haml'
@inouetakuya
inouetakuya / td-agent.conf
Last active December 13, 2015 19:58
sample of td-agent config file
# ステップバイステップで学ぶ Fluentd + GrowthForecast でグラフ作成まとめ - 彼女からは、おいちゃんと呼ばれています
# http://d.hatena.ne.jp/inouetakuya/20130216/1361015295
<source>
type forward
</source>
<match apache.access>
type copy
@robmiller
robmiller / git-cleanup-repo
Last active February 27, 2024 10:09
A script for cleaning up Git repositories; it deletes branches that are fully merged into `origin/master`, prunes obsolete remote tracking branches, and as an added bonus will replicate these changes on the remote.
#!/bin/bash
# git-cleanup-repo
#
# Author: Rob Miller <[email protected]>
# Adapted from the original by Yorick Sijsling
git checkout master &> /dev/null
# Make sure we're working with the most up-to-date version of master.
git fetch
@syzdek
syzdek / ipv6-regex-test.sh
Last active October 5, 2024 06:10
Simple script to test my IPv6 regular expression.
#!/bin/sh
#
# Use posixregex CLI tool from: https://github.com/syzdek/dmstools/blob/master/src/posixregex.c
RE_IPV4="((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
posixregex -r "^(${RE_IPV4})$" \
127.0.0.1 \
10.0.0.1 \
192.168.1.1 \
@jvehent
jvehent / cipherscan top domains
Created September 26, 2013 07:06
Cipherscan of major internet websites that have HTTPS enabled. The output shows the server ciphers preferences, TLS version and PFS key size if present. https://github.com/jvehent/cipherscan
$ for site in google.com facebook.com youtube.com yahoo.com wikipedia.org linkedin.com microsoft.com twitter.com amazon.com blogspot.com tumblr.com netflix.com mozilla.org marketplace.mozilla.com login.persona.org; do echo;echo "-- $site --"; ./CiphersScan.sh $site:443;done
-- google.com --
prio ciphersuite protocol pfs_keysize
1 ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 ECDH,P-256,256bits
2 ECDHE-RSA-RC4-SHA TLSv1.2 ECDH,P-256,256bits
3 ECDHE-RSA-AES128-SHA TLSv1.2 ECDH,P-256,256bits
4 AES128-GCM-SHA256 TLSv1.2
5 RC4-SHA TLSv1.2
6 RC4-MD5 TLSv1.2
@plentz
plentz / nginx.conf
Last active November 19, 2024 22:27
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@Kuniwak
Kuniwak / 2013_11_15_githubjp_note.markdown
Last active October 30, 2018 07:06
「GitHub トレーニングチームから学ぶ Git の内部構造」のノートです。 曖昧なところもあるので、間違いがあったら教えてください! http://connpass.com/event/3808/

GitHub トレーニングチームから学ぶ Git の内部構造

Graphs, Hashes, and Compression, Oh My!

Hash について

従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。