This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Napster | |
Comment=p2p | |
Exec=/home/user/Documentos/app-1-1-bin-32/appname | |
Icon=/home/user/Documentos/app-1-1-bin-32/icons/logo.xpm | |
Terminal=false | |
Type=Application | |
#Name: application name | |
#Comment: comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Name=Sublime Text 2 | |
GenericName=Text Editor | |
Comment=Sophisticated text editor for code, html and prose | |
Exec=/usr/bin/sublime-text-2 %F | |
Terminal=false | |
Type=Application | |
MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-dsrc;text/x-pascal;text/x-perl;text/x-python;application/x-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/xml;text/html;text/css;text/x-sql;text/x-diff;x-directory/normal;inode/directory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: openerp-server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
st = status | |
ci = commit | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative | |
[color] | |
diff = auto | |
status = auto | |
branch = auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL url = new URL("http://pastebin.com/raw.php?i=RF8cL5YZ"); | |
InputSource origin = new InputSource(url.openStream()); | |
XPath path = XPathFactory.newInstance().newXPath(); | |
String exp = "/a/b/c"; | |
Node nodo = (Node) path.evaluate(exp, origin, XPathConstants.NODE); | |
NamedNodeMap attrs = nodo.getAttributes(); | |
String atrib = attrs.getNamedItem("id").getNodeValue(); | |
System.out.println(atrib); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Opening task when double clicking on project --> | |
<record id="dblc_proj" model="ir.actions.act_window"> | |
<field name="res_model">project.task</field> | |
<field name="name">Project's tasks</field> | |
<field name="view_type">form</field> | |
<field name="view_mode">tree,form,calendar,graph,gantt,kanban</field> | |
<field name="domain">[('project_id', 'child_of', [active_id])]</field> | |
<field name="context">{'project_id':active_id, 'active_test':False}</field> | |
</record> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://extjs.cachefly.net/ext-4.1.1-gpl/ext-all-debug.js"></script> | |
<link rel="stylesheet" href="http://extjs.cachefly.net/ext-4.1.1-gpl/resources/css/ext-all.css"> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32api | |
import win32con | |
import win32security | |
FILENAME = "temp.txt" | |
open (FILENAME, "w").close () | |
print "I am", win32api.GetUserNameEx (win32con.NameSamCompatible) | |
sd = win32security.GetFileSecurity (FILENAME, win32security.OWNER_SECURITY_INFORMATION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to move file or folders | |
tar zcf - filename | ssh user@ipaddress "cd /; tar xvzf" | |
# to move docker images to another host | |
docker save image-name | bzip2 | pv | ssh user@host "bunzip2 | docker load" | |
# using docker machine (testing yet) | |
docker $(docker-machine config mach1) save <image> | docker $(docker-machine config mach2) load | |
# send local file to container (just need to modify through host to host) |
OlderNewer