Skip to content

Instantly share code, notes, and snippets.

body.theme-mastodon-light form.compose-form div.autosuggest-textarea {
background-color: white;
}
body.theme-mastodon-light form.compose-form div.compose-form__autosuggest-wrapper {
background-color: white !important;
border: 1px solid var(--color-mud);
border-radius: 5px;
}
@aaronbieber
aaronbieber / vimrc
Last active November 23, 2022 03:12 — forked from heygarrett/vimrc
" Set colorscheme to solarized
colorscheme solarized
" Change the Solarized background to dark or light depending upon the time of
" day (5 refers to 5AM and 17 to 5PM). Change the background only if it is not
" already set to the value we want.
function! SetSolarizedBackground()
if strftime("%H") >= 5 && strftime("%H") < 17
if &background != 'light'
set background=light
#include <Encoder.h>
#include <Bounce.h>
#include <Keyboard.h>
const int pinClk = 6;
const int pinDt = 7;
const int prevButton = 8;
const int nextButton = 9;
const int pinButton = 10;
#include <Servo.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
const int servo_pin = D6;
const char* ssid = "<your WiFi SSID>";
const char* password = "<your WiFi password>";
const char* mqtt_server = "<your MQTT server name or IP>";
const char* mqtt_client_name = "hue_bar_base_1";
const char* mqtt_topic_pub = "lightbar/1/stat";
@aaronbieber
aaronbieber / not-a-tramp-file-name.trace.el
Created September 3, 2018 10:49
Lisp error while attempting helm-find-files
Debugger entered--Lisp error: (error "In ‘Find Files’ source: ‘helm-find-files-get-candidates’ \n (user-error \"Not a Tramp file name: \\\"/copernicus:\\\"\")")
signal(error ("In ‘Find Files’ source: ‘helm-find-files-get-candidates’ \n (user-error \"Not a Tramp file name: \\\"/copernicus:\\\"\")"))
error("In `%s' source: `%s' %s %s" "Find Files" helm-find-files-get-candidates "\n" "(user-error \"Not a Tramp file name: \\\"/copernicus:\\\"\")")
#f(compiled-function (source candidate-fn candidate-proc &optional e) #<bytecode 0x410a42e9>)(((name . "Find Files") (resume lambda nil (helm-ff-setup-update-hook) (setq helm-ff-default-directory "/" helm-ff-last-expanded nil)) (header-name lambda (name) (concat name (substitute-command-keys helm-find-files-doc-header))) (init lambda nil (setq helm-ff-auto-update-flag helm-ff-auto-update-initial-value) (setq helm-ff--auto-update-state helm-ff-auto-update-flag) (helm-set-local-variable 'bookmark-make-record-function (function helm-ff-make-bookmark-record)) (require
const express = require('express')
const app = express()
const config = require('./config');
const request = require('request');
app.get('/', (req, res) => {
//this will check if the code parameter is in the url, if not the
//most likely case is that this is the user's inital visit to oauth
//and we need to redirect them (Step 1) if there is a code, it most
//likely means they were redirected here from zoom oauth screen
2018-08-05 10:12:43,341 /home/pi/oprint/bin/python -m pip install https://github.com/foosel/OctoPrint/archive/1.3.9.zip
2018-08-05 10:12:46,792 > Collecting https://github.com/foosel/OctoPrint/archive/1.3.9.zip
2018-08-05 10:12:48,795 > Downloading https://github.com/foosel/OctoPrint/archive/1.3.9.zip (5.0MB)
2018-08-05 10:12:55,736 > Requirement already satisfied (use --upgrade to upgrade): flask<0.11,>=0.10.1 in /home/pi/oprint/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg (from OctoPrint==1.3.9)
2018-08-05 10:12:55,737 > Requirement already satisfied (use --upgrade to upgrade): Jinja2<2.9,>=2.8.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.3.9)
2018-08-05 10:12:55,738 > Requirement already satisfied (use --upgrade to upgrade): werkzeug<0.9,>=0.8.3 in /home/pi/oprint/lib/python2.7/site-packages/Werkzeug-0.8.3-py2.7.egg (from OctoPrint==1.3.9)
2018-08-05 10:12:55,738 > Requirement already satisfied (use --upgrade to upgrade): tornado==4.5.3 in /home/pi/oprint/lib/python2.7/site-p
2018-08-04 15:17:16,821 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2018-08-04 15:17:16,821 - octoprint.server - INFO - OctoPrint 1.3.8
2018-08-04 15:17:16,824 - octoprint.plugin.core - INFO - 15 plugin(s) registered with the system:
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
| Autoselect Plugin (0.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_autoselect
| Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
| !CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/cura
| Custom Control Editor (0.2.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_customControl
| Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
| Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
@aaronbieber
aaronbieber / ttytter.pl
Created October 17, 2013 15:34
Fix the "rate limit rate failure" error in TTYtter. Users repeatedly receiving the error "-- rate limit rate failure: using 180 second fallback" can fix the issue by adding backslashes to the keys in the `$rate_limit_ref` hash. Previously no values were being returned, which resulted in a calculated rate limit of zero, hence the fallback. Find t…
$rate_limit_left = &min(
0+$rate_limit_ref->{'resources'}->{'statuses'}->{'\/statuses\/home_timeline'}->{'remaining'},
&min(
0+$rate_limit_ref->{'resources'}->{'statuses'}->{'\/statuses\/mentions_timeline'}->{'remaining'},
0+$rate_limit_ref->{'resources'}->{'search'}->{'\/search\/tweets'}->{'remaining'}));
$rate_limit_rate = &min(
0+$rate_limit_ref->{'resources'}->{'statuses'}->{'\/statuses\/home_timeline'}->{'limit'},
&min(
0+$rate_limit_ref->{'resources'}->{'statuses'}->{'\/statuses\/mentions_timeline'}->{'limit'},
@aaronbieber
aaronbieber / funky-search.el
Last active February 11, 2016 10:59
Emacs jump to PHP function.
;; This is an attempt to mimic what the "CtrlP Funky" plug-in
;; for Vim does, allowing a "fuzzy search" of functions within
;; the current buffer.
;;
;; Because this uses completing-read (in my config., this is
;; handled by helm, which is awesome), it isn't actually
;; "fuzzy," but it gets the job done.
;;
;; Note: This is my first real attempt at writing elisp so it
;; might not be "proper."