Skip to content

Instantly share code, notes, and snippets.

View tschoonj's full-sized avatar

Tom Schoonjans tschoonj

View GitHub Profile
@tschoonj
tschoonj / test-ceph-bucket-monitoring.py
Last active December 1, 2022 22:22
Monitor Ceph S3 buckets for new files from Python with boto3 and pika
import os
import boto3
from botocore.client import Config
import sys
import string
import random
import logging
import time
import json
import urllib
@tschoonj
tschoonj / test-aws-bucket-monitoring.py
Last active February 25, 2022 10:14
Monitor AWS S3 buckets for new files from Python with boto3
import boto3
import os
import sys
import string
import random
import logging
import time
import json
import urllib
from threading import Thread
# escape=`
FROM buildtools2019:latest
# Restore the default Windows shell for correct batch processing.
SHELL ["cmd", "/S", "/C"]
# Download the Miniconda installer
ADD https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe C:\TEMP\miniconda.exe
@tschoonj
tschoonj / # meson - 2019-09-15_16-55-59.txt
Created October 8, 2019 13:42
meson on macOS 10.13.6 - Homebrew build logs
Homebrew build logs for meson on macOS 10.13.6
Build date: 2019-09-15 16:55:59
@tschoonj
tschoonj / xraylib_np.c
Created December 12, 2016 11:57
Cython clang issue
This file has been truncated, but you can view the full file.
/* Generated by Cython 0.25.2 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
#error Cython requires Python 2.6+ or Python 3.2+.
#else
#define CYTHON_ABI "0_25_2"
@tschoonj
tschoonj / Recipe
Created November 25, 2016 15:51
DAWN Linux AppImage Recipe
#!/bin/bash
APP="DawnDiamond"
VERSION="2.3.0.v20161123-1546"
rm -rf $APP/$APP.AppDir
rm -rf out
mkdir -p $APP
diff --git a/src/hed/acc/JobDescriptionParser/ARCJSDLParser.cpp b/src/hed/acc/JobDescriptionParser/ARCJSDLParser.cpp
index eab7a58..78ace1a 100644
--- a/src/hed/acc/JobDescriptionParser/ARCJSDLParser.cpp
+++ b/src/hed/acc/JobDescriptionParser/ARCJSDLParser.cpp
@@ -225,7 +225,7 @@ namespace Arc {
if (bool(xmlBenchmark["BenchmarkType"]) &&
bool(xmlBenchmark["BenchmarkValue"]) &&
stringto(xmlBenchmark["BenchmarkValue"], value))
- benchmark = std::make_pair<std::string, int>((std::string)xmlBenchmark["BenchmarkType"], value);
+ benchmark = std::make_pair((std::string)xmlBenchmark["BenchmarkType"], value);
diff --git a/src/synfig/main.cpp b/src/synfig/main.cpp
index b60637d..2242598 100644
--- a/src/synfig/main.cpp
+++ b/src/synfig/main.cpp
@@ -289,22 +289,22 @@ synfig::Main::Main(const synfig::String& basepath,ProgressCallback *cb):
locations.push_back(getenv("SYNFIG_MODULE_LIST"));
else
{
- locations.push_back("./"MODULE_LIST_FILENAME);
+ locations.push_back("./" MODULE_LIST_FILENAME);
diff --git a/src/gui/canvasview.cpp b/src/gui/canvasview.cpp
index 076f704..9cf4504 100644
--- a/src/gui/canvasview.cpp
+++ b/src/gui/canvasview.cpp
@@ -33,7 +33,7 @@
# include <config.h>
#endif
-#include <sigc++/adaptors/hide.h>
+#include <sigc++/sigc++.h>
@tschoonj
tschoonj / gio.patch
Last active September 21, 2015 15:31
diff --git a/gio/Makefile.am b/gio/Makefile.am
index e993e2f..6eab656 100644
--- a/gio/Makefile.am
+++ b/gio/Makefile.am
@@ -131,7 +131,7 @@ endif
if OS_COCOA
settings_sources += \
- gnextstepsettingsbackend.c
+ gnextstepsettingsbackend.m