Skip to content

Instantly share code, notes, and snippets.

View mmmpa's full-sized avatar
👷‍♂️
working

mmmpa mmmpa

👷‍♂️
working
View GitHub Profile
namespace :twitter do
task :tweet, ['message'] do |t, args|
require 'twitter'
YOUR_CONSUMER_KEY = ''
YOUR_CONSUMER_SECRET = ''
YOUR_OAUTH_TOKEN = ''
YOUR_OAUTH_TOKEN_SECRET = ''
client = Twitter::REST::Client.new do |config|
class ActiveRecord::Base
mattr_accessor :shared_connection
@@shared_connection = nil
def self.connection
@@shared_connection || retrieve_connection
end
end
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
{
"cmd": ["stylus", "$file"],
"file_regex": ".",
"selector": "source.stylus",
"osx":
{
"path": "/usr/local/bin:$PATH"
},
GRANT ALL PRIVILEGES ON *.* TO username@localhost IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
# Prefix
set-option -g prefix C-t
# View
set -g status-interval 5
set -g status-left-length 16
set -g status-right-length 50
set -g status-bg black
set -g status-fg white
source 'https://rubygems.org'
gem 'rails', '4.0.8'
gem 'mysql2'
gem 'devise'
gem 'rails_config'
@mmmpa
mmmpa / Gemfile
Last active August 29, 2015 14:07
group :development, :test do
gem 'factory_girl_rails', '~> 4.2.1'
end
group :development do
gem 'rack-mini-profiler'
end
group :test do
gem 'rspec'
sudo service nmbd stop
sudo service smbd stop
sudo service nmbd start
sudo service smbd start
auto eth0
iface eth0 inet static
address 192.168.249.128
network 192.168.249.0
netmask 255.255.255.0
broadcast 192.168.249.255
gateway 192.168.249.2
dns-nameservers 192.168.249.2
# http://qiita.com/curseoff/items/a9e64ad01d673abb6866 から
#index.docker.ioから指定したイメージを取り込む
docker pull REPOSITORY[:TAG]
#イメージ一覧を得る
docker images
#イメージからコンテナを起動する
docker run -i -t -d IMAGE /bin/bash