Skip to content

Instantly share code, notes, and snippets.

View ignar's full-sized avatar
💭
🇨🇦🇩🇪🇺🇦 Fewer lines, thus fewer bugs

Artem Melnykov ignar

💭
🇨🇦🇩🇪🇺🇦 Fewer lines, thus fewer bugs
View GitHub Profile
require 'active_support/all'
class User
attr_accessor :name, :admin
def initialize(options = {}, &block)
options.each do |k,v|
self.public_send "#{k}=", v
end
@ignar
ignar / reset_routing_table.sh
Created February 11, 2018 20:57 — forked from bmaddy/reset_routing_table.sh
Reset routing table on OSX
#!/usr/bin/env bash
# Reset routing table on OSX
# display current routing table
echo "********** BEFORE ****************************************"
netstat -rn
echo "**********************************************************"
for i in {0..4}; do
sudo route -n flush # several times