Skip to content

Instantly share code, notes, and snippets.

olivertappin /
Last active May 25, 2021
Create a large file for testing
# Please note, the commands below will create unreadable files and should be
# used for testing file size only. If you're looking for something that has
# lines in it, use /dev/urandom instead of /dev/zero. You'll then be able to
# read the number of lines in that file using `wc -l large-file.1mb.txt`
# Create a 1MB file
dd if=/dev/zero of=large-file-1mb.txt count=1024 bs=1024
# Create a 10MB file
dd if=/dev/zero of=large-file-10mb.txt count=1024 bs=10240
dolpen /
Last active Feb 8, 2016


  • イカの情報は、公式サイトへの情報反映用に一部がS3にjson形式で置いてあって、人間ががんばれば読めるようになっている
  • S3のベースURLは である




View gist:9955535
- devise_for module_name
- Devise::Mapping
- @scoped_path = options[:as] ? "#{options[:as]}/#{name}" : name.to_s
- @class_name = (options[:class_name] || name.to_s.classify).to_s
# Devise::ConfirmationsController#show
def show
self.resource = resource_class.confirm_by_token(params[:confirmation_token])
sgur /
Created Jun 18, 2013
#!/usr/bin/env python
# Copyright (C) 2013 Stanislav Golovanov <>
# Strahinja Val Markovic <>
# This file is part of YouCompleteMe.
# YouCompleteMe is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or