Skip to content

Instantly share code, notes, and snippets.

View 2get's full-sized avatar
😌
Think

Mayoto Yoshida 2get

😌
Think
  • GMO Pepabo, Inc.
  • Tokyo, Japan
View GitHub Profile
@2get
2get / DOMSubtreeModified.html
Created July 18, 2013 03:09
DOMSubtreeModified working test.
<!DOCTYPE html>
<meta charset="utf-8">
<title>DOMSubtreeModified</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$(function() {
$('#activity').on('DOMSubtreeModified', function(e) {
console.log('DOMSubtreeModified', e);
});
@2get
2get / github_development.md
Last active November 29, 2023 01:38
GitHubでの開発の流れ

GitHubでの開発の流れ

1. issue をたてる

不具合修正などは issue に詳しい内容を書く

2. ローカルで master からブランチを作る

git checkout -b ブランチ名

@2get
2get / production.rb
Created December 9, 2013 16:17
Rails Action Mailer Configuration for MuuMuuMail (https://muumuu-mail.com/)
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: 'smtp.muumuu-mail.com',
port: 465,
domain: '<Your Domain>',
user_name: '<Mail Account>',
password: '<Password>',
authentication: :plain,
ssl: true,
tls: true
@2get
2get / day_name_to_wday.rb
Created April 30, 2014 06:21
指定された曜日名に対する曜日 (0-6, Sunday is zero) を返す
# 指定された曜日名に対する曜日 (0-6, Sunday is zero) を返す
# Example:
# WDAY('Sunday')
# # => 0
def WDAY(day_name)
Date.parse(day_name).wday
end
@2get
2get / number_of_days_elapsed.js
Created May 1, 2014 06:10
Number of days elapsed.js
var d = new Date();
Math.floor((d.getTime() - new Date(d.getFullYear(), 0, 1).getTime()) / (1000 * 60 * 60 * 24));
@2get
2get / 500 OOPS: vsftpd: refusing to run with writable root inside chroot().md
Last active August 29, 2015 14:01
500 OOPS: vsftpd: refusing to run with writable root inside chroot()

Download tha latest vsftpd dev package from http://security.ubuntu.com/ubuntu/pool/main/v/vsftpd/

$ wget http://security.ubuntu.com/ubuntu/pool/main/v/vsftpd/vsftpd_3.0.2-1ubuntu2.14.04.1_amd64.deb
$ sudo dpkg -i vsftpd_3.0.2-1ubuntu2.14.04.1_amd64.deb

/etc/vsftpd.conf

@2get
2get / 530 Login incorrect. Ubuntu 12.04 or 12.10 vsftpd.md
Created May 20, 2014 03:21
530 Login incorrect. Ubuntu 12.04 or 12.10 vsftpd
$ vi /etc/vsftpd.conf

change to ftp from vsftpd

pam_service_name=ftp
@2get
2get / vsftpd.conf
Created May 20, 2014 03:27
Ubuntu 12.10 vsftpd: version 3.0.2 my configuration
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=ftp
@2get
2get / Display the configuration file, ignore comments and blank lines.md
Created May 20, 2014 03:31
Display the configuration file, ignore comments and blank lines
@2get
2get / Public Static Site AWS Policy.md
Created May 29, 2014 11:00
Public Static Site AWS Policy