Skip to content

Instantly share code, notes, and snippets.

@sheepla
sheepla / 小さな道具を組み合わせてWayland環境でスクリーンショット/スクリーンキャストを撮る.md
Last active May 25, 2024 00:02
小さな道具を組み合わせてWayland環境でスクリーンショット/スクリーンキャストを撮る

📸小さな道具を組み合わせてWayland環境でスクリーンショット/スクリーンキャストを撮る

長らくX11とi3wmを使っていたが、重い腰を上げてWaylandに入門してみた。

Hyprland、Sway等、wl-toolsベースのWaylandコンポジタを使用している場合、スクリーンショット/スクリーンキャストを撮るには、grimwf-recorder 等のツールを使う。 小さなユーティリティを柔軟に組み合わせて目的を達成するやり方が面白かったのでここにメモする。

各種ユーティリティをインストールする

@rougier
rougier / mastodon-tl-alternative.el
Last active July 24, 2023 16:13
A different timeline layout for the Emacs mastond client
;;; init-mastodon.el --- Mastodon layout mockup -*- lexical-binding: t -*-
;; Copyright (C) 2022 Nicolas P. Rougier
;; This file is not part of GNU Emacs.
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
@rougier
rougier / nano-minibuffer.el
Created March 25, 2022 09:54
Minibuffer frame for Nano Emacs
;; Nicolas .P Rougier emacs configuration - mini-frame configuration
;; ---------------------------------------------------------------------
(require 'vertico)
(require 'marginalia)
(require 'mini-frame)
(defun minibuffer-setup ()
;; This prevents the header line to spill over second line
(let ((inhibit-message t))
@mpppk
mpppk / clean_architecture.md
Last active May 25, 2024 13:00
クリーンアーキテクチャ完全に理解した

2020/5/31追記: 自分用のメモに書いていたつもりだったのですが、たくさんのスターを頂けてとても嬉しいです。
と同時に、書きかけで中途半端な状態のドキュメントをご覧いただくことになっており、大変心苦しく思っています。

このドキュメントを完成させるために、今後以下のような更新を予定しています。

  • TODO部分を埋める
  • 書籍を基にした理論・原則パートと、実装例パートを分割
    • 現在は4層のレイヤそれぞれごとに原則の確認→実装時の課題リスト→実装例という構成ですが、同じリポジトリへの言及箇所がバラバラになってしまう問題がありました。更新後は、実装時の課題リストを全て洗い出した後にまとめて実装を確認する構成とする予定です。

2021/1/22追記:

現在monacoindの開発についてはテクノブレイク・フォン・モナーバウム(以下ワタナベ氏)が一任しています。
連絡は基本取らないようですが、問題等あればPullRequest及びissueをgithubにて出すことで対応してもらうことは可能です。
monacoinの開発と言うのは何を指すのか?と言いますと基本的には周辺環境の開発を指します。
coind自体以外の互換コア開発(monad(golang実装),monacoinj(Java実装)など)についてはワタナベ氏以外が行っています。
誰に許可を取って開発していいか分からないと言うのはありますが、許可を取る必要は特にありません。
しいて言うならば、他のウォレット等との互換性を保つための取り決めは守ったほうが良いかなと言うところでしょうか。
他のコインも含めて大体はここに書いてあります。
https://github.com/satoshilabs/slips
@akihiromukae
akihiromukae / gist:288b163d538d45a197b3f1b54ef385e8
Last active August 29, 2020 05:47
wkhtmltopdfをAlpine linuxに入れてPDF出力する
まずはここのDockerfileを参考にするだけだとxvfbが足りなくて動かないので16行目に追加し、
https://github.com/LoicMahieu/alpine-wkhtmltopdf/blob/master/Dockerfile
以下のものも参考にdbusはdbusパッケージにあるdbus-genuuidを実行しておかないと、xvfb実行時にエラーになるので35行目に追加。
http://kernhack.hatenablog.com/entry/2016/05/28/101626
日本語ならIPAFontも入れると良いが、ググればすぐにでてくるので割愛。
これだけだと、CSSが効かない状態でPDF出力されるので別途対応が必要。ヘッドレスブラウザが必要?
FROM alpine:3.3
RUN apk add --no-cache \
@missingno15
missingno15 / showroom-watch
Created October 9, 2017 18:05
script that i use to record showroom streams
#!/usr/bin/env ruby
abort("This script requires Ruby 2.4 or higher") if RUBY_VERSION.to_f < 2.4
# Expects command to be run like
# `showroom-watch https://www.showroom-live.com/48_Orin_Mutou`
if ARGV[0] && /^https:\/\/www\.showroom-live\.com\/.*$/.match?(ARGV[0])
url = ARGV[0]
else
abort("You must give a url as an argument (e.g. `./showroom-watch https://www.showroom-live.com/48_NAKAI_RIKA`)")
@matthewzring
matthewzring / markdown-text-101.md
Last active May 26, 2024 03:29
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@mono0926
mono0926 / commit_message_example.md
Last active May 23, 2024 00:48
[転載] gitにおけるコミットログ/メッセージ例文集100
@saitoha
saitoha / README.txt
Last active June 19, 2022 09:51
Install mlterm-cocoa via Homebrew
# install
$ brew install https://gist.githubusercontent.com/saitoha/3377f59b0bf87882f319/raw/mlterm-cocoa.rb
# settings
$ mkdir $HOME/.mlterm
$ curl https://gist.githubusercontent.com/saitoha/3377f59b0bf87882f319/raw/color > $HOME/.mlterm/color
$ curl https://gist.githubusercontent.com/saitoha/3377f59b0bf87882f319/raw/font > $HOME/.mlterm/font
$ curl https://gist.githubusercontent.com/saitoha/3377f59b0bf87882f319/raw/main > $HOME/.mlterm/main