Skip to content

Instantly share code, notes, and snippets.

View ito32bit's full-sized avatar

Masamichi Ito ito32bit

View GitHub Profile
@ito32bit
ito32bit / update-lxqt.sh
Created August 14, 2025 23:32
サブディレクトリ ’lxqt’ を作成後にこれを実行する (Lubuntu と Manjro で使用中 2025-08)
#!/bin/bash
set -o errexit
export LXQT_PREFIX=/usr
export LXQT_JOB_NUM=2
sudo date
cd lxqt
time nice ionice -c2 git pull
time nice ionice -c2 git submodule init
@ito32bit
ito32bit / Update-lxqt
Last active December 14, 2020 07:02 — forked from stefonarch/Update-lxqt
Update and compile lxqt-components
#! /usr/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
LOG=/var/log/lxqt-compile.log
date > $LOG
cd ~/../lxqt
for i in \
libqtxdg \
lxqt-build-tools \
@ito32bit
ito32bit / bugzilla-howto.xml
Created November 21, 2020 11:02 — forked from liangtai/bugzilla-howto.xml
Gentoo文書日本語翻訳
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/bugzilla-howto.xml,v 1.17 2010/02/28 06:14:00 nightmorph Exp $ -->
<guide lang="ja">
<title>Gentooバグ報告ガイド</title>
<author title="Author">
<mail link="chriswhite@gentoo.org">Chris White</mail>
</author>
@ito32bit
ito32bit / romantable.txt
Last active April 5, 2020 10:42 — forked from tos-kamiya/romantable.txt
AZIK定義ファイル。Google日本語入力、mozcで利用。 http://hp.vector.co.jp/authors/VA002116/azik/azikinfo.htm
- ー
~ ~
, 、
. 。
/ ・
: ー
; っ
[ 「
] 」
a あ
@ito32bit
ito32bit / snapcraft.yaml
Created October 30, 2019 14:21 — forked from jhenstridge/snapcraft.yaml
Using the gtk-common-themes snap
name: gtk3-demo
version: '0.1'
summary: A demonstration application for features of GTK
description: |
This snap contains the gtk3-demo application, using theme data
provided by one or more external snaps.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict
@ito32bit
ito32bit / watch-dirty.sh
Created October 6, 2019 08:59
Print dirty キャッシュのダーティを表示するスクリプト
#!/bin/bash
#
# ダーティーの表示
#
echo Time nr_dirty nr_writeback nr_dirty_threshold nr_dirty_background_threshold
while true; do
cat /proc/vmstat | grep -E "^nr_(dirty|writeback )" | awk 'BEGIN{ print strftime("%H:%M:%S") }{ print "\t" $2 }' | tr -d "\n"
# cat /proc/{vmstat,meminfo} | egrep "^nr_dirty|^nr_writeback" | awk 'BEGIN{ print strftime("%H:%M:%S") }{ print "\t" $2 }' | tr -d "\n"
@ito32bit
ito32bit / set-swap-out.sh
Last active October 6, 2019 09:41
Set sysctl for Swap out. 積極的にスワップさせてアプリケーション起動のレスポンスを速くする
#!/bin/bash
#
# Swap out をテストするための設定
sudo sysctl vm.swappiness=99 # Default: 60
# 1: メモリをアプリケーション優先で使用する
# 99: メモリをキャッシュ優先で使用する
sudo sysctl vm.vfs_cache_pressure=1 # Default: 100
# 1: メモリをVFSバッファ(inode/directory)優先で使用する
@ito32bit
ito32bit / desktopentry.sh
Last active August 31, 2019 11:47 — forked from hyperdarker/desktopentry.sh
Desktop Entry Generator デスクトップエントリを作成する
#!/bin/bash
echo "#######################################"
echo "Welcome to the desktop entry generator!"
echo "#######################################"
read -p 'App Name: ' name
read -p 'Desktop Entry filename :' entry
read -p 'Absolute path to exec file: ' exe
read -p 'Absolute path to icon file : ' icon
read -p 'Comment : ' comment
@ito32bit
ito32bit / lxqt-compton_ja.desktop
Created August 31, 2019 11:39
LXQT autostart desktop-entry 日本語ファイル
Name[ja]=Compton (X コンポジター)
GenericName[ja]=X コンポジター
Comment[ja]=コンポジット機能(ウィンドウに特殊効果)をつけます
@ito32bit
ito32bit / update-desktop-entry.sh
Created August 30, 2019 04:54
デスクトップエントリの日本語 [ja] の記述部分を更新します
#!/bin/bash
#
# デスクトプエントリのファイルを 更新します
# コピー後に、再起動すると日本語の表示が変わります
#
echo "デスクトップエントリの ファイルを更新します"
# スクリプトの概要
# 私は、スクリプトを書き始めて間もないので、変な処理をしているかもしれません!?