Skip to content

Instantly share code, notes, and snippets.

View ROpdebee's full-sized avatar

Ruben Opdebeeck ROpdebee

View GitHub Profile
@ROpdebee
ROpdebee / check_caa.py
Last active April 8, 2021 19:10
Script to bulk-check IA metadata.
# Python 3.8+
# Run as python3 check_caa.py SOURCE_MBIDS OUT_PATH [CACHE_PATH]
# SOURCE_MBIDS: File containing MBIDs to check items for, one per line
# OUT_PATH: File to write results to, as IA item identifiers, one per line
# CACHE_PATH: Directory to store intermediate results in and/or load intermediate results from after a failed job.
import csv
import aiohttp
from tqdm.asyncio import tqdm
from pathlib import Path
cask 'julia-rc' do
version '1.3.0-rc4'
sha256 '0e0519f7bfd8965e3658c541abf0c400caa3a3c3e83a38582b873d9af0a092a0'
url "https:///julialang-s3.julialang.org/bin/mac/x64/#{version.major_minor}/julia-#{version}-mac64.dmg"
appcast 'https://github.com/JuliaLang/julia/releases.atom'
name 'Julia'
homepage 'https://julialang.org/'
app "Julia-#{version.major_minor}.app"
@ROpdebee
ROpdebee / tool.py
Created June 19, 2019 17:34
Loguru CLI parsing tool
"""Command-line tool to parse and pretty-print loguru serialized log files."""
import argparse
import json
import operator
import re
import sys
OPERATORS = {
'==': operator.eq,
'!=': operator.ne,
@ROpdebee
ROpdebee / test.hs
Created November 25, 2017 13:51
SublimeHaskell test
module Main (main) where
main :: IO()
main = print "Hello world"
test :: Int -> Int
test = (+)
test2 :: Int -> Bool
test2 = even
@ROpdebee
ROpdebee / SublimeHaskell.log
Last active November 25, 2017 13:55
SublimeHaskell Log File
=> => => [25 Nov 2017, 14:40:43] Console logging activated (/Users/ruben/.subl.log).
Sublime Haskell: hsdev types returns error: ghc error
id: 12, msg: parse error on input ‘test’
<hsdev stderr> 2017-11-25 14:40:57 +0100 ERROR :ghc/types> Scope leaves with exception: parse error on input ‘test’
<hsdev stderr>
<hsdev stderr> CallStack (from HasCallStack):
<hsdev stderr> onError, called at src/System/Log/Simple/Monad.hs:104:36 in simple-log-0.9.3-J5jYiWMah1HIz7e7MUaq97:System.Log.Simple.Monad
<hsdev stderr>
<hsdev stderr> 2017-11-25 14:40:57 +0100 ERROR :ghc> Scope leaves with exception: parse error on input ‘test’
2015-10-21 17:23:14 ERROR SHOWQUEUE-ADD :: Error saving the show to the database: near "WHERE": syntax error
OperationalError: near "WHERE": syntax error
return self.connection.cursor().execute(query, args)
File "/Applications/SickRage/sickbeard/db.py", line 80, in _execute
return self._execute(query, args)
File "/Applications/SickRage/sickbeard/db.py", line 100, in execute
sqlResult = self.execute(query, args, fetchall=fetchall, fetchone=fetchone)
File "/Applications/SickRage/sickbeard/db.py", line 201, in action
Traceback (most recent call last):
2015-10-21 17:23:14 ERROR SHOWQUEUE-ADD :: DB error: near "WHERE": syntax error
2015-10-21 17:23:14 ERROR SHOWQUEUE-ADD :: Error saving the show to the database: near "WHERE": syntax error
OperationalError: near "WHERE": syntax error
return self.connection.cursor().execute(query, args)
File "/Applications/SickRage/sickbeard/db.py", line 80, in _execute
return self._execute(query, args)
File "/Applications/SickRage/sickbeard/db.py", line 100, in execute
sqlResult = self.execute(query, args, fetchall=fetchall, fetchone=fetchone)
File "/Applications/SickRage/sickbeard/db.py", line 201, in action
Traceback (most recent call last):
2015-10-21 17:23:14 ERROR SHOWQUEUE-ADD :: DB error: near "WHERE": syntax error
2015-10-21 17:26:38 ERROR SHOWQUEUE-ADD :: Error saving the show to the database: near "WHERE": syntax error
OperationalError: near "WHERE": syntax error
return self.connection.cursor().execute(query, args)
File "/Applications/SickRage/sickbeard/db.py", line 80, in _execute
return self._execute(query, args)
File "/Applications/SickRage/sickbeard/db.py", line 100, in execute
sqlResult = self.execute(query, args, fetchall=fetchall, fetchone=fetchone)
File "/Applications/SickRage/sickbeard/db.py", line 201, in action
Traceback (most recent call last):
2015-10-21 17:26:38 ERROR SHOWQUEUE-ADD :: DB error: near "WHERE": syntax error
2015-10-21 17:26:38 ERROR SHOWQUEUE-ADD :: Error saving the show to the database: near "WHERE": syntax error
OperationalError: near "WHERE": syntax error
return self.connection.cursor().execute(query, args)
File "/Applications/SickRage/sickbeard/db.py", line 80, in _execute
return self._execute(query, args)
File "/Applications/SickRage/sickbeard/db.py", line 100, in execute
sqlResult = self.execute(query, args, fetchall=fetchall, fetchone=fetchone)
File "/Applications/SickRage/sickbeard/db.py", line 201, in action
Traceback (most recent call last):
2015-10-21 17:26:38 ERROR SHOWQUEUE-ADD :: DB error: near "WHERE": syntax error