Skip to content

Instantly share code, notes, and snippets.

View kachick's full-sized avatar
😋
😪

Kenichi Kamiya kachick

😋
😪
View GitHub Profile
@kachick
kachick / podman-shell.nix
Created March 29, 2024 07:03 — forked from adisbladis/podman-shell.nix
Use podman within a nix-shell
{ pkgs ? import <nixpkgs> {} }:
let
# To use this shell.nix on NixOS your user needs to be configured as such:
# users.extraUsers.adisbladis = {
# subUidRanges = [{ startUid = 100000; count = 65536; }];
# subGidRanges = [{ startGid = 100000; count = 65536; }];
# };
@kachick
kachick / AuthyToOtherAuthenticator.md
Created February 13, 2024 18:56 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


*update: This might affect how easy it is to use this technique past August 2024: https://www.theverge.com/2024/1/8/24030477/authy-desktop-app-shutting-down


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

@kachick
kachick / ForkMITLicensedProject.md
Created July 1, 2022 13:17 — forked from fbaierl/ForkMITLicensedProject.md
HOWTO fork a MIT licensed project

No, you are not allowed to change the copyright notice. Indeed, the license text states pretty clearly:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

But you are allowed to add a copyright notice.

If you want to keep the MIT license, which is what I would advise you to do, you only need to add a single line to the license file, before or after Copyright (c) 2012 Some Name with your own copyright notice. The final LICENSE file will look like this:

The MIT License (MIT)

@kachick
kachick / disp_ucs_thai.rb
Created December 5, 2012 11:54 — forked from tune/disp_ucs_thai.rb
Rubyを使ってタイ語の表示文字単位で文字列を区切る ref: http://qiita.com/items/55c4347df63472346ac8
# coding: utf-8
# http://qiita.com/items/55c4347df63472346ac8
thai_str = "พี่ชาย"
thai_chars = thai_str.scan(/.(?:[\u0E31]|[\u0E33-\u0E3A]|[\u0E47-\u0E4E])*/)
@kachick
kachick / file0.rb
Created November 23, 2012 14:45 — forked from aflc/file0.rb
Ruby1.9のブロックについて勉強した ref: http://qiita.com/items/413f710b126a869cb797
(1..3).map {|x|x * 2} # => [2, 4, 6]