Skip to content

Instantly share code, notes, and snippets.

@lltcggie
lltcggie / AUTOMATON_replace_hatebu_button.js
Last active May 5, 2024 07:41
AUTOMATON はてブボタン置き換え
// ==UserScript==
// @name AUTOMATON はてブボタン置き換え
// @namespace https://gist.github.com/lltcggie/
// @version 1.0
// @description AUTOMATONのはてブボタンをいつものに置き換える
// @author lltcggie
// @homepageURL https://gist.github.com/lltcggie/f69e6162e997b6aa485037ca86939928
// @updateURL https://gist.github.com/lltcggie/f69e6162e997b6aa485037ca86939928/raw/AUTOMATON_replace_hatebu_button.js
// @downloadURL https://gist.github.com/lltcggie/f69e6162e997b6aa485037ca86939928/raw/AUTOMATON_replace_hatebu_button.js
// @match https://automaton-media.com/articles/*
[Adblock Plus 3.1]
! Title: ニコニコ余計なものを消すフィルタ
! Homepage: https://gist.github.com/lltcggie/2502b1963902dbe5f8eb66606388ed19/
!
!-----------------------General advert blocking filters-----------------------!
www.nicovideo.jp##.MainContainer-marquee
www.nicovideo.jp##[class="InView BottomContainer"]
www.nicovideo.jp##.FooterContainer
www.nicovideo.jp##li.nicoadVideoItem
||nicoad.nicovideo.jp^$domain=nicovideo.jp
@lltcggie
lltcggie / rocketchat.md
Last active September 1, 2021 08:02
Rocket.ChatをWindowsでデバッグ
@lltcggie
lltcggie / gist:95329e4e1595af2e0987cf7603d081d6
Last active March 21, 2021 13:32
シンボリックリンク調査

環境

  • Windows 10 Pro バージョン 1909 OSビルド 18363.1256
  • Git for Windows 2.31.0

Git for Windowsでシンボリックリンクを有効にするのはこの記事を参考にした。 https://qiita.com/ucho/items/c5ea0beb8acf2f1e4772

Git Bash

問題がない例

@lltcggie
lltcggie / N8103-173 RAID6パリティ破壊実験.md
Last active January 23, 2020 18:41
パリティ破壊実験

実験内容

セクタサイズ512、ストライプサイズ32k(0x8000)とする

N8103-173で構成したRAID 6の論理ドライブのセクタ100(アドレス 0xC800)に以下を書き込む。

00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

すると物理ドライブ上の0x4800 (= floor(0xC800 / 0x8000 / 2) * 0x8000 + 0xC800 % 0x8000) に書き込まれる。

set path=%path%;C:\Program Files (x86)\Graphviz2.38\bin
dot -Tpng graph.dot -o graph.png
@lltcggie
lltcggie / gist:c677365d7aa7858d59231adfbdc72d62
Created September 22, 2018 15:41
OpenCVビルドコマンド例
git clone --recursive https://github.com/opencv/opencv.git
cd opencv
mkdir build
cd build
cmake .. -G "Visual Studio 15 Win64" ^
-DCMAKE_INSTALL_PREFIX=C:\Projects\menoh\install ^
-DBUILD_WITH_STATIC_CRT=OFF ^
-DBUILD_IPP_IW=OFF ^
-DBUILD_ITT=OFF ^
@lltcggie
lltcggie / gist:53625aebabe50ef9146ec3396f921618
Last active September 24, 2018 14:59
PyTorchビルドコマンド
開発者コマンド プロンプトでPyTorchのフォルダへ移動
cd scripts
set CMAKE_INSTALL_PREFIX=%CD%\..\..\libs
set CMAKE_BUILD_TYPE=Release
set USE_CUDA=ON
set GEN_TO_SOURCE=ON
set CMAKE_GENERATOR="Visual Studio 15 2017 Win64"
build_windows.bat
@lltcggie
lltcggie / caffe-builder cmd python.txt
Created February 22, 2016 15:23
caffe-builder cmd python
Python(x64) PATHに追加すること
NumPyインストール
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
numpy-1.9.3+mkl-cp27-none-win_amd64.whl ダウンロード
コマンドプロンプトを管理者権限で起動
pip install pip --upgrade
pip install wheel
pip install D:\numpy-1.9.3+mkl-cp27-none-win_amd64.whl
@lltcggie
lltcggie / gist:6af687bca94aba8c78b4
Last active May 11, 2016 09:41
caffe-builder waifu2x-caffe用コンパイルコマンド
ビルドは複数回やらないとエラーで途中で止まるので注意
cmake -G "Visual Studio 12 2013 Win64" -DUSE_CUDNN=ON -DBUILD_python=OFF -DUSE_OPENCV=OFF -DUSE_LEVELDB=OFF -DUSE_LMDB=OFF -DUSE_STATIC_RUNTIME_LINK=OFF -DBLAS=Open -DOPENBLAS_NUM_THREADS=64 ..\caffe-builder
cmake --build .
cmake --build .
cmake --build .