Skip to content

Instantly share code, notes, and snippets.

View jadbox's full-sized avatar

Jonathan Rose Dunlap jadbox

View GitHub Profile
<script src="https://meet.jit.si/external_api.js"></script>
<div id="meet">
</div>
hello world
<script>
var options = {
roomName: "jdtest",
width: 700,
height: 700,
parentNode: document.querySelector('#meet')
conky.config = {
use_spacer = 'left',
pad_percents = 3,
background = false,
double_buffer = true,
font = 'DejaVu Sans Mono:size=10',
use_xft = true,
alignment = 'top_right',
gap_x = 10,
gap_y = 40,
geth --rinkeby account list
geth --rpc --rpcport 8545 --rpccorsdomain "*" --rpcapi="db,eth,net,web3,personal,web3,debug" --rinkeby console --light --unlock "0xACCOUNTHASH"
@jadbox
jadbox / auth.service.ts
Created July 13, 2018 20:55 — forked from 509dave16/auth.service.ts
Auth Service for Gun.js
import { gun } from './gun.service';
export const STATUS_SUCCESS = 'success';
export const STATUS_ERROR = 'error';
const ACTION_CREATE = 'create';
const ACTION_AUTH = 'auth';
const SESSION_KEY_USERNAME = 'rt_username';
const SESSION_KEY_PASSWORD = 'rt_password';
export interface Credentials {
username: string;
@jadbox
jadbox / gist:2d0b13d9a4cf88663662c97e0e97e8a8
Created July 19, 2018 21:13
macbook touchpad kde libinput synaptics linux
cat /usr/share/X11/xorg.conf.d/75-synaptics.conf
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
EndSection
# This option enables the bottom right corner to be a right button on
# non-synaptics clickpads.
@jadbox
jadbox / gist:f83cfef14ab3560ee4a418c01f9391f4
Created July 19, 2018 21:13
macbook touchpad kde libinput synaptics linux
cat /usr/share/X11/xorg.conf.d/75-synaptics.conf
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
EndSection
# This option enables the bottom right corner to be a right button on
# non-synaptics clickpads.
@jadbox
jadbox / gist:0152f2573b6e23429f46f1a548035166
Created July 30, 2018 20:27
DECALmachine error linux
Traceback (most recent call last):
File "/home/jdunlap/plus/blender/2.79/scripts/modules/addon_utils.py", line 351, in enable
mod = __import__(module_name)
File "/home/jdunlap/.config/blender/2.79/scripts/addons/DECALmachine/__init__.py", line 85, in <module>
modules = du.setup_addon_modules(__path__, __name__, "bpy" in locals())
File "/home/jdunlap/.config/blender/2.79/scripts/addons/DECALmachine/developer_utils.py", line 36, in setup_addon_modules
modules = import_submodules(names)
File "/home/jdunlap/.config/blender/2.79/scripts/addons/DECALmachine/developer_utils.py", line 28, in import_submodules
modules.append(importlib.import_module("." + name, package_name))
File "/home/jdunlap/plus/blender/2.79/python/lib/python3.6/importlib/__init__.py", line 126, in import_module
@jadbox
jadbox / gist:b46f23664a2340953129a523ee7734c5
Last active August 14, 2018 21:14
AWS cognito Hosted UI component - typescript - no persistence
import React, { Component } from 'react';
import awsmobile from '../aws-exports';
import Auth from '@aws-amplify/auth';
import { Hub } from '@aws-amplify/core';
import {withOAuth} from 'aws-amplify-react';
const config = Auth.configure(awsmobile) as any;
interface State { loggedIn: boolean, user?:{username: string, name:string, email: string} }
class AWSApp extends Component<any, State> {
//import and prepare iot for pubsub
const IotData = require("aws-sdk/clients/iotdata");
let iotData;
export default function getIotData() {
if (iotData) {
return iotData;
} else {
iotData = new IotData({
endpoint: process.env["AWS_IOT_ENDPOINT"],
@jadbox
jadbox / gist:a5045b3f2ed1c30d559daaa821357d41
Created October 31, 2018 14:05
Fedora 29 battle.net installer error
I've installed a fresh copy of Fedora 29, installed wine-staging and other battle.net deps recommended for Fedora (see below).
However, when I try to install Battle.net (or Overwatch), I get the following logs before the battle.net installer crashes.
Installer failure image:
https://imgur.com/a/QfuCpPL
DEBUG 2018-10-31 06:26:18,888 [thread]:Processes monitored: Battle.net-Setu (5752:R), Battle.net-Setu (5752:R)
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
Fontconfig error: Cannot load default config file