Skip to content

Instantly share code, notes, and snippets.

View hnishide's full-sized avatar

Hisaya Nishide hnishide

  • https://throo.io
  • Fukuoka, Japan
View GitHub Profile
@hnishide
hnishide / profile.md
Created January 17, 2025 16:05 — forked from mul14/profile.md
iTerm key bindings

Open the iTerm preferences ⌘+, and navigate to the Profiles tab (the Keys tab can be used, but adding keybinding to your profile allows you to save your profile and sync it to multiple computers) and keys sub-tab and enter the following:

Delete all characters left of the cursor

⌘+←Delete Send Hex Codes:

  • 0x18 0x7f – Less compatible, doesn't work in node and won't work in zsh by default, see below to fix zsh (bash/irb/pry should be fine), performs desired functionality when it does work.
  • 0x15 – More compatible, but typical functionality is to delete the entire line rather than just the characters to the left of the cursor.

Delete all characters right of the cursor

⌘+fn+←Delete or ⌘+Delete→ Send Hex Codes:

  • 0x0b
@hnishide
hnishide / check_r53_domain_availability.rb
Created July 15, 2021 03:05
Check availability of domain names at Route 53
sld = "foobar" # Second Level Domain, which is "foobar" in "foobar.com"
tlds = %w[
ac academy accountants adult agency apartments associates auction audio
band bargains bike bingo biz black blue boutique builders business buzz
cab cafe camera camp capital cards care careers cash casino catering cc
center ceo chat cheap church city claims cleaning click clinic clothing
cloud club coach codes coffee college com community company computer
condos construction consulting contractors cool coupons credit creditcard
cruises dance dating deals delivery democrat dental diamonds diet digital
@hnishide
hnishide / hex_md5.js
Last active August 11, 2020 06:42 — forked from alexmuller/hex_md5.js
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for more info.
*/
/*