Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
while true; do
if [[ -n `pidof mousepad` ]]; then
#wmctrl -c mousepad && echo 1 ||exit 0
wmctrl -c mousepad || exit 0
fi
done
@tuby2017
tuby2017 / post-install
Created April 25, 2018 05:32
arch avidemux post-install fix permission error
alias ql='pacman -Ql'
~ $ ls -l xnew
-rw-r--r-- 1 s s 315 Mar 24 15:30 xnew
~ $ ql qt5ct|grep t.so
qt5ct /usr/lib/qt/plugins/platformthemes/libqt5ct.so
~ $ ls -l `ql qt5ct|grep t.so|cut -d' ' -f2`
-rwxr-xr-x 1 root root 254920 Feb 4 13:25 /usr/lib/qt/plugins/platformthemes/libqt5ct.so
@tuby2017
tuby2017 / abc
Last active April 25, 2018 05:27
my multiverse collection
#1 causual
LifeProTips
CringeAnarchy
ActLikeYouBelong
Justrolledintotheshop
InternetIsBeautiful
TwoXChromosomes
todayilearned
UnethicalLifeProTips
Showerthoughts
@tuby2017
tuby2017 / xyt.md
Last active April 25, 2018 05:17
my yt channels collection
Ctrl + A Go to the start
Ctrl + E Go to the end
Ctrl + W Delete the word before the cursor
Alt + D Delete word after the cursor
Ctrl + L Clears the Screen
Ctrl + U Clears line before cursor position
Ctrl + K Clear the line after the cursor
Ctrl + H backspace
Ctrl + R search through previously used commands
Ctrl + C Kill proc
@tuby2017
tuby2017 / sfontlist.sh
Created October 25, 2017 01:35
list sf2 instrument
#!/bin/sh
FileList=${1%.*}-list.txt
echo "inst 1" | fluidsynth -a alsa $1 > $FileList
sed -n -i '/inst 1/,$p' $FileList
sed -i '1d;$d' $FileList
@tuby2017
tuby2017 / PKGBUILD
Created October 23, 2017 04:02
qmidiplayer 0.8.3 pkgbuild
# Maintainer: Chris Xiong <chirs241097@gmail.com>
pkgname=qmidiplayer
pkgver=0.8.3
pkgrel=1
pkgdesc="A cross-platform midi file player based on libfluidsynth and Qt."
arch=('i686' 'x86_64')
url="https://chrisoft.org/QMidiPlayer/"
license=('GPL')
depends=('qt5-base' 'qt5-quickcontrols' 'rtmidi' 'fluidsynth' 'freetype2' 'zlib' 'libjpeg-turbo' 'libpng' 'glfw' 'glew')
provides=(qmidiplayer)
@tuby2017
tuby2017 / z未儲存文件 1.txt
Last active April 25, 2018 05:29
z未儲存文件\ 1
Ctrl+End >> end of file
#!/bin/sh
echo "Adding 40_custom." >&2
exec tail -n +4 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
sudo fdisk -l
@tuby2017
tuby2017 / PKGBUILD
Created October 21, 2017 19:31
pencil2d_2017-5-14
# $Id$
# Maintainer: Benjamin Robin <dev@benjarobin.fr>
# Contributor: Otto VonStein <otto>
pkgname=pencil2d-git
srcdir=pencil2d
pkgver=2017.05.14
pkgrel=1
pkgdesc="Animation/drawing software, that lets you create traditional hand-drawn animation using both bitmap and vector graphics"
arch=('i686' 'x86_64')