[PLDWWW] page changed: people:glen
--- https://www.pld-linux.org/people/glen?rev=1452933012 +++ https://www.pld-linux.org/people/glen?rev=1452933184 @@ -2,38 +2,25 @@ [[http://cia.vc/stats/author/glen|{{http://dev.gentoo.org/~spock/img/icons/cia-stats.png?}}]] - = Inner Wiki links = + = Useful links = * [[#PLD Linux VM Images]] * [[http://www.emacswiki.org/emacs/MovingTheCtrlKey|Moving The Ctrl Key]] - * [[:packages:pear|PEAR Info]] - * [[http://www.tld-linux.org/|TLD Linux (former PLD Titanium) info]] - * [[:docs:vserver|PLD Linux Vserver pages]] * [[::developingpld|Developing PLD Linux]] - * [[:developingpld:acrequestsrules|AC builder notes]] - * [[:developingpld:ackernelbuildernotes|building Ac kernel packages notes]] - * [[:developingpld:thkernelbuildernotes|building Th kernel packages notes]] - * [[:packages:anaconda|anaconda]] * [[:developingpld:advanceddeveloping:fixingasneeded|fixing --as-needed]] * [[:people|user homepages in www.pld-linux.org wiki]] * [[http://carme.pld-linux.org/~megabajt/docs/devel_cvs_wstep.html|cvs new account (in Polish)]] - + * [[http://rescuecd.pld-linux.org/download/|http://rescuecd.pld-linux.org/download/]] + * [[http://ftp3.pld-linux.org/~pldftpac/isos/iso/2.0/|http://ftp3.pld-linux.org/~pldftpac/isos/iso/2.0/]] + * [[http://marcansoft.com/blog/2009/01/using-amarok-and-other-itunesdb-compatible-software-with-the-iphone-2x/|http://marcansoft.com/blog/2009/01/using-amarok-and-other-itunesdb-compatible-software-with-the-iphone-2x/]] + * [[http://www.cvsnt.org/manual/html/Substitution-modes.html|http://www.cvsnt.org/manual/html/Substitution-modes.html]] = Some ideas to do in PLD Linux = * generate /etc/profile.env from /etc/env.d and make it possible to merge env from two different files. * modularize rc-scripts, so the portions could be reused for example by initng. - - - = links = - - * [[http://rescuecd.pld-linux.org/download/|http://rescuecd.pld-linux.org/download/]] - * [[http://ftp3.pld-linux.org/~pldftpac/isos/iso/2.0/|http://ftp3.pld-linux.org/~pldftpac/isos/iso/2.0/]] - * [[http://marcansoft.com/blog/2009/01/using-amarok-and-other-itunesdb-compatible-software-with-the-iphone-2x/|http://marcansoft.com/blog/2009/01/using-amarok-and-other-itunesdb-compatible-software-with-the-iphone-2x/]] - * [[http://www.cvsnt.org/manual/html/Substitution-modes.html|http://www.cvsnt.org/manual/html/Substitution-modes.html]] - = Detect X application locale = Diff URL: https://www.pld-linux.org/people/glen?do=diff=1452933012=1452933184 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
Moving The Ctrl Key --- https://www.pld-linux.org/people/glen?rev=1447421092 +++ https://www.pld-linux.org/people/glen?rev=1452933012 @@ -5,8 +5,9 @@ = Inner Wiki links = * [[#PLD Linux VM Images]] + * [[http://www.emacswiki.org/emacs/MovingTheCtrlKey|Moving The Ctrl Key]] * [[:packages:pear|PEAR Info]] * [[http://www.tld-linux.org/|TLD Linux (former PLD Titanium) info]] * [[:docs:vserver|PLD Linux Vserver pages]] * [[::developingpld|Developing PLD Linux]] Diff URL: https://www.pld-linux.org/people/glen?do=diff=1447421092=1452933012 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[Inner Wiki links] --- https://www.pld-linux.org/people/glen?rev=1413126822 +++ https://www.pld-linux.org/people/glen?rev=1447421084 @@ -4,8 +4,9 @@ = Inner Wiki links = + * [#PLD Linux VM Images]] * [[:packages:pear|PEAR Info]] * [[http://www.tld-linux.org/|TLD Linux (former PLD Titanium) info]] * [[:docs:vserver|PLD Linux Vserver pages]] * [[::developingpld|Developing PLD Linux]] Diff URL: https://www.pld-linux.org/people/glen?do=diff=1413126822=1447421084 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[Dropbox as picture share service] moved code to github --- https://www.pld-linux.org/people/glen?rev=1406040843 +++ https://www.pld-linux.org/people/glen?rev=1413126822 @@ -250,107 +250,9 @@ Any file saved to ''~/Pictures/Screenshots'' gets renamed based on timestamp and moved to ''~/Dropbox/Public'' folder. 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://www.dropbox.com/install?os=lnx|dropboxd]] running, [[http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/|libnotify]], [[https://github.com/rvoicilas/inotify-tools/wiki|inotify-tools]] - - You should start the script at startup of your X session, example: - code ini ~/.config/autostart/dropbox-watch.desktop - [Desktop Entry] - Type=Application - Name=Dropbox watch - Comment=Launch dropbox watcher script - Icon=dropbox - Exec=$HOME/.local/bin/dropbox-watch.sh - /code - - code bash ~/.local/bin/dropbox-watch.sh - #!/bin/sh - # A script that watches ~/Pictures/Screenshots dir, and any new file is added there, it - # 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 g...@delfi.ee - # Date: 2012-11-09 - # Updated: 2014-07-22 (test all tools, more filename filters) - - watchdir=$HOME/Pictures/Screenshots - viewer=xdg-open - - # Config - dropdir=$HOME/Dropbox/Public/ss - dropuser=YOUR_DROPBOX_NUMERIC_USER_ID - dropurl=https://dl.dropboxusercontent.com/u/$dropuser/ss - - if [ ! -d $dropdir ]; then - echo 2 Dropbox dir $dropdir missing! - exit 1 - fi - - if [ ! -d $watchdir ]; then - echo 2 Watch dir $watchdir missing! - exit 1 - fi - - if ! which $viewer 2/dev/null; then - echo 2 Can't find viewer: $viewer - exit 1 - fi - - if ! which inotifywait 2/dev/null; then - echo 2 Can't find tool: inotifywait, install inotify-tools - exit 1 - fi - - if ! which notify-send 2/dev/null; then - echo 2 Can't find tool: notify-send, install libnotify - exit 1 - fi - - if ! which xclip 2/dev/null; then - echo 2 Can't find tool: xclip, install xclip - exit 1 - fi - - inotifywait -m -e moved_to -e close_write $watchdir | while read path change filename; do - case $change in - CREATE|MOVED_TO|*CLOSE_WRITE*) - file=$path/$filename - ;; - *) - continue - esac - - # reformat filename so it woult be nice url - mtime=$(stat -c %y $file) - # Strip 'Screenshot - 04062013 - 11:30:49 AM.png' - # strip 'Screenshot - 14.01.2013 - 15:04:02', and leave everything else part of the filename - fn=$(echo $filename | sed -e 's,^Screenshot - [ .:0-9-]*[AP]M,,') - # Strip 'Screenshot from 2013-02-13 23:49:07' - # Strip 'Screenshot - 30.05.2013 - 11:48:58.png' - fn=$(echo $fn | sed -re 's,^Screenshot( from)? [ .:0-9-]*,,') - - # sanitize exts - fn=$(echo $fn | sed -re 's/\.?(jpe?g|png)$//' -e 'y/ /_/') - filename=$(date -d $mtime '+%Y-%m-%d_%H.%M.%S')${fn:+-$fn}.png - - # bugfixes - fn=$(echo $fn | sed -re 's/\.png\.png$/.png/') - - url=$dropurl/$filename - - mv $file $dropdir/$filename - - $viewer $dropdir/$filename - - # Copy URL to clipboard and notify the user - echo -n $url | xclip -selection c - notify-send --hint=int:transient:1 Screenshot Uploaded Copied URL to clipboard:\n$url - done - /code - + See: https://github.com/glensc/dropbox-watch = PLD svn and Subversion under ac = [[/AcInfo|Ac]] has old openssl that can't do [[wpServer Name Indication|SNI]] properly, therefore accessing svn over https gives errors: Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1406040843r2=1413126822 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[Dropbox as picture share service] update --- https://www.pld-linux.org/people/glen?rev=1396966793 +++ https://www.pld-linux.org/people/glen?rev=1406040485 @@ -254,30 +254,50 @@ Requirements: [[https://www.dropbox.com/install?os=lnx|dropboxd]] running, [[http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/|libnotify]], [[https://github.com/rvoicilas/inotify-tools/wiki|inotify-tools]] You should start the script at startup of your X session. - code bash ~/.local/bin/dropbox-watch.sh - #!/bin/sh + code bash ~/.local/bin/dropbox-watch.sh#!/bin/sh # A script that watches ~/Pictures/Screenshots dir, and any new file is added there, it # 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 g...@delfi.ee # Date: 2012-11-09 + # Updated: 2014-07-22 (test all tools, more filename filters) watchdir=$HOME/Pictures/Screenshots # i'd use xdg-open here, but somewhy in GNOME 3.4 it opens dir containing the image viewer=gpicview # Config - dropdir=$HOME/Dropbox/Public - dropuser=YOUR_DROPBOX_NUMERIC_USER_ID - dropurl=https://dl.dropbox.com/u/$dropuser/ss + dropdir=$HOME/Dropbox/Public/ss + dropuser=YOUR_DROPBOX_NUMERIC_USER_ID + dropurl=https://dl.dropboxusercontent.com/u/$dropuser/ss if [ ! -d $dropdir ]; then echo 2 Dropbox dir $dropdir missing! + exit 1 + fi + + if [ ! -d $watchdir ]; then + echo 2 Watch dir $watchdir missing! + exit 1 + fi + + if ! which $viewer 2/dev/null; then + echo 2 Can't find viewer: $viewer + exit 1 + fi + + if ! which inotifywait 2/dev/null; then + echo 2 Can't find tool: inotifywait, install inotify-tools + exit 1 + fi + + if ! which notify-send 2/dev/null; then + echo 2 Can't find tool: notify-send, install libnotify exit 1 fi inotifywait -m -e moved_to -e close_write $watchdir | while read path change filename; do @@ -290,9 +310,21 @@ esac # reformat filename so it woult be nice url mtime=$(stat -c %y $file) - filename=$(date -d $mtime '+%Y-%m-%d_%H.%M.%S').png + # Strip 'Screenshot - 04062013 - 11:30:49 AM.png' + # strip 'Screenshot - 14.01.2013 - 15:04:02', and leave everything else part of the filename + fn=$(echo $filename | sed -e 's,^Screenshot - [ .:0-9-]*[AP]M,,') + # Strip 'Screenshot from 2013-02-13 23:49:07' + # Strip 'Screenshot - 30.05.2013 - 11:48:58.png' + fn=$(echo $fn | sed -re 's,^Screenshot( from)? [ .:0-9-]*,,') + + # sanitize exts + fn=$(echo $fn | sed -re 's/\.?(jpe?g|png)$//' -e 'y/ /_/') + filename=$(date -d $mtime '+%Y-%m-%d_%H.%M.%S')${fn:+-$fn}.png + + # bugfixes + fn=$(echo $fn | sed -re 's/\.png\.png$/.png/') url=$dropurl/$filename mv $file $dropdir/$filename Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1396966793r2=1406040485 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
add dropbox autostart .desktop --- https://www.pld-linux.org/people/glen?rev=1406040485 +++ https://www.pld-linux.org/people/glen?rev=1406040613 @@ -252,11 +252,20 @@ 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://www.dropbox.com/install?os=lnx|dropboxd]] running, [[http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/|libnotify]], [[https://github.com/rvoicilas/inotify-tools/wiki|inotify-tools]] - You should start the script at startup of your X session. + You should start the script at startup of your X session, example: + code ini ~/.config/autostart/dropbox-watch.desktop + [Desktop Entry] + Type=Application + Name=Dropbox watch + Comment=Launch dropbox watcher script + Icon=dropbox + Exec=$HOME/.local/bin/dropbox-watch.sh + /code - code bash ~/.local/bin/dropbox-watch.sh#!/bin/sh + code bash ~/.local/bin/dropbox-watch.sh + #!/bin/sh # A script that watches ~/Pictures/Screenshots dir, and any new file is added there, it # 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 Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1406040485r2=1406040613 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[Dropbox as picture share service] use xdg-open as viewer --- https://www.pld-linux.org/people/glen?rev=1406040613 +++ https://www.pld-linux.org/people/glen?rev=1406040823 @@ -275,10 +275,9 @@ # Date: 2012-11-09 # Updated: 2014-07-22 (test all tools, more filename filters) watchdir=$HOME/Pictures/Screenshots - # i'd use xdg-open here, but somewhy in GNOME 3.4 it opens dir containing the image - viewer=gpicview + viewer=xdg-open # Config dropdir=$HOME/Dropbox/Public/ss dropuser=YOUR_DROPBOX_NUMERIC_USER_ID Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1406040613r2=1406040823 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[Dropbox as picture share service] test xclip --- https://www.pld-linux.org/people/glen?rev=1406040823 +++ https://www.pld-linux.org/people/glen?rev=1406040843 @@ -304,8 +304,13 @@ fi if ! which notify-send 2/dev/null; then echo 2 Can't find tool: notify-send, install libnotify + exit 1 + fi + + if ! which xclip 2/dev/null; then + echo 2 Can't find tool: xclip, install xclip exit 1 fi inotifywait -m -e moved_to -e close_write $watchdir | while read path change filename; do Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1406040823r2=1406040843 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[Inner Wiki links] proper TLD name, feel free to drop this link if it bothers someone in PLD --- https://www.pld-linux.org/people/glen?rev=1370863021 +++ https://www.pld-linux.org/people/glen @@ -5,9 +5,9 @@ = Inner Wiki links = * [[:packages:pear|PEAR Info]] - * [[http://www.tld-linux.org/|Linux Titanium info]] + * [[http://www.tld-linux.org/|TLD Linux (former PLD Titanium) info]] * [[:docs:vserver|PLD Linux Vserver pages]] * [[::developingpld|Developing PLD Linux]] * [[:developingpld:acrequestsrules|AC builder notes]] * [[:developingpld:ackernelbuildernotes|building Ac kernel packages notes]] Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1370863021r2=1396966793 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[PLD Linux VM images] --- https://www.pld-linux.org/people/glen?rev=1370040720 +++ https://www.pld-linux.org/people/glen @@ -237,17 +237,9 @@ now remove the old disk and voila! = PLD Linux VM images = - I've created PLD VirtualBox images, exported into [[wpOpen Virtualization Format|OVA (Open Virtualization Archive)]] format. - There's also [[wpVagrant (software)|Vagrant]] base images (''.box''). Actually now I build ''.box'' files, which if renamed are importable as ''.ova'' files. - - * ftp://ftp.pld-linux.org/people/glen/vm/ - - To convert images to qemu qcow2 format, extract ''.box'' file (it's gnu tar format) and execute: - code - $ qemu-img convert -c -O qcow2 box-disk1.vmdk pld.qcow2 - /code + See [[.:glen:vm-info]] for more details = Upgrading PHP 5.3 - PHP 5.4 = filepoldek --sn carme --up -u $(rpm -qa --qf '%{N} %{V}-%{R}\n' | awk -vv=$(rpm -q php-common --qf '%{V}-%{R}') '$2 == v {sub(/php/, php54, $1); print $1}') Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1370040720r2=1370863021 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[PLD Linux VM images] --- https://www.pld-linux.org/people/glen?rev=1369310119 +++ https://www.pld-linux.org/people/glen @@ -238,11 +238,16 @@ = PLD Linux VM images = I've created PLD VirtualBox images, exported into [[wpOpen Virtualization Format|OVA (Open Virtualization Archive)]] format. - There's also [[wpVagrant (software)|Vagrant]] base images (''.box''). + There's also [[wpVagrant (software)|Vagrant]] base images (''.box''). Actually now I build ''.box'' files, which if renamed are importable as ''.ova'' files. * ftp://ftp.pld-linux.org/people/glen/vm/ + + To convert images to qemu qcow2 format, extract ''.box'' file (it's gnu tar format) and execute: + code + $ qemu-img convert -c -O qcow2 box-disk1.vmdk pld.qcow2 + /code = Upgrading PHP 5.3 - PHP 5.4 = filepoldek --sn carme --up -u $(rpm -qa --qf '%{N} %{V}-%{R}\n' | awk -vv=$(rpm -q php-common --qf '%{V}-%{R}') '$2 == v {sub(/php/, php54, $1); print $1}') Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1369310119r2=1370040720 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[PLD Linux VirtualBox images] --- https://www.pld-linux.org/people/glen?rev=1368787175 +++ https://www.pld-linux.org/people/glen @@ -235,9 +235,9 @@ DISKPART extend /file now remove the old disk and voila! - = PLD Linux VirtualBox images = + = PLD Linux VM images = I've created PLD VirtualBox images, exported into [[wpOpen Virtualization Format|OVA (Open Virtualization Archive)]] format. There's also [[wpVagrant (software)|Vagrant]] base images (''.box''). Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1368787175r2=1369310119 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[PLD Linux VirtualBox images] --- https://www.pld-linux.org/people/glen?rev=1360164684 +++ https://www.pld-linux.org/people/glen @@ -237,12 +237,12 @@ now remove the old disk and voila! = PLD Linux VirtualBox images = - I've created PLD VirtualBox images, exported into [[wpOpen Virtualization Format|OVA (Open Virtualization Archive)]] format + I've created PLD VirtualBox images, exported into [[wpOpen Virtualization Format|OVA (Open Virtualization Archive)]] format. + There's also [[wpVagrant (software)|Vagrant]] base images (''.box''). * ftp://ftp.pld-linux.org/people/glen/vm/ - = Upgrading PHP 5.3 - PHP 5.4 = filepoldek --sn carme --up -u $(rpm -qa --qf '%{N} %{V}-%{R}\n' | awk -vv=$(rpm -q php-common --qf '%{V}-%{R}') '$2 == v {sub(/php/, php54, $1); print $1}') Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1360164684r2=1368787175 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[Dropbox as picture share service] --- https://www.pld-linux.org/people/glen?rev=1355997911 +++ https://www.pld-linux.org/people/glen @@ -305,5 +305,22 @@ # Copy URL to clipboard and notify the user echo -n $url | xclip -selection c notify-send --hint=int:transient:1 Screenshot Uploaded Copied URL to clipboard:\n$url done + /code + + = PLD svn and Subversion under ac = + + [[/AcInfo|Ac]] has old openssl that can't do [[wpServer Name Indication|SNI]] properly, therefore accessing svn over https gives errors: + + file + svn: OPTIONS of 'https://': Certificate verification error: certificate signature failure (https://svn.pld-linux.org) + /file + + A [[http://jamescrisp.org/2010/06/05/workaround-for-subversion-svn-certificate-verification-error-insecure-algorithm-on-ubuntu-1004-lucid-lynx/|Workaround]] possible: + code config ~/.subversion/servers + [groups] + pld = svn.pld-linux.org + + [pld] + ssl-trust-default-ca = no /code Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1355997911r2=1360164684 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
add Dropbox as picture share service --- https://www.pld-linux.org/people/glen?rev=1351499116 +++ https://www.pld-linux.org/people/glen @@ -248,5 +248,65 @@ filepoldek --sn carme --up -u $(rpm -qa --qf '%{N} %{V}-%{R}\n' | awk -vv=$(rpm -q php-common --qf '%{V}-%{R}') '$2 == v {sub(/php/, php54, $1); print $1}') /file + + = Dropbox as picture share service = + + Any file saved to ''~/Pictures/Screenshots'' gets renamed based on timestamp and moved to ''~/Dropbox/Public'' folder. + + 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://www.dropbox.com/install?os=lnx|dropboxd]] running, [[http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/|libnotify]], [[https://github.com/rvoicilas/inotify-tools/wiki|inotify-tools]] + + You should start the script at startup of your X session. + + code bash ~/.local/bin/dropbox-watch.sh + #!/bin/sh + # A script that watches ~/Pictures/Screenshots dir, and any new file is added there, it + # 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 g...@delfi.ee + # Date: 2012-11-09 + + watchdir=$HOME/Pictures/Screenshots + # i'd use xdg-open here, but somewhy in GNOME 3.4 it opens dir containing the image + viewer=gpicview + + # Config + dropdir=$HOME/Dropbox/Public + dropuser=YOUR_DROPBOX_NUMERIC_USER_ID + dropurl=https://dl.dropbox.com/u/$dropuser/ss + + if [ ! -d $dropdir ]; then + echo 2 Dropbox dir $dropdir missing! + exit 1 + fi + + inotifywait -m -e moved_to -e close_write $watchdir | while read path change filename; do + case $change in + CREATE|MOVED_TO|*CLOSE_WRITE*) + file=$path/$filename + ;; + *) + continue + esac + + # reformat filename so it woult be nice url + mtime=$(stat -c %y $file) + filename=$(date -d $mtime '+%Y-%m-%d_%H.%M.%S').png + + url=$dropurl/$filename + + mv $file $dropdir/$filename + + $viewer $dropdir/$filename + + # Copy URL to clipboard and notify the user + echo -n $url | xclip -selection c + notify-send --hint=int:transient:1 Screenshot Uploaded Copied URL to clipboard:\n$url + done + /code Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1351499116r2=1355997628 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
syntax to blocks --- https://www.pld-linux.org/people/glen?rev=1355997628 +++ https://www.pld-linux.org/people/glen @@ -1,11 +1,7 @@ + == Elan Ruusamäe == - - == Elan Ruusamäe == [[http://cia.vc/stats/author/glen|{{http://dev.gentoo.org/~spock/img/icons/cia-stats.png?}}]] - - /* UndefinedMacro: TableOfContents(None) */ - = Inner Wiki links = @@ -38,16 +34,15 @@ = Detect X application locale = - filexprop -id $WINDOWID -notype WM_LOCALE_NAME + file bashxprop -id $WINDOWID -notype WM_LOCALE_NAME /file = Detect PuTTY = - - file# xterm-249/vttests/title.sh + file bash xterm-249/vttests/title.sh old=$(stty -g) stty raw -echo min 0 time 5 echo -ne '\005' read xapp @@ -74,9 +69,10 @@ * make ~/.bash_profile to use keychain: - filekeychain -q --agents gpg + file bash + keychain -q --agents gpg if [ -f ~/.keychain/$HOSTNAME-sh-gpg ]; then . ~/.keychain/$HOSTNAME-sh-gpg fi * start new shell and start kmail/kpg/whatever @@ -130,9 +126,10 @@ file$ echo -ne '\033]83;encoding utf8\007' /file for example my ''~/.bash_profile'' on [[:machines:carme|carme]] contains: - file# force screen utf8 encoding + file bash + # force screen utf8 encoding if [[ $TERM = screen* ]]; then echo -ne '\033]83;encoding utf8\007' echo -ne \033k$HOSTNAME\033\\ fi @@ -141,9 +138,10 @@ = PHP via FastCGI in Apache = - file# the server name is bogus actually, to satisfy mod_fastcgi + file apache + # the server name is bogus actually, to satisfy mod_fastcgi FastCgiExternalServer /bin/true -socket /var/run/php/fcgi.sock ScriptAlias /php-fcgi /bin/true Location /php-fcgi SetHandler fastcgi-script @@ -308,5 +306,4 @@ echo -n $url | xclip -selection c notify-send --hint=int:transient:1 Screenshot Uploaded Copied URL to clipboard:\n$url done /code - Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1355997628r2=1355997911 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
[Growing WinXP VirtualBox image] --- https://www.pld-linux.org/people/glen?rev=1350166626 +++ https://www.pld-linux.org/people/glen @@ -237,12 +237,16 @@ DISKPART extend /file now remove the old disk and voila! + = PLD Linux VirtualBox images = + I've created PLD VirtualBox images, exported into [[wpOpen Virtualization Format|OVA (Open Virtualization Archive)]] format + + * ftp://ftp.pld-linux.org/people/glen/vm/ = Upgrading PHP 5.3 - PHP 5.4 = filepoldek --sn carme --up -u $(rpm -qa --qf '%{N} %{V}-%{R}\n' | awk -vv=$(rpm -q php-common --qf '%{V}-%{R}') '$2 == v {sub(/php/, php54, $1); print $1}') /file Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1350166626r2=1351499116 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
[PLDWWW] page changed: people:glen
fix user homepages link --- https://www.pld-linux.org/people/glen?rev=1350165169 +++ https://www.pld-linux.org/people/glen @@ -17,9 +17,9 @@ * [[:developingpld:ackernelbuildernotes|building Ac kernel packages notes]] * [[:developingpld:thkernelbuildernotes|building Th kernel packages notes]] * [[:packages:anaconda|anaconda]] * [[:developingpld:advanceddeveloping:fixingasneeded|fixing --as-needed]] - * [[::categoryhomepage|user homepages in www.pld-linux.org wiki]] + * [[:people|user homepages in www.pld-linux.org wiki]] * [[http://carme.pld-linux.org/~megabajt/docs/devel_cvs_wstep.html|cvs new account (in Polish)]] = Some ideas to do in PLD Linux = Diff URL: https://www.pld-linux.org/people/glen?do=diffr1=1350165169r2=1350166626 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ ___ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit