Skip to content

Instantly share code, notes, and snippets.

View Hayao0819's full-sized avatar

Yamada Hayao Hayao0819

View GitHub Profile
@Hayao0819
Hayao0819 / ping-gen
Created February 1, 2020 02:35
引数にsvgを指定することで、freedesktopのhicolorに準拠したpngイメージを生成できます。
#!/usr/bin/env bash
size=(16 20 22 24 32 36 40 48 64 72 96 128 192 256 480 512 1024)
current_path=$(cd $(dirname ${0}) && pwd)/$(basename ${0})
current_dir=$(cd $(dirname ${0}) && pwd)
out=${current_dir}/out
function error_cli () { echo -e ${@} >&2; }
#!/usr/bin/env bash
## ArchLinux PackageList Ganarater
output="./alpg-list.txt"
comm -23 <(pacman -Qeq | sort) <(pacman -Qgq base base-devel | sort) >> $output
@Hayao0819
Hayao0819 / PKGBUILD
Last active March 5, 2020 06:03
Flast-PKGBUILD
# Maintainer: Yamada hayao <hayao@fascode.net>
# Contributor: Aoichaan0513 <at Aoichaan0513>
pkgname=flast
pkgver=80.1.1
pkgrel=1
pkgdesc='Cross-platform browser based on Chromium.'
arch=('x86_64')
url='https://github.com/Aoichaan0513/flast'
license=('GPL')
depends=('at-spi2-core' 'desktop-file-utils' 'gtk3' 'hicolor-icon-theme' 'libappindicator-gtk3' 'libnotify' 'libsecret' 'libutil-linux' 'libxss' 'libxtst' 'nss' 'xdg-utils')
@Hayao0819
Hayao0819 / .conkyrc
Created April 9, 2020 04:47
.conkyrc
alignment top_right
own_window_argb_visual true
own_window_argb_value 140
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
@Hayao0819
Hayao0819 / PKGBUILD
Created May 4, 2020 14:24
ElectronMarinのdebをArchLinux用に再圧縮します。
# Maintainer: Yamada hayao <hayao@fascode.net>
pkgname=electronmarin-bin
pkgver=1.0.1
pkgrel=1
pkgdesc='不特定多数とのコニュニケーションに特化したリアルタイムチャットアプリケーション'
arch=('x86_64')
url='https://sites.google.com/view/submarin/top#h.4s2o28mtyxh9'
license=('custom')
depends=('at-spi2-core' 'desktop-file-utils' 'gtk3' 'hicolor-icon-theme' 'libappindicator-gtk3' 'libnotify' 'libsecret' 'libutil-linux' 'libxss' 'libxtst' 'nss' 'xdg-utils')
@Hayao0819
Hayao0819 / aptpac
Created May 16, 2020 04:02
pacaptに対応したaptpac
#!/bin/bash
#
# __
# /\ \__
# __ _____\ \ ,_\ _____ __ ___
# /'__`\ /\ '__`\ \ \//\ '__`\ /'__`\ /'___\
#/\ \L\.\\ \ \L\ \ \ \\ \ \L\ /\ \L\.\_/\ \__/
#\ \__/.\_\ \ ,__/\ \__\ \ ,__\ \__/.\_\ \____\
# \/__/\/_/\ \ \/ \/__/\ \ \/ \/__/\/_/\/____/
# \ \_\ \ \_\
@Hayao0819
Hayao0819 / checksum.sh
Last active June 6, 2020 12:42
MD5やSHA256の検証や生成を自動で行うツール
#!/usr/bin/env bash
extension="iso" # 検証を行うファイルの拡張子
algorithm_list=("md5" "sha256") # 検証を行うアルゴリズム
dir=$(pwd)
verbose=false
testmode=false
mode= # chk or gen
nosave=false
force=false
@Hayao0819
Hayao0819 / alterlinux-jp.sh
Created June 20, 2020 15:18
AlterLinuxに日本語入力を追加するスクリプト
#!/usr/bin/env bash
set -eu
#-- 関数定義 --#
# ウィンドウの基本型
function window () {
zenity \
$@ \
@Hayao0819
Hayao0819 / gist:d945a03a1426b3254b7fe19784033ad8
Last active June 22, 2020 14:24
パッケージの更新を通知するスクリプト
#!/usr/bin/env bash
# Time to check for updates(s)
interval=3600
# CLI mode
#mode="cli"
mode="gui"
main() {
# システム情報:
1. `uname -a`:
Linux Hayao-PC-ArchLinux 5.7.12-zen1-1-zen #1 ZEN SMP PREEMPT Fri, 31 Jul 2020 17:38:26 +0000 x86_64 GNU/Linux
2. `lsb_release -a`:
LSB Version: 1.4
Distributor ID: Arch
Description: Arch Linux