Skip to content

Instantly share code, notes, and snippets.

:shipit:
super simple cucumber salad

Samet Gunaydin rokumatsumoto

:shipit:
super simple cucumber salad
Block or report user

Report or block rokumatsumoto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8061386968e885cd69c70c315ca6cf7b
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAAATU0lEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICH
@rokumatsumoto
rokumatsumoto / Gemfile
Last active Jun 29, 2019
Configure ActsAsTaggableOn gem (acts-as-taggable-on, acts as taggable on, tagging, tags)
View Gemfile
gem 'acts-as-taggable-on', '~> 6.0'
@rokumatsumoto
rokumatsumoto / clone_https_to_ssh.sh
Created May 9, 2019
Convert HTTPS github clones to use SSH
View clone_https_to_ssh.sh
git remote set-url origin git@github.com:username/repo-name-here.git
@rokumatsumoto
rokumatsumoto / create_swap_space.md
Last active May 5, 2019
Create Swap Space on Ubuntu, Amazon Linux AMI
View create_swap_space.md

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:

@rokumatsumoto
rokumatsumoto / .git-commit-template.txt
Created Feb 25, 2019 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
View .git-commit-template.txt
# <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
@rokumatsumoto
rokumatsumoto / spec_helper.rb
Created Feb 23, 2019
Multiple types of specs in metadata
View spec_helper.rb
%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
@rokumatsumoto
rokumatsumoto / horizontal-line-with-words.html.haml
Created Feb 10, 2019
responsive horizontal line with words by Bootstrap 4.1
View horizontal-line-with-words.html.haml
.d-flex
%hr.my-auto.flex-grow-1/
.px-4 SOME TEXT HERE
%hr.my-auto.flex-grow-1/
@rokumatsumoto
rokumatsumoto / hamlit
Last active Feb 1, 2019
How to know if you are using hamlit
View hamlit
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"]
@rokumatsumoto
rokumatsumoto / restart_bluetooth.sh
Last active Jan 21, 2019
Restart Bluetooth Daemon on macOS Sierra without restarting
View restart_bluetooth.sh
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@rokumatsumoto
rokumatsumoto / postgresql-collate-ctype.sh
Last active Jan 21, 2019
postgresql collate and ctype
View postgresql-collate-ctype.sh
#!/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
You can’t perform that action at this time.