Skip to content

Instantly share code, notes, and snippets.


dai dai

View GitHub Profile
wlib / LICENSE
Last active Jun 5, 2021
Run a shell script with bash, line-by-line, prompted on each command. Useful for running unknown scripts or debugging. Not a secure substitute for understanding a script beforehand.
MIT License
Copyright (c) 2021 Daniel Ethridge
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
majdiyassin20 /
Created Jan 19, 2021
Download Shared Folder From Google Drive Using Terminal.
curl -c ./cookie -s -L "${fileid}" > /dev/null
curl -Lb ./cookie "`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
## run chmod +x
## ./ <fileID> <fileName>
## Donate BTC : 1Ndmbt6hZn7EEwZYMYKUJWQww1HPhj1uSN
tobi / kindle.rb
Last active Apr 5, 2021
Download your Kindle Highlights to local markdown files. Great for
View kindle.rb
#!/usr/bin/env ruby
# gem install active_support
require 'active_support/inflector'
require 'active_support/core_ext/string'
# gem install webrick (only ruby3)
require 'webrick'
# gem install mechanize
shyouhei / gist:63d91a7934f31ef08e08ef4f23d0a30b
Created Aug 29, 2020
View gist:63d91a7934f31ef08e08ef4f23d0a30b






travisbrown /
Last active Mar 28, 2021
Response to cease and desist letter from John A. De Goes, CEO of Ziverge
dhh / Gemfile
Created Jun 24, 2020
HEY's Gemfile
View Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
alekseykulikov /
Last active May 12, 2021
Github Actions Ranking (June 18, 2020)

Github Actions is a CI/CD platform that gained a lot of popularity recently. I participated in building ⭐️ Lighthouse CI Action and was curious how well it performs.

But Github Marketplace UI shows no ranking information. Essentially, It's a search with random results; at least, I don't understand the order. I couldn't find ⭐️ Lighthouse CI Action in Continuous integration category after browsing 50 available pages (Each page shows 20 results, so it's possible to see only 1000 results, but CI category has 1469 😐).

I decided to build a custom script that crawls all categories and use Github Search (example query) to estimate usa

mattn /
Last active May 26, 2021
blacklist/whitelist master/slave に関する情報集め

blacklist/whitelist master/slave に関する情報集め

blacklist/whitelist、master/slave という単語は相応しくないという意見に OSS がどの様に対応すべきかを自身で考える為の情報集めです。見つけ次第、逐次更新していきます。

僕(mattn) 自身は black lives matter に同意をしています。blacklist/whitelist、master/slave という単語を廃止する事が、歴史的背景を持たない文化圏では特定の意味を持たなかった為、個人的には若干思う所はありますが、廃止自身に反対するつもりはありません。

昔から、主副を表す物には master/slave という単語が使われてきました。ハードディスクの IDE、仮想端末(pty)、色々あります。またネットワークの IP フィルタリングに関しては blacklist/whitelist と表記した物が今でも沢山あります。

我々日本人が意識せずに使っていた blacklist/whitelist、master/slave という単語が、人々にどの様に影響しうるのか、今後 OSS としてどの様に関わっていけば良いかを理解する上で、自分なりの情報集めをしたいと思っています。

mala /
Last active Oct 20, 2020
生活と意見: ソーシャルディスタンスなどと称してユーザー名や文章にスペースを挟む行為についての苦情

生活と意見: ソーシャルディスタンスなどと称してユーザー名や文章にスペースを挟む行為についての苦情


2020-05-13 追記

View Format-Table for Jupyter.ps1
function Format-Table {
begin {
$objects = [System.Collections.Generic.List[PSObject]]::new()
process {
$objects += $inputObject