I hereby claim:
- I am jgfaisca on github.
- I am jgfaisca (https://keybase.io/jgfaisca) on keybase.
- I have a public key whose fingerprint is 3745 D578 1828 A3B2 BC29 605A 8647 7DC0 A2C6 E081
To claim this, I am signing this object:
# | |
# Testing SSL/TLS Client Authentication with openssl | |
# | |
# Create a test file | |
echo "Hello!" > test.txt | |
# Setup an SSL/TLS server that checks the client certificate | |
openssl s_server -cert server-cert.pem -key server-key.pem -WWW -port 4433 -CAfile ca-cert.pem -verify_return_error -Verify 1 |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# Using watch command to start a timer url | |
# | |
# MacOS | |
# ----- | |
# watch -n <seconds> open -a <app_name> <url> | |
# | |
# Dependencies: | |
# $ brew install watch |
0xaf252776BaE2D3748b6897784769FE22501e4b79 |
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 |
docker rm $(docker ps --all -q -f status=exited) |
lsof -c <process_name> | |
You can give multiple -c switch on a single command line, example: | |
lsof -c ssh -c init |
du -sch $HOME/.[!.]* * | sort -rh | head -10 |
Add a TXT record to DNS <domain> with: | |
dnslink="/ipns/<PeerID>" | |
example | |
dnslink="/ipns/QuVGb9PpmLb1TwsMkE1b8jVK8LGceMYMsWaSSviSucWPGx" |
#!/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 } |