Search This Blog

Monday, September 18, 2017

Library not loaded: /opt/local/lib/libreadline.6.dylib

sudo port upgrade gawk

https://trac.macports.org/ticket/54026

Sunday, July 16, 2017

Launch chrome from MacOS terminal

open -a "Google Chrome" https://www.google.com

Saturday, July 8, 2017

RaspiMJPEG Error: Could not open main PIPE

{2017/07/07 21:39:02} RaspiMJPEG Version 5.8.03
{2017/07/07 21:39:02} recommended video buffer size 65536
{2017/07/07 21:39:02} h264 size set to 131072
{2017/07/07 21:39:02} recommended video buffers 1
{2017/07/07 21:39:02} h264 buffers set to recommended 1
{2017/07/07 21:39:02} Error: Could not open main PIPE

RaspiMJPEG fails in opening pipes. This error can occur if the designated pipes do NOT exist or the permission to the pipes is NOT appropriate. 

1. Check what pipes are required in /etc/raspimjpeg
2. Create pipes

For instance,
$ sudo mknod /var/www/.../FIFO p
$ sudo chmod 666 /var/www/.../FIFO

List of free streaming/stream/movie/tv/show sites

1. http://koreanz.com.au/

- 호주 한인 다시보기 사이트 코리안즈

2. http://openloadmovies.net/

- Openload Movies - Free Movies Online

3. http://mujehan.tv/

- mujehan.tv

Thursday, July 6, 2017

Set time zone in Raspberry pi

Find localization options at

$ sudo raspi-config



Sunday, June 11, 2017

Typical unison usage

unison profile -batch: no question
unison profile -auto: accept default

Typical aria2c usage

aria2c -c -x 16 -s 16 [url]

-c: continue
-x: max number of connections to one server
-s: max number of download connections

Saturday, March 11, 2017

Generate random noise image using ImageMagick Convert

Generate 1024x1024 random noise jpg:

convert -size 1024x1024 xc: +noise Random random.jpg


* xc: X Constant Image

References

Sh!t boy


Sh!t boy~

This character is used for animated icon on desktop in Windows.

Wednesday, March 8, 2017

Password management in *nix system

pwgen

password generator

Usage example:
  • Single 16-length password generation
    $ pwgen -1 16
manage encrypted password databases

pass

standard *nix password manager
https://www.passwordstore.org/

Init password store

Init or re-init password store using gpg-id.
$ pass init gpg-id
pass uses the last subkey of the gpg-id (1).
  • gpg-id is a registered gpg id (uid) which can be found using:
    $ gpg --list-keys

Init git repo for password store

$ pass git init  
Initialized empty Git repository in /Home/user/.password-store/.git/

Chrome/Firefox plugin

https://github.com/dannyvankooten/browserpass

References

1. "https://lists.zx2c4.com/pipermail/password-store/2014-September/001131.html"

Sunday, March 5, 2017

gpg (GnuPG or GNU Privacy Guard)

List keys

$ gpg --list-keys

Add a key

$ gpg --gen-key

Examples

gpg -e -r user hello.txt

xxd -p hello.txt.gpg > hello.txt.gpg.bin

xxd -r -p hello.txt.gpg.bin > decode.txt.gpg

gpg -d decode.txt.gpg

References

1. "Python GPG example"
2. "Creating a new GPG key with subkeys"

PHP tutorial

Learn PHP

https://www.tutorialspoint.com/php/index.htm

Learn PHP-7

https://www.tutorialspoint.com/php7/index.htm

Friday, March 3, 2017

Lode Runner for MAME

Lode Runner (set 1) ROM

Run

$ ./mame64 ldrun

Lode Runner (set 2) ROM

Run

$ ./mame64 ldruna

Sexy parodius in Mac OS

MAME

i. Install MAME

ii. Install SDL runtime

Download Sexy Parodius

i. sexyparo.zip

ii. konamigx.zip

Run game

$ ./mame64 sexyparo
  • This game supports game controllers (eg. xbox controller)

Saturday, February 25, 2017

git show only staged files

git diff --name-only --cached

--name-only: show only file names
--cached: --cached is a synonym of --staged, so it means the staged and the latest commit that is ommited

https://stackoverflow.com/questions/33610682/git-list-of-staged-files

Saturday, February 18, 2017

Macport synergy

* Server: system with local keyboard and mouse
* Client: system with remote keyboard and mouse
* ~/.synergy.conf or /etc/synergy.conf is for server
* synergys for server
* synergyc for client
* synergyc

* Launch daemon location
/opt/local/etc/LaunchDaemons/org.macports.synergy/org.macports.synergy.plist
* sudo port load synergy launches synergys

* Launch user server daemon
- synergys

* Launch user client daemon
- synergyc

* assistive devices does not trust this process, allow it in system settings.?
- Enable the accessibility of 'Terminal.app' or 'iTerm.app'

###########################################################
# A startup item has been generated that will aid in
# starting synergy with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo port load synergy
###########################################################

Saturday, February 4, 2017

The IP you're using to send email is not authorized ...

https://support.google.com/mail/answer/10336?p=NotAuthorizedError&visit_id=1-636218740299828291-2666613021&rd=1

Tuesday, January 31, 2017

Raspberry pi cam capture

raspistill -o cam.jpg

rsync for scp resume

Local to remote

rsync -P -e ssh src user@host:dst

Remote to host

rsync -P -e ssh user@host:src dst

Monday, January 30, 2017

Visualization

https://bl.ocks.org

Sunday, January 29, 2017

PHP signup/login example

https://daveismyname.blog/blog/login-and-registration-system-with-php

Thursday, January 26, 2017

Visual studio extensions

Trailing Whitespace Visualizer by Mads Kristensen


Sunday, January 15, 2017

Lemp on OS X

http://aaronbonner.io/post/44973182283/a-guide-to-php-mysql-and-nginx-on-macports

Video stream for pi

http://www.raspberry-projects.com/pi/pi-hardware/raspberry-pi-camera/streaming-video-using-vlc-player

raspivid -o - -t 0 -n -w 600 -h 400 -fps 12 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264

run VLC with the following address
rtsp://###.###.###.###:8554/

Saturday, January 14, 2017

Lemp for pi

https://raspberry-hosting.com/en/faq/how-install-nginx-php-fpm-raspberry-pi

Wednesday, January 4, 2017

vi highlight cursor line

set cursorline

Monday, January 2, 2017

f-19 stealth fighter

https://www.google.com/search?q=f+19+stealth+fighter+plastic+model&espv=2&biw=1091&bih=676&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwiB1sfArKTRAhXpyVQKHf_aDkMQsAQIJg

Blog Archive