Skip to content

Instantly share code, notes, and snippets.

View jadbox's full-sized avatar

Jonathan Rose Dunlap jadbox

View GitHub Profile
@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> {
@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: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: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 / 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;
geth --rinkeby account list
geth --rpc --rpcport 8545 --rpccorsdomain "*" --rpcapi="db,eth,net,web3,personal,web3,debug" --rinkeby console --light --unlock "0xACCOUNTHASH"
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,
<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')
@jadbox
jadbox / gist:9ab6679cadeb33849afb069bd3750068
Created January 14, 2018 00:00
70-synaptics.conf macbook
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
#Option "TapButton1" "1"
Option "TapButton2" "3"
#Option "TapButton3" "2"
Option "FingerHigh" "50"
Option "ClickTime" "0"
https://www.reddit.com/r/unixporn/comments/64mihc/i3_kde_plasma_a_match_made_in_heaven/
just install plasma and i3. Copy my i3 configuration and the file ~/.config/plasma-workspace/env/wm.sh. Restart X (keep using plasma as session) and you have your DE+WM environment. Then just start playing with configuration and themes :)
[–]endlessfield 4 points 5 months ago
When I try this, KWin runs on top of i3 blocking almost all of the screen except for i3bar. Is there any additional things you need to configure in order not to spawn KWin?
[–]poppinsmacArch 3 points 4 months ago