people:glen
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
people:glen [2012-12-20 11:00] – add Dropbox as picture share service glen | people:glen [2016-01-16 09:33] (current) – glen | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Elan Ruusamäe ====== | ||
- | |||
- | ====== Elan Ruusamäe ====== | ||
[[http:// | [[http:// | ||
- | /* UndefinedMacro: | ||
+ | ===== Useful links ===== | ||
- | + | | |
- | ===== Inner Wiki links ===== | + | * [[http:// |
- | + | ||
- | | + | |
- | * [[http:// | + | |
- | * [[: | + | |
* [[:: | * [[:: | ||
- | * [[: | ||
- | * [[: | ||
- | * [[: | ||
- | * [[: | ||
* [[: | * [[: | ||
* [[: | * [[: | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
===== Some ideas to do in PLD Linux ===== | ===== Some ideas to do in PLD Linux ===== | ||
Line 27: | Line 21: | ||
* generate / | * generate / | ||
* modularize rc-scripts, so the portions could be reused for example by initng. | * modularize rc-scripts, so the portions could be reused for example by initng. | ||
- | |||
- | |||
- | ===== links ===== | ||
- | |||
- | * [[http:// | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
===== Detect X application locale ===== | ===== Detect X application locale ===== | ||
- | < | + | < |
</ | </ | ||
Line 46: | Line 31: | ||
===== Detect PuTTY ===== | ===== Detect PuTTY ===== | ||
- | + | < | |
- | <file># xterm-249/ | + | |
old=$(stty -g) | old=$(stty -g) | ||
stty raw -echo min 0 time 5 | stty raw -echo min 0 time 5 | ||
Line 76: | Line 60: | ||
- | < | + | < |
+ | keychain -q --agents gpg | ||
if [ -f ~/ | if [ -f ~/ | ||
. ~/ | . ~/ | ||
Line 132: | Line 117: | ||
for example my '' | for example my '' | ||
- | < | + | < |
+ | # force screen utf8 encoding | ||
if [[ " | if [[ " | ||
echo -ne ' | echo -ne ' | ||
Line 143: | Line 129: | ||
- | < | + | < |
+ | # the server name is bogus actually, to satisfy mod_fastcgi | ||
FastCgiExternalServer /bin/true -socket / | FastCgiExternalServer /bin/true -socket / | ||
ScriptAlias /php-fcgi /bin/true | ScriptAlias /php-fcgi /bin/true | ||
Line 239: | Line 226: | ||
now remove the old disk and voila! | now remove the old disk and voila! | ||
- | ===== PLD Linux VirtualBox | + | ===== PLD Linux VM images ===== |
- | + | ||
- | I've created PLD VirtualBox images, exported into [[wp> | + | |
- | + | ||
- | * ftp:// | + | |
+ | See [[.: | ||
===== Upgrading PHP 5.3 -> PHP 5.4 ===== | ===== Upgrading PHP 5.3 -> PHP 5.4 ===== | ||
Line 257: | Line 241: | ||
When the move is done, URL for the image is copied to clipboard and image viewer is opened so you can see your image before you paste the url to IM, e-mail, etc... | When the move is done, URL for the image is copied to clipboard and image viewer is opened so you can see your image before you paste the url to IM, e-mail, etc... | ||
- | Requirements: [[https:// | + | See: https:// |
+ | ===== PLD svn and Subversion under ac ===== | ||
- | You should start the script at startup of your X session. | + | [[/ |
- | <code bash ~/ | + | <file> |
- | #!/bin/sh | + | svn: OPTIONS of ' |
- | # A script that watches ~/Pictures/Screenshots dir, and any new file is added there, it | + | </file> |
- | # is renamed so it would contain filename modify timestamp (uses safe | + | |
- | # characters not to require urlencode) and moved to dropbox dir. Additionally | + | |
- | # dropbox url is copied to clipboard and image viewer is opened to show that | + | |
- | # screenshot. | + | |
- | # | + | |
- | # Author: Elan Ruusamäe | + | |
- | # Date: 2012-11-09 | + | |
- | watchdir=$HOME/Pictures/Screenshots | + | A [[http://jamescrisp.org/ |
- | # i'd use xdg-open here, but somewhy in GNOME 3.4 it opens dir containing the image | + | <code config ~/.subversion/ |
- | viewer=gpicview | + | [groups] |
+ | pld = svn.pld-linux.org | ||
- | # Config | + | [pld] |
- | dropdir=$HOME/ | + | ssl-trust-default-ca = no |
- | dropuser=YOUR_DROPBOX_NUMERIC_USER_ID | + | |
- | dropurl=https:// | + | |
- | + | ||
- | if [ ! -d $dropdir | + | |
- | echo >&2 " | + | |
- | exit 1 | + | |
- | fi | + | |
- | + | ||
- | inotifywait | + | |
- | case " | + | |
- | CREATE|MOVED_TO|*CLOSE_WRITE*) | + | |
- | file=$path/ | + | |
- | ;; | + | |
- | *) | + | |
- | continue | + | |
- | esac | + | |
- | + | ||
- | # reformat filename so it woult be nice url | + | |
- | mtime=$(stat -c " | + | |
- | filename=$(date -d " | + | |
- | + | ||
- | url=" | + | |
- | + | ||
- | mv " | + | |
- | + | ||
- | $viewer " | + | |
- | + | ||
- | # Copy URL to clipboard and notify the user | + | |
- | echo -n " | + | |
- | notify-send --hint=int: | + | |
- | done | + | |
</ | </ | ||
- |
people/glen.1355997628.txt.gz · Last modified: 2012-12-20 11:00 by glen