Linux Driver or Command that require root or sudo before deny access.
Create better user experience where they can try open/write anything and where is not possible try authentication/authorization before deny.
< Eu sou uma ovelha sendo encoxada > | |
---------------------------------- | |
\ __ | |
\ (oo) | |
\ ( ) | |
\ /--\ | |
__ / \ \ | |
UooU\.'@@@@@@`.\ ) | |
\__/(@@@@@@@@@@) / | |
(@@@@@@@@)(( |
from functools import wraps | |
def WatchedMethod(method, watcher, cls): | |
'''Called as 'self.method(*args, **kwds)' ''' | |
@wraps(method) | |
def method_wrapper(*args, **kwds): | |
name = method.__qualname__ | |
try: | |
watcher(cls, Watcher.CALL, name, *args, **kwds) | |
value = method(*args, **kwds) |
language: python | |
python: | |
- "2.6" | |
- "2.7" | |
before_install: | |
- cd .. | |
- curl -OL http://sourceforge.net/projects/pyqt/files/sip/sip-4.14.6/sip-4.14.6.tar.gz | |
- tar -xvf sip-4.14.6.tar.gz | |
- cd sip-4.14.6 | |
- python configure.py |
using System; | |
using System.Configuration; | |
using System.Security.Cryptography; | |
using System.ServiceModel; | |
using System.ServiceModel.Channels; | |
using System.ServiceModel.Configuration; | |
using System.ServiceModel.Description; | |
using System.ServiceModel.Dispatcher; | |
using System.Text; | |
using System.Xml; |
# 'BNAME' = current branch name | |
# 'BDESC' = current branch description | |
# return the name of current branch | |
bname = rev-parse --abbrev-ref HEAD | |
# get/set description for current branch | |
bdesc = "!f() { BNAME=`git bname`; if [ $# -gt "0" ]; then BNAME=$1; fi; if [ $# -lt "2" ]; then git config branches.$BNAME.description; else git config branches.$BNAME.description \"$2\"; fi; }; f" | |
# create new branch with $1 as BNAME and $2 as BDESC, push to vp |
2015-07-16 16:33:42,444 [taskScheduler#indexDownloadRemote-1] INFO org.apache.archiva.scheduler.indexing.DownloadRemoteIndexTask [] - start download remote index for remote repository ibiblio | |
2015-07-16 16:33:42,446 [taskScheduler#indexDownloadRemote-1] DEBUG org.apache.archiva.proxy.common.DefaultWagonFactory [] - http headers set to: {User-Agent=Java-Archiva} | |
2015-07-16 16:33:42,447 [taskScheduler#indexDownloadRemote-1] INFO org.apache.archiva.scheduler.indexing.DownloadRemoteIndexTask [] - index update retrieve file, name:nexus-maven-repository-index.properties | |
2015-07-16 16:33:42,447 [taskScheduler#indexDownloadRemote-1] DEBUG org.apache.archiva.proxy.common.DebugTransferListener [] - transferInitiated for resource nexus-maven-repository-index.properties on repository url http://mirrors.ibiblio.org/maven2/.index/ | |
2015-07-16 16:33:42,548 [taskScheduler#indexDownloadRemote-1] DEBUG org.apache.archiva.proxy.common.DebugTransferListener [] - wagon debug http://mirrors.ibiblio.org/maven2/.index/nexus-maven-r |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# [SNIPPET_NAME: Systray icon] | |
# [SNIPPET_CATEGORIES: PyGTK] | |
# [SNIPPET_DESCRIPTION: Shows a system tray icon with a menu ] | |
# [SNIPPET_AUTHOR: João Pinto <joao.pinto@getdeb.net>] | |
# [SNIPPET_LICENSE: GPL] | |
# | |
# adapted from: http://eurion.net/python-snippets/snippet/Systray%20icon.html |