x
Search Posts:

TXT BLOG: a pure txt weblog

Questo รจ un blog di puro testo dove gli utenti del sito possono condividere pubblicamente links, snippets di codice ed altre informazioni rigrosamente testuali.

Fundamental GEDIT plugins

encode/decode file or selection:
http://sourceforge.net/projects/encdecplugin/

Advanced search (search selection, search in all files or in all files in folder):
https://code.google.com/p/advanced-find/

Code folding (Alt+Z to fold/unfold code blocks):
https://code.google.com/p/gedit-folding/

Importante :: software anti grande fratello (NSA)

http://blogs.computerworlduk.com/open-enterprise/2013/06/how-can-any-company-ever-trust-microsoft-again/index.htm

Navigazione:
https://www.torproject.us/projects/torbrowser.html

Chat:
https://crypto.cat/

Responsive CSS and screen resolutions

http://alistapart.com/article/a-pixel-identity-crisis

http://www.w3.org/TR/css3-mediaqueries/

----------

Check device pixel ratio with jquery:

<div>Device pixel ratio: <b id="ratio"></b></div>
<script type="text/javascript">
//<![CDATA[
$(document).ready( function() {$('#ratio').html(window.devicePixelRatio)} );
//]]>
</script>

Cleanup controllo versione ricorsivo

# SVN
find . -name .svn -print0 | xargs -0 rm -rf

# GIT
find . -name .git -print0 | xargs -0 rm -rf

Apache2 + mod_wsgi + web.py on Debian 6 server

root@machine~$ apt-get install libapache2-mod-wsgi
root@machine~$ a2enmod wsgi

root@machine~$ mkdir /var/www/webpytest
root@machine~$ mkdir /var/www/webpytest/py
root@machine~$ mkdir /var/www/webpytest/http
root@machine~$ mkdir /var/www/webpytest/logs
root@machine~$ mkdir /var/www/webpytest/static

root@machine~$ vim /var/www/webpytest/py/code.py
###
  import web

  urls = (
  '/.*', 'hello',
  )

  class hello:
    def GET(self):
      return "Hello, world."

application = web.application(urls, globals()).wsgifunc()
###


root@machine~$ chown -R user:www-data /var/www/webpytest
root@machine~$ chmod -R 775 /var/www/webpytest

root@machine~$ vim /etc/apache2/sites/available/webpytest
###
<VirtualHost *:80>
    ServerName webpytest.local
    DocumentRoot /var/www/webpytest/http
    
    ErrorLog /var/www/webpytest/logs/error.log
    CustomLog /var/www/webpytest/logs/access.log combined
    
    WSGIScriptAlias / /var/www/webpytest/py/code.py
    
    Alias /static /var/www/webpytest/static
    
    AddType text/html .py
    
    <Directory />
        Order Allow,Deny
        Allow From All
        Options -Indexes
    </Directory>
    
    <Directory /var/www/webpytest/static>
        # directives to effect the static directory
        Options +Indexes
    </Directory>
</VirtualHost>
###

root@machine~$ a2ensite webpytest
root@machine~$ service apache2 reload

#########
Sources:
http://webpy.org/cookbook/mod_wsgi-apache
http://webpy.org/cookbook/staticfiles
https://library.linode.com/web-servers/apache/mod-wsgi/debian-6-squeeze

How to run a svn working copy safely under Apache ( .htaccess )

# Redirect di qualsiasi cosa nelle cartelle .svn alla root del sito
RewriteRule ^.svn/(.*)$ http://%{HTTP_HOST} [R]

# Nascondiamo anche le svn entries per maggior sicurezza
<Files "entries">
Deny from All
</Files>

SVN web frontend in PHP

http://www.websvn.info/

-easy installation
-easy customization
-requires only basic LAMP platform

My debian sources.list [office]

# Main repositories
deb http://ftp.debian.org/debian/ stable main contrib non-free
deb-src http://ftp.debian.org/debian/ stable main contrib non-free

# Security updates
deb http://security.debian.org/ stable/updates main contrib non-free

# Squeeze backports
deb http://backports.debian.org/debian-backports squeeze-backports main

# Marillat's Debian Multimedia Packages
deb http://www.deb-multimedia.org squeeze main non-free

# Nginx repository
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx
Pages:
0 1 2 3 4 5 6 7 8 9 10 11 12