Skip to content

Instantly share code, notes, and snippets.

View kamok's full-sized avatar

Ka Mok kamok

  • New York City
View GitHub Profile
@eneko
eneko / list-of-curl-options.txt
Last active April 25, 2024 12:21
List of `curl` options
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
@WaKeMaTTa
WaKeMaTTa / migration.rb
Last active April 17, 2020 08:13
Rails migration with foreign key cascade
class UpdateForeignKey < ActiveRecord::Migration[5.0]
def change
add_reference :posts, :users, index: true, foreign_key: { on_delete: :cascade }
end
end
@wholypantalones
wholypantalones / stateprov.json
Created April 1, 2014 15:17
US States And Canadian Provinces In JSON format
[{
"name": "Alabama",
"abbreviation": "AL"
}, {
"name": "Alaska",
"abbreviation": "AK"
}, {
"name": "American Samoa",
"abbreviation": "AS"
}, {