Skip to content

Instantly share code, notes, and snippets.

Andrew Cook ariscop

Block or report user

Report or block ariscop

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ariscop / build.log
Created Feb 9, 2019
Building reactos with gcc 7.3
View build.log
[91/9712] Performing configure step for 'host-tools'
-- The C compiler identification is GNU 8.2.1
-- The CXX compiler identification is GNU 8.2.1
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler using: Ninja
ariscop / with_macro.c
Created Sep 27, 2018
with macro in c
View with_macro.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define with(_init, _fini) for(int _count = ((_init), 1); _count--; (_fini))
#define with_file(var, name, access) with(var = fopen(name, access), (var ? fclose(var) : 0 ))
test_macro(char *file)
View 0001-Reactos-changes.patch
From f114131ec986a3ff7f7668df1a31fb60daf980a6 Mon Sep 17 00:00:00 2001
From: Andrew Cook <>
Date: Sun, 11 Mar 2018 13:18:36 +1100
Subject: [PATCH] Reactos changes
Source/CMakeLists.txt | 12 ++
Source/CMakeVersionCompute.cmake | 1 +
Source/cmGeneratorTarget.h | 5 +-
Source/cmGlobalNinjaGenerator.cxx | 24 ++-
View changes.patch
commit 09c06a2f457ec9557bcdf1809ecb4b50b2fb654a
Author: Amine Khaldi <>
Date: Fri Oct 27 22:18:01 2017 +0100
[CLANG-CL] Initial commit that allows us to compile ReactOS with clang-cl.
diff --git a/sdk/cmake/Platform/Windows-MSVC.cmake b/sdk/cmake/Platform/Windows-MSVC.cmake
index dc09c7479f2..5c3912cfeab 100644
--- a/sdk/cmake/Platform/Windows-MSVC.cmake
+++ b/sdk/cmake/Platform/Windows-MSVC.cmake
ariscop /
Created Mar 19, 2015
Simple passthrough element for gstreamer 1.0 in python
#!/usr/bin/env python3
import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject, Gst
loop = GObject.MainLoop()
ariscop /
Created Feb 11, 2015
Unpacker for topsee camera firmware
#!/usr/bin/env python3
import sys
import crcmod
from struct import unpack
from collections import namedtuple
def to_hex(data):
return ''.join('%02x' % x for x in data)
ariscop / main.c
Created May 23, 2013
subreaper, sets PR_SET_CHILD_SUBREAPER so you can have a nice looking process tree in htop
View main.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/wait.h>
#include <sys/prctl.h>
int main(int argc, char *argv[]) {
if(argc < 2) {
puts("Insufficent parameters");
View gist:5328317
[andrew@andrews-laptop tmp]$ cat test.cpp
#include <string>
using namespace std;
int main(int argc, char *argv[]) {
string *str = new string("test");
[andrew@andrews-laptop tmp]$ g++ -nostdlib test.cpp
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400144
ariscop / traccar_postgresql_schema.sql
Created Dec 9, 2014
Postgresql compatible traccar schema
View traccar_postgresql_schema.sql
CREATE TABLE application_settings (
id bigserial NOT NULL,
registrationenabled boolean NOT NULL
CREATE TABLE devices (
id bigserial NOT NULL,
name character varying(255),
uniqueid character varying(255),
latestposition_id bigint
ariscop / ytdl.user.js
Last active Oct 12, 2015
Greasemonkey script for downloading youtube videos
View ytdl.user.js
// ==UserScript==
// @name Youtube download links
// @namespace sothiscanbeanythingright
// @description Adds a tab for downloading youtube videos
// @include*
// @include*
// @version 1
// @grant none
// ==/UserScript==
You can’t perform that action at this time.