Skip to content

Instantly share code, notes, and snippets.

function! s:separate_defenition_to_each_filetypes(ft_dictionary) "{{{
let result = {}
for [filetypes, value] in items(a:ft_dictionary)
for ft in split(filetypes, ",")
if !has_key(result, ft)
let result[ft] = []
endif
call extend(result[ft], copy(value))
module CompassRails
module Test
module FileHelper
include DebugHelper
def mkdir_p(dir)
debug("Creating Directory: #{dir}".foreground(:green))
::FileUtils.mkdir_p dir
assert File.directory?(dir), "mkdir_p: #{dir} failed"
end

アクシデント発生!やられた!

9月1日に、顧客より「御社のHPが改ざんされている」という一報が入った。その情報を元に調べて見ると、自社で使っていたロリポップのサーバーが数万件規模でクラッキングされたようだ。 どうやら、攻撃を仕掛けたハッカーはFacebookページにて攻撃済みのドメイン情報を公開しているらしい。 あなたはその情報を元に、自社で運営しているHPがハッキングされたのか調査することにした。

指令1

上司A「サーバーのログを見ると、不正アクセスがあった時間は"2013-09-05"のようだ。9月5日のクラッキングリスト(0905.txt)をダウンロードしたので、上記50件を別のファイルに切り出して欲しい。」

let g:user_emmet_mode = 'iv'
let g:user_emmet_leader_key = '<C-Y>'
let g:use_emmet_complete_tag = 1
let g:user_emmet_settings = {
\ 'lang' : 'ja',
\ 'html' : {
\ 'filters' : 'html',
\ },
\ 'css' : {
\ 'filters' : 'fc',
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>アカウントの登録方法</title>
<style type="text/css">
#container {
margin: 10px auto;

title: 打ち合わせメモ

May 12 2014

内容

1. 変更点の確認

  1. powのアドレスが変わった。同じWifi内で接続できるように変更
module CarrierWave
module Uploader
module RiakOpenable
# When using riak, we can not access to file directory.
# RiakOpenable#open provide tempfile which contains copy from server.
def open(*args)
options = args.extract_options!
file_opts = options.merge(binmode: true)
@alpaca-tc
alpaca-tc / batch_downloading.js
Created December 19, 2014 06:09
batchDownload
// Required plugins
// - https://github.com/eligrey/FileSaver.js
// - https://github.com/Stuk/jszip
// feature-detect against window.FormData, window.Blob and window.ArrayBuffer
var isSupported = !!(window.FormData && window.Blob && window.ArrayBuffer);
var downloadFile = function (url) {
var xhr = new XMLHttpRequest(),
deferred = new $.Deferred();

スケジュール表

俺の考えた最強のpixivクローン@05/13(水):いっくん

目標:

  • Webサーバーを立ち上げられるようになる。
  • リクエストを送れるようになる。(意味を知る)

Webサーバーとは(サーバ・クライアント)

[alias]
soft=reset --soft HEAD^
freset = !git clean -fd | git reset --hard
[user]
email= [email protected]
name= alpaca-tc
[core]
trailing-space = false