Skip to content

Instantly share code, notes, and snippets.

View WhiteCat6142's full-sized avatar
:octocat:

K.O. WhiteCat6142

:octocat:
  • Titech->U-Tokyo (master)
  • Tokyo,Japan
View GitHub Profile
console.log("123go!");
bsort=foldr bs []
where bs x []=[x]
bs x (y:ys)|x<=y =(x:y:ys)
|otherwise =(y:bs x ys)
import Control.Monad
import System.IO
main=setting>>zipWithM ask q a>>=print.jug.sum
setting=hSetBuffering stdin NoBuffering>>hSetBuffering stdout NoBuffering
ask x y =print x>>getChar>>=return.fromEnum.(==y)
jug n |n >= 8 = "You win!"
|otherwise="You lose"
q = ["Q1","Q2","Q3","Q4","Q5","Q6","Q7","Q8","Q9","Q10"]
a = "1234123412"
dnf install -y rkhunter zsh
chsh -s /usr/bin/zsh
rkhunter --update
rkhunter --propupd
rkhunter -c --sk
dnf install -y Thunar git ImageMagick alternatives automake boinc-client boinc-manager breeze-icon-theme clamav claws-mail dia dkms aria2 exfat-utils extra-cmake-modules freetype-devel fuse-exfat gap ghostscript-tools-fonts gnome-tweaks google-noto-cjk-fonts-common google-noto-sans-cjk-ttc-fonts gparted gphoto2 gthumb ifuse java-1.8.0-openjdk-openjfx k4dirstat kicad kleopatra krita libreoffice-langpack-ja miniupnpc-devel ibus-mozc mozc ngspice openblas p7zip poedit pngquant qalculate-gtk rawtherapee raw-thumbnailer squid thunar-archive-plugin tumbler tuned tlp xorriso siril audacity sox woff2 gnome-shell chrome-gnome-shell gnome-session-wayland-session gnome-system-monitor gedit gconf-editor gnome-system-log lightdm-gtk lightdm-gtk-greeter-settings mesa-vulkan-drivers libva-utils gimp
<<COMMENT_OUT
rpmfusion-free-release
@WhiteCat6142
WhiteCat6142 / supermoon.py
Created June 29, 2021 01:40
新月用簡易スクリプト supermoon Ver1
"""
MIT License
Copyright 2021 Whitecat6142
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
@WhiteCat6142
WhiteCat6142 / supermoon.py
Last active July 26, 2021 11:07
supermoon.py ver 1.1
"""
MIT License
Copyright 2021 Whitecat6142
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
#!/bin/bash
# install G-HAL modified Anthy
# download http://www.fenix.ne.jp/~G-HAL/soft/nosettle/im.html
# tar xf anthy-9100h.patch13- ??? .tar.xz -C /usr/local/lib64
export CXXFLAGS="-std=gnu++14"
./configure
make
make check
sudo make install
# in Tokyo, sync <1ms
# server jp.pool.ntp.org iburst
# server time.cloudflare.com iburst
server ntp.nict.jp iburst
# NICT
server s2csntp.miz.nao.ac.jp minpoll 5 asymmetry +0.21 offset 0.0042 burst
# mizusawa tenmondai
@WhiteCat6142
WhiteCat6142 / daemon.conf
Last active April 27, 2023 09:41
My PulseAudio config (Archives)
nice-level = -15
resample-method = speex-float-7
default-sample-format = s32le
default-sample-rate = 96000
default-sample-channels = 2
default-fragments = 6
default-fragment-size-msec = 16
# https://sw.kovidgoyal.net/kitty/conf/
background #464646
font_size 14.0
font_family Ubuntu Mono
Nimbus Mono PS Bold
map f4 close_window_with_confirmation
touch_scroll_multiplier 12.0
hide_window_decorations no
linux_display_server X11