Skip to content

Instantly share code, notes, and snippets.

Install 'Vanilla cookie manager' extension.
Check 'Protect whitelisted cookies' checkbox. And register URLs which will not be deleted.
Enable 'Keep local data only until I quit my browser' option in Chromium.

#!/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
We couldn’t find that file to show.
We couldn’t find that file to show.

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

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

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

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

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

@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
@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" [email protected] >/dev/null 2>&1
exit 1
fi
@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:[email protected]:587 smtp-use-starttls
}