User Tools

Site Tools


people:glen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
people:glen [2013-02-06 16:31]
glen [Dropbox as picture share service]
people:glen [2016-01-16 09:33] (current)
glen
Line 4: Line 4:
  
  
-===== Inner Wiki links =====+===== Useful ​links =====
  
-  * [[:​packages:​pear|PEAR Info]]  +  * [[#PLD Linux VM Images]] 
-  * [[http://​www.tld-linux.org/|Linux Titanium info]]  +  * [[http://​www.emacswiki.org/emacs/​MovingTheCtrlKey|Moving The Ctrl Key]]
-  * [[:​docs:​vserver|PLD Linux Vserver pages]] +
   * [[::​developingpld|Developing PLD Linux]] ​   * [[::​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]] ​   * [[:​developingpld:​advanceddeveloping:​fixingasneeded|fixing --as-needed]] ​
   * [[:​people|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)]] ​   * [[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 ===== ===== Some ideas to do in PLD Linux =====
Line 23: Line 21:
   * generate /​etc/​profile.env from /etc/env.d and make it possible to merge env from two different files. ​   * 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. ​   * 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 ===== ===== Detect X application locale =====
Line 237: Line 226:
 now remove the old disk and voila! ​ now remove the old disk and voila! ​
  
-===== PLD Linux VirtualBox ​images ===== +===== PLD Linux VM images =====
- +
-I've created PLD VirtualBox images, exported into [[wp>​Open Virtualization Format|OVA (Open Virtualization Archive)]] format +
- +
-  * ftp://​ftp.pld-linux.org/​people/​glen/​vm/​+
  
 +See [[.:​glen:​vm-info]] for more details
 ===== Upgrading PHP 5.3 -> PHP 5.4 ===== ===== Upgrading PHP 5.3 -> PHP 5.4 =====
  
Line 255: 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://​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]] +See: https://​github.com/​glensc/​dropbox-watch
- +
-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 <​glen@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>​ +
 ===== PLD svn and Subversion under ac ===== ===== PLD svn and Subversion under ac =====
  
people/glen.1360164684.txt.gz · Last modified: 2013-02-06 16:31 (external edit)