まず手元でパッチを当てるためのブランチを作成。ここではlocal/patchとする。このブランチはpushせず、手元で変更内容を反映したcommitを格納するためだけに使う。
* ここにローカルのパッチ (local/patch)
|
* (origin/main/HEAD)
| #!/bin/bash | |
| # The author of this script, KisaragiEffective and Kisaragi Marine, put this script | |
| # under CC0. Please refer https://creativecommons.org/publicdomain/zero/1.0/legalcode to | |
| # its full-text. | |
| red() { | |
| tput setaf 1 | |
| } | |
| green() { |
// [email protected]/src/device.rs
#[derive(Debug)]
pub struct Device<'nvml> {
device: nvmlDevice_t,
nvml: &'nvml Nvml,
}| #!/bin/bash | |
| # This file is under CC-by-SA 3.0, per https://wiki.ubuntulinux.jp/UbuntuTips/Others/ReinstallGrub2. | |
| # To see more info, please visit above page. | |
| efi=$(ls -ld /sys/firmware/efi 2>/dev/null | grep .>/dev/null && echo "1" || echo "0") | |
| echo "block device: " && read X | |
| alias mkdirs="mkdir -p $1" | |
| if [[ "$efi" == "1" ]]; then | |
| echo "boot device: " && read Y | |
| echo "main device: " && read Z | |
| sudo mkdirs /mnt/boot/efi |
| @new _root_.scala.annotation.implicitNotFound("Could not find an instance of PositiveInt for ${T}") | |
| abstract trait PositiveInt[T] extends _root_.scala.Any with _root_.scala.Serializable { | |
| def wrapPositive(int: Int): T; | |
| def asInt(t: T): Int | |
| }; | |
| object PositiveInt extends scala.AnyRef { | |
| def <init>() = { | |
| super.<init>(); | |
| () | |
| }; |
Wikimedia Commonsの1枚の画像に20%のトラフィックが集まる T273741 ・User-Agent: "" ・Referer: "" ・主にインドから ・IPに規則性は見られない
Mitron TV (インドにおけるTikTokの代替)、Say Nameste (インド版Zoomの代替) がそのファイルをインターネットへ接続されているかどうかを調べるためにゲットする。Say Namasteはビデオの接続をチェックするために。
ファイルを改名してはどうか?
| require "nokogiri" | |
| require "open-uri" | |
| html = open("https://www.colordic.org") | |
| doc = Nokogiri::HTML.parse(html, nil, "UTF-8") | |
| # [0]: html color name, [1]: actual color code headed '#' | |
| doc.css('table')[0].css("td").map {|x| x.css("a")[0].inner_html.split("<br>") } | |
| # TODO: other format |