I hereby claim:
- I am a2ikm on github.
- I am ikm (https://keybase.io/ikm) on keybase.
- I have a public key ASC-htoOrKqZHAobMtu_RW0WbO4LrECHegJ6ZApDr6-uuwo
To claim this, I am signing this object:
module ActiveRecord::Tasks::DatabaseTasks | |
class <<self | |
prepend Module.new { | |
def migrate(environment = env) | |
each_current_configuration(environment) { |configuration| | |
begin | |
ActiveRecord::Base.establish_connection(configuration) | |
super() | |
ensure | |
ActiveRecord::Base.establish_connection(environment.to_sym) |
before :deploy, :setup_tee do | |
require "tee" # tee gem | |
# root is where Capfile is placed. | |
root = File.dirname(File.expand_path(Rake.application.rakefile)) | |
path = File.join(root, "log/deploy_#{release_timestamp}_#{local_user}.log") | |
FileUtils.mkdir_p(File.dirname(path)) | |
file = File.open(path, "w").tap { |f| f.sync = true } | |
formatter = SSHKit.config.output |
I hereby claim:
To claim this, I am signing this object:
__deprecate def old_method(a, b, &bkock) | |
: | |
end | |
attr_accessor :old_accessor | |
__deprecate_accessor :old_accessor | |
attr_reader :old_reader | |
__deprecate_reader :old_reader |
import Foundation | |
let GlobalQueue = DispatchQueue(label: "st.aerial.Yukon.queue") | |
class EchoServer { | |
// let localQueue = dispatch_queue_create("\(EchoServer.self)", | |
// DISPATCH_QUEUE_CONCURRENT) | |
var serverSocket: Int32 | |
var clientsAccepted: [Int32 : DispatchSourceRead] |
#! /bin/bash | |
echo '吉高由里ふぃ子' |
#!/usr/bin/env ruby | |
@current = [] | |
@header = false | |
def init(time, all) | |
@current << time | |
@current << all | |
end |
[root@localhost ~]# nmcli con | |
[root@localhost ~]# nmcli con show System\ eth0 | |
[root@localhost ~]# nmcli con mod System\ eth0 +ipv4.dns "8.8.8.8 8.8.4.4" | |
[root@localhost ~]# nmcli con mod System\ eth0 ipv4.ignore-auto-dns yes | |
[root@localhost ~]# systemctl restart NetworkManager | |
[root@localhost ~]# cat /etc/resolv.conf | |
# Generated by NetworkManager | |
nameserver 8.8.8.8 | |
nameserver 8.8.4.4 |
defaults write com.apple.Terminal CopyAttributesProfile com.apple.Terminal.no-attributes |
defaults write com.apple.Terminal CopyAttributesProfile com.apple.Terminal.no-attributes |