Skip to content

Instantly share code, notes, and snippets.

View csarven's full-sized avatar
👽
https://csarven.ca/#i

Sarven Capadisli csarven

👽
https://csarven.ca/#i
View GitHub Profile
@melvincarvalho
melvincarvalho / gist:c5bba67e1c02ce0ca3ed06aa9d57d157
Last active May 24, 2017 07:49
Reasons to like weibd-tls

Tim Berners-Lee @timbl

I lke webid-tls because

  • Public keys are sooo much better than passwords

  • I want to have 1 or more public ID consistently in a bunch of stuff I do, not a different ID in each silo.

  • I feel it is simpler/quicker/more secure to authenticate directly from client to server in general than get redirected to other third parties.

@RubenVerborgh
RubenVerborgh / proposal.md
Last active May 19, 2017 19:28
Discussion proposal ESWC2017 workshop on Enabling Decentralised Scholarly Communication
@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active November 23, 2025 19:56
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@tiagoengel
tiagoengel / noise-cancellation.sh
Last active September 8, 2025 19:08
Hiss / White / Static noise cancellation on Linux using Pulseaudio and Sox
#!/bin/bash
# You'll need to have sox, pavucontrol and alsa-utils installed, and the snd_aloop kernel module loaded.
# You can configure your system to load it on startup or load it manually with "sudo modprobe snd_aloop"
# Once this is script is running, you need to start recording audio in the application of your
# preference, open pavucontrol, go to the recording tab and change the recording source of that application
# to "Monitor of Loopback ..."
time=5
@RubenVerborgh
RubenVerborgh / fragments.dbpedia.org.conf
Last active January 3, 2017 13:19
NGINX config for fragments.dbpedia.org
proxy_cache_path /mnt/tmp/cache/nginx levels=1:2 keys_zone=fragments-cache:100m max_size=20g inactive=600m;
proxy_temp_path /mnt/tmp/nginx;
upstream fragments-node {
server 127.0.0.1:4000;
}
server {
server_name fragments.dbpedia.org;

Discovery Support Technical Specifications Group Charter

Introduction

Interoperable resources are only useful if they can be found. This has been well-recognized since the early days of the IIIF community, and more recently it has become clear that a concerted effort to standardize patterns that will facilitate discovery, harvesting and synchronization, indexing, and importing of IIIF resources is required.

This group will create specifications that improve the discovery process for IIIF resources, with a focus on leveraging existing techniques and tools, and promoting widespread adoption within the community. It will assist with and steer the implementation of community infrastructure, such as a registry of adopters, validators for the implementations, and transformation tools to generate the required data from existing systems and APIs.

If successful, the work will enable the collaborative development of global or thematic registries, search engines and portal applications that allow developers a

WebID TLS in Chrome/Chromium

  1. allow Key generation in chrome://settings/content chromium-key-generation
  2. register an account that will generate a cert - eg. https://databox.me/ creates user.crt
  3. on OSX
  • Under 'Keychains' on the left, select 'Login' then 'File' > 'Import Items...'
  • Select certificate in 'My Certificates' and set it to Always Trust osx-keychain
#!/bin/bash
curl -X GET https://query.wikidata.org/sparql \
--data-urlencode "format=json&query='CONSTRUCT ?s <http://example.org/onto/dummypred> ?o WHERE { ?s ?p ?o } LIMIT 100'" -H 'Accept:text/plain' \
> data/testquery.nt
@jindrichmynarz
jindrichmynarz / data.md
Last active August 22, 2016 18:41
SPARQL queries over statistical yearbooks of pensions

Data for the queries

The queries use statistical yearbook data on pensions in the Czech Republic. The data is modelled using the Data Cube Vocabulary.