Skip to content

Instantly share code, notes, and snippets.

@maparent
maparent / # postgresql@15 - 2022-10-21_09-37-22.txt
Created October 21, 2022 14:19
postgresql@15 on macOS 12 - Homebrew build logs
Homebrew build logs for postgresql@15 on macOS 12
Build date: 2022-10-21 09:37:22
import app, { Component, EventOptions } from 'apprun';
function doChildEv(ev: Event) {
this._component.run("childSetState", ev);
}
function getComponent(el) {
while (el) {
if (el && el._component) {
return el._component
import app, { Component, EventOptions } from 'apprun';
export class TreeComponent extends Component {
view = (state) => {
var li = <li>
{state.id || "1"}
 <button onclick={() => this.run("-1")}>-1</button>
      <button onclick={() => this.run("+1")}>+1</button>
</li>;
if (state['sub']) {
@maparent
maparent / CMakeError.log
Created April 30, 2019 09:51
cogutils on OSX error log file
Determining if files bfd.h exist failed with the following output:
Change Dir: /Users/maparent/OpenSource/cogutil/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_f2f15/fast
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_f2f15.dir/build.make CMakeFiles/cmTC_f2f15.dir/build
Building C object CMakeFiles/cmTC_f2f15.dir/HAVE_BFD_H.c.o
/usr/local/bin/gcc-8 -Wall -Wno-long-long -Wno-conversion -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -o CMakeFiles/cmTC_f2f15.dir/HAVE_BFD_H.c.o -c /Users/maparent/OpenSource/cogutil/build/CMakeFiles/CheckIncludeFiles/HAVE_BFD_H.c
/Users/maparent/OpenSource/cogutil/build/CMakeFiles/CheckIncludeFiles/HAVE_BFD_H.c:2:10: fatal error: bfd.h: No such file or directory
#include <bfd.h>
^~~~~~~
@maparent
maparent / gist:137c2731137999947aad708403f536d4
Created April 30, 2019 09:50
cogutil on macosx build log
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/local/bin/gcc-8
-- Check for working C compiler: /usr/local/bin/gcc-8 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
@maparent
maparent / backboneToClass.js
Last active March 18, 2019 11:25
A jscodeshift transformer to make classes from Backbone extends declarations
// Transform backbone declaration to class
// follows https://github.com/jashkenas/backbone/issues/3560#issuecomment-248670605
export default function transformer(file, api) {
const j = api.jscodeshift;
return j(file.source)
.find(j.VariableDeclaration)
.filter((path)=>{
var decl = path.node.declarations[0];
var init = decl.init;

Keybase proof

I hereby claim:

  • I am maparent on github.
  • I am maparent (https://keybase.io/maparent) on keybase.
  • I have a public key ASAFE5OZ4qPsWsyi0jQrlNQwNggW_hubqdlNFAKzu5mIvgo

To claim this, I am signing this object:

@maparent
maparent / # rabbitmq - 2018-07-24_20-25-42.txt
Created August 3, 2018 15:52
rabbitmq on macOS 10.13.6 - Homebrew build logs
Homebrew build logs for rabbitmq on macOS 10.13.6
Build date: 2018-07-24 20:25:42
@maparent
maparent / idealoom1.rc
Created June 24, 2017 12:49
Example mydocker.rc file for conversence/idealoom:latest
_extends = ~/configs/docker.rc
*db_database = idealoom1
*db_user = idealoom1
public_hostname = idealoom.example.com
first_admin_email = admin@idealoom.example.com
redis_socket = 1
uwsgi__socket = 0.0.0.0:9001
sentry_api_token =
raven_url =
handler_sentry__args = ()
@maparent
maparent / docker-compose.yml
Last active February 3, 2021 08:19
Example docker-compose file for conversence/idealoom:latest
version: "3"
networks:
my_net:
volumes:
idealoom_static:
pgdata:
redisdata: