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
CREATE PROCEDURE dump_nquads | |
( IN dir VARCHAR := 'dumps' | |
, IN start_from INT := 1 | |
, IN file_length_limit INTEGER := 100000000 | |
, IN comp INT := 1 | |
) | |
{ | |
DECLARE inx, ses_len INT | |
; DECLARE file_name VARCHAR | |
; DECLARE env, ses ANY |
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 | |
for file in *; do head -n 10000 "$file" > ../redux/"$file"; done |
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
sudo iptables -A INPUT -p tcp --dport 8890 -s XXX.XXX.XXX.XXX -j ACCEPT |
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 | |
find . -type d \! -name CVS -exec cvs add '{}' \; | |
find . \( -type d -name CVS -prune \) -o \( -type f -exec cvs add '{}' \; \) | |
find . \( -type d -name CVS -prune \) -o \( -type f -exec cvs commit -m "first version" '{}' \; \) |
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
CREATE PROCEDURE load_graphs | |
( IN dir VARCHAR := '{WRITE HERE YOUR EXPORT PATH (allowed dir in virtuoso.ini)}' ) | |
{ | |
DECLARE arr ANY; | |
DECLARE g VARCHAR; | |
arr := sys_dirlist (dir, 1); | |
log_enable (2, 1); | |
FOREACH (VARCHAR f IN arr) DO | |
{ |
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
CREATE PROCEDURE dump_graphs | |
( IN dir VARCHAR := '{WRITE HERE YOUR EXPORT PATH (allowed dir in virtuoso.ini)}' , | |
IN file_length_limit INTEGER := 10000000000 | |
) | |
{ | |
DECLARE inx INT; | |
inx := 1; | |
SET ISOLATION = 'uncommitted'; | |
FOR ( SELECT * | |
FROM ( SPARQL DEFINE input:storage "" |
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 | |
# extract jpg from PDF | |
# based on a script edited by Purch | |
##################################### | |
if [ -z $1 ];then echo Give target directory; exit 0;fi | |
find "$1" -depth -name '*.pdf' | while read file ; do | |
directory=$(dirname "$file") | |
oldfilename=$(basename "$file") |