This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
try: | |
from subprocess import getoutput | |
except ImportError: | |
from commands import getoutput | |
from dnslib import RR,QTYPE,RCODE,A,parse_time |
This file contains hidden or 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
cat ~/.ssh/id_rsa.pub | ssh root@<domain> "sudo sshcommand acl-add dokku <description>" | |
#Description can be anything (e.g. your user name or location |
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrrhualyEa46fNvKDlspg2u2irEjYZFl0LS6eAcRe6QmY35JWyTqOvwqOuxREhhpqh/pFZgNLto/sUpwthTILvP+1vG2/JFxspdJiwZxoudQr9qMi5raM96WPIDFFXGVao9pgidAxrexm2Ld9zwU6p0ztGn0VZ9OSyNavEB664lUk+pQXKZ9Ax6TmBy7Tdfs+pRBqRQRpp9yKKq7PzXrPq8Wi1UNuxoKc0KIdIhvMJkt7wyTYXixHjQz2M141zEn4+Gkc5l/ceL/0dSxH3qiJbzs9HOGQIUdxy//urbAlYl31olPvVCoqyDwb7AbTXGGAQ1zcxd+5PkC/RdYJu1rYf jfernando@jfernando-xps |
This file contains hidden or 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
python -c 'import rdflib; g=rdflib.Graph(); g.parse("prueba.ttl", format="n3"); print(g.serialize(format="n3").str)' |
This file contains hidden or 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
# Run raspbia in qemu | |
qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1" -hda 2015-05-05-raspbian-wheezy.img |
This file contains hidden or 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
-- Quake like console on top | |
-- Similar to: | |
-- http://git.sysphere.org/awesome-configs/tree/scratch/drop.lua | |
-- But uses a different implementation. The main difference is that we | |
-- are able to detect the Quake console from its name | |
-- (QuakeConsoleNeedsUniqueName by default). | |
-- Use: |
This file contains hidden or 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
from selenium import webdriver | |
from selenium.webdriver.support.ui import Select | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import WebDriverWait | |
home = 'https://ifttt.com/recipes'; | |
driver = webdriver.Firefox() | |
#driver.set_window_size(1024, 768) |
This file contains hidden or 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
{% set f = open_file(informat="csv", delimiter='\t') %} | |
{ | |
"@context": [ | |
"http://demos.gsi.dit.upm.es/eurosentiment/static/context.jsonld" | |
], | |
"@id": "GSI-UPM", | |
"analysis": [ | |
{ | |
"prov:wasAssociatedWith": "GSI_UPM", | |
"dc:language": "en", |
This file contains hidden or 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
select distinct ?a ?b where {?a <http://dbpedia.org/ontology/demonym> ?b} LIMIT 100 |
This file contains hidden or 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/bash | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 <ONTO> <FORMAT> <VERSION> <DIR> <NS>" | |
echo "Example: $0 onto owl latest /tmp/Onto http://example.com/ontologies owl" | |
exit | |
else | |
ONTO=$1 | |
fi | |
if [ $# -lt 2 ] |