Skip to content

Instantly share code, notes, and snippets.

View barvian's full-sized avatar

Maxwell Barvian barvian

View GitHub Profile
@barvian
barvian / index.svelte
Last active January 23, 2023 17:36
Vite plugin for SvelteKit
<script context="module" lang="ts">
import type * as $types from './$types'
export const csr = false
export const getData = (async (event) => {
return {
server: event.data.server,
client: 'client data!'
}
@barvian
barvian / dim.conf
Created April 23, 2021 13:06
Dim backlight on Toshiba Portege R500
#
# Disabling RootFS Verification required first:
# https://cloudreadykb.neverware.com/s/article/Disabling-RootFS-Verification?ui-force-components-controllers-recordGlobalValueProvider.RecordGvp.getRecord=1&r=5
#
description "Dim screen"
author "Maxwell Barvian"
start on start-user-session
stop on stopping ui or starting halt or starting reboot
@barvian
barvian / styles.css
Created April 13, 2020 22:47
Dropbox Paper for Writers
/* @import url("//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"); */
#padpage {
max-width: 49rem !important;
width: 100% !important;
margin-left: auto !important;
}
/* Header */
#hp-page-editor #main-header-container {
@barvian
barvian / dribbble-likes.js
Created June 15, 2018 16:24
Add Likes menu item to Dribbble profile dropdown.
// ==UserScript==
// @name Dribbble Likes
// @namespace http://barvian.me/
// @version 1.0.0
// @description Add Likes to Dribbble profile dropdown
// @author Maxwell Barvian
// @match *://dribbble.com/*
// ==/UserScript==
(function (window, document, undefined) {
@barvian
barvian / promise-seq.js
Created October 3, 2017 21:53
Run an array of promises in sequence
const results = []
return arrayOfPromises.reduce((chain, promise, i) =>
chain.then((result) => {
if (i > 0) results[i-1] = result
return promise
})
, Promise.resolve())
.then((lastResult) => results.push(lastResult))
.then(() => results)
@barvian
barvian / .hyperterm.js
Last active September 30, 2016 15:15
HyperTerm
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12.5,
// font family with optional fallbacks
fontFamily: '"Input Mono", "Menlo for Powerline", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(255,255,255,.4)',
@barvian
barvian / user-styles.css
Created May 31, 2016 19:31
Unbiased Medium
.postMeta-previewSocialHeader,
.postMetaHeader-socialProof2,
[data-action-value="followers"] b,
[data-action="show-recommends"],
[data-action="scroll-to-responses"],
.button[href$="responses"],
.compressedPostListItem-recommendAndRespondCounts {
display: none;
}
@barvian
barvian / user-styles.css
Last active September 30, 2017 23:05
Unbiased Dribbble
@import url("https://fontlibrary.org/face/adobe-blank");
/* Shots */
.dribbble-shot .tools {
height: 11px;
}
.dribbble-shot .tools .cmnt,
.dribbble-shot .tools .views {
display: none;
@barvian
barvian / letterboxd-rt.js
Last active January 4, 2016 12:46
Add RottenTomatoes ratings to Letterboxd film pages.
// ==UserScript==
// @name Letterboxd RT
// @namespace http://barvian.me/
// @version 1.0.0
// @description Add RottenTomatoes ratings to Letterboxd film pages.
// @author Maxwell Barvian
// @match *://letterboxd.com/*
// ==/UserScript==
(function(window, document, undefined) {