Skip to content

Instantly share code, notes, and snippets.

@heisvoid
heisvoid / move_cam_records.timer
Created January 24, 2018 05:03
~/.config/systemd/user/move_cam_records.timer
[Unit]
Description=Move camera records
[Timer]
OnBootSec=6min
OnUnitActiveSec=5min
[Install]
WantedBy=timers.target
@heisvoid
heisvoid / .mailrc
Last active July 16, 2022 06:39
S-nail $HOME/.mailrc for Gmail
# You should replace USER and PASSWORD.
# PASSWORD is plain text. So you should set appropriate permissions with chmod 0600.
account gmail {
set v15-compat
set mta=smtp://USER:PASSWORD@smtp.gmail.com:587 smtp-use-starttls
}
@heisvoid
heisvoid / remove_old_records.sh
Last active May 13, 2018 02:20
Remove old recordings of camera.
size=`/usr/bin/du -h -s -BG /mnt/disk0/cam0 2>/dev/null | cut -d "G" -f 1 2>/dev/null`
if [ 0 -ne $? ]
then
text="ERROR Can't get size of the cam 0"
echo "$text" | mailx -A gmail -s "$text" foo@bar.com >/dev/null 2>&1
exit 1
fi
@heisvoid
heisvoid / sync_cam_time.sh
Created January 26, 2018 15:18
Example: Synchronize time of Dahua ip camera
/usr/bin/timedatectl status | /usr/bin/grep "synchronized: yes" >/dev/null 2>&1
if [ 0 -ne $? ]
then
exit 1
fi
now=`/usr/bin/date "+%F%%20%T" 2>/dev/null`
if [ 0 -ne $? ]
then
exit 1

보증금 5천만원, 월세 270만원, 약 35평.
단, 월세가 부가세 포함인지 아닌지 모르겠음.

나는 archlinux를 사용한다.
한글입력기는 ibus를 사용한다.
웹 브라우저는 inox를 사용한다.

gist에 한글을 입력할 경우, 글자가 사라지는 문제가 발생한다.

ibus대신 uim을 사용해보았다. 하지만 비슷한 문제가 발생한다. 한글에 쉼표(comma)를 이어서 쓴 후, 빈칸을 띄우면 한글이 사라진다.

gist.github.com의 자바스크립트를 차단해보았다.
더이상 위와 같은 문제가 발생하지 않았다. ibus, uim에 관계없이 말이다.

We couldn’t find that file to show.
We couldn’t find that file to show.
#!/bin/sh
# Check available updates for extensions of Inox web browser.
show_usage ()
{
local name=`basename "$0"`
cat << EOF
Usage: $name [OPTIONS] -c CHROME_WEB_STORE_ITEM_PROPERTY_CLI