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
Verifying that +zekaf is my openname (Bitcoin username). https://onename.com/zekaf |
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
# dependencies: | |
# pip install rdfextras rdflib rdflib-sparql | |
import rdflib | |
from rdflib import Graph | |
g = Graph() | |
g.parse("Bob.rdf") | |
#g_nt = g.serialize(format='nt') |
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/python | |
# -*- coding: utf-8 -*- | |
from SPARQLWrapper import SPARQLWrapper, JSON, XML, N3, RDF | |
sparql = SPARQLWrapper("http://dbpedia.org/sparql") | |
sparql.setQuery(""" | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
SELECT ?wikiPageRevisionID | |
WHERE {<http://dbpedia.org/resource/Asturias> dbo:wikiPageRevisionID ?wikiPageRevisionID } |
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
Add a TXT record to DNS <domain> with: | |
dnslink="/ipns/<PeerID>" | |
example | |
dnslink="/ipns/QuVGb9PpmLb1TwsMkE1b8jVK8LGceMYMsWaSSviSucWPGx" |
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
du -sch $HOME/.[!.]* * | sort -rh | head -10 |
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
lsof -c <process_name> | |
You can give multiple -c switch on a single command line, example: | |
lsof -c ssh -c init |
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
docker rm $(docker ps --all -q -f status=exited) |
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
Find your stopped container id: | |
$ docker ps -a | |
Commit the stopped container: | |
This command saves modified container state into a new image user/test_image | |
$ docker commit $CONTAINER_ID user/test_image | |
Start/run with a different entry point: | |
$ docker run -ti --entrypoint=sh user/test_image |
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
0xaf252776BaE2D3748b6897784769FE22501e4b79 |
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/bash | |
# | |
# Using watch command to start a timer url | |
# | |
# MacOS | |
# ----- | |
# watch -n <seconds> open -a <app_name> <url> | |
# | |
# Dependencies: | |
# $ brew install watch |
OlderNewer