I hereby claim:
- I am rokumatsumoto on github.
- I am sametg (https://keybase.io/sametg) on keybase.
- I have a public key ASAjPyfUH3GPYbtZjMhuDxGseKRf1602hsD8ZwWX_y32Iwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| require 'nokogiri' | |
| require 'open-uri' | |
| doc = Nokogiri::HTML(open('http://hac.gov.tr/', open_timeout: 100)) | |
| File.open("hac.html", "wb") do |f| | |
| f.write(doc.to_html) | |
| end | |
| doc1 = File.open("hac.html") { |f| Nokogiri::HTML(f) } |
| #!/bin/bash | |
| # `myDB` is your database | |
| # `OWNER = "myself"` is your role (default is your username, or check psql \du) | |
| # tip: when Postgres is installed, it automatically creates a database user that matches your username, | |
| # so that you can get started right away. | |
| locale-gen tr_TR.UTF-8 |
| #!/bin/bash | |
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
| https://github.com/k0kubun/hamlit/issues/108 | |
| In Rails | |
| ActionView::Template.handler_for_extension("haml") | |
| => #<Hamlit::RailsTemplate:0x005593caad2150> | |
| In Sinatra, or any Tilt environment | |
| Tilt["haml"] |
| .d-flex | |
| %hr.my-auto.flex-grow-1/ | |
| .px-4 SOME TEXT HERE | |
| %hr.my-auto.flex-grow-1/ |
| %i(feature request).each do |type| | |
| config.when_first_matching_example_defined(type: type) do | |
| # enable db support only for feature or request specs | |
| require 'support/db' | |
| end | |
| # include these Helpers only into feature or request specs | |
| config.include(Helpers, type: type) | |
| end |
| # <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
| # |<---- Using a Maximum Of 50 Characters ---->| | |
| # Explain why this change is being made | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # Provide links or keys to any relevant tickets, articles or other resources | |
| # Example: Github issue #23 |
To check how much available RAM memory you have free:
free -m
To see if you have a swap files:
sudo swapon -s
No swap file shown? Check how much disk space you have:
| git remote set-url origin git@github.com:username/repo-name-here.git |