Skip to content

Instantly share code, notes, and snippets.

View anderskitson's full-sized avatar

Anders Kitson anderskitson

View GitHub Profile
View gist:8e656a0d80d924dd3f3cd06250e6688c
allll [
<ref *1> IncomingMessage {
_readableState: ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: false,
ended: true,
View render.js
import { gql, useMutation, useQuery } from "@apollo/client";
import useSWR from "swr";
import Layout from "../../components/Layout";
import React, { useState } from "react";
import {
useTable,
usePagination,
useFilters,
useGlobalFilter,
useAsyncDebounce,
View gist:cc50049de5fa0b3a1d3a9b9f5c9fa4b0
import { gql, useMutation, useQuery } from "@apollo/client";
import useSWR from "swr";
import Layout from "../../components/Layout";
import React, { useState } from "react";
import { useTable, usePagination } from "react-table";
import styled from "styled-components";
import ReactDatePicker from "react-datepicker";
import { useEffect } from "react";
import "react-datepicker/dist/react-datepicker.css";
import { useCallback } from "react";
View gist:011a877f26563aa85ff27cc5278d104b
import { gql, useQuery } from "@apollo/client";
import useSWR from "swr";
import Layout from "../../components/Layout";
import React from "react";
import { useTable, usePagination } from "react-table";
import styled from "styled-components";
const DECOR_VALUES = gql`
query GetDecorValues($id: ID!) {
findUserByID(id: $id) {
View homeserver.yaml
server_name: "chat.kitson.tech"
pid_file: /root/synapse/homeserver.pid
federation_ip_range_blacklist:
- "127.0.0.0/8"
- "10.0.0.0/8"
- "172.16.0.0/12"
- "192.168.0.0/16"
- "100.64.0.0/10"
View gist:c62053f35f407f5e68855f515430a865
User=root
Group=nogroup
WorkingDirectory=/root/synapse
ExecStart=/root/synapse/env/bin/python -m synapse.app.homeserver --config-path=/root/synapse/homeserver.yaml
SyslogIdentifier=matrix-synapse
* matrix-synapse.service - Synapse Matrix homeserver
Loaded: loaded (/etc/systemd/system/matrix-synapse.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-08-02 19:22:33 UTC; 23h ago
Main PID: 22273 (code=exited, status=1/FAILURE)
View hyper-js-error
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View docker-compose.yml
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
View complete-log
0 info it worked if it ends with ok
1 verbose cli [ '/home/anderskitson/.nvm/versions/node/v9.9.0/bin/node',
1 verbose cli '/home/anderskitson/.nvm/versions/node/v9.9.0/bin/npm',
1 verbose cli 'start' ]
2 info using npm@5.6.0
3 info using node@v9.9.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle Vulcan@1.8.11~prestart: Vulcan@1.8.11
6 verbose lifecycle Vulcan@1.8.11~prestart: unsafe-perm in lifecycle true
7 verbose lifecycle Vulcan@1.8.11~prestart: PATH: /home/anderskitson/.nvm/versions/node/v9.9.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/mnt/c/Users/Anders/sites/wispy.co/node_modules/.bin:/home/anderskitson/bin:/home/anderskitson/.local/bin:/home/anderskitson/.nvm/versions/node/v9.9.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files/Git/cmd:/mnt/c/ProgramData/chocolatey/bin:/mnt
View RegisterUser.php
<?php namespace Acme;
class RegisterUser{
public function execute(array $data, $listener){
var_dump('Registering the user.');
$listener->userRegisteredSuccessfully();