Skip to content

Instantly share code, notes, and snippets.

View lindhe's full-sized avatar
🦥

Andreas Lindhé lindhe

🦥
View GitHub Profile
@lindhe
lindhe / userChrome.css
Created November 12, 2019 22:04
Thunderbird userChrome.css for reasonable zoom level
/*
* PUT THIS IN ~/.thudnerbird/[profile_name]/chrome/userChrome.css
*
* And remember to set layout.css.devPixelsPerPx to 1.2 in about:config
*
*/
/*
* Do not remove the @namespace line -- it's required.
*/
@lindhe
lindhe / project_list_debug.log
Created August 28, 2019 13:38
Debug log of `az devops project list --debug`
DEBUG: Command arguments: ['devops', 'project', 'list', '--debug']
DEBUG: Event: Cli.PreExecute []
DEBUG: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f6d7e9dad90>, <function OutputProducer.on_global_arguments at 0x7f6d7e513b70>, <function CLIQuery.on_global_arguments at 0x7f6d7e53dbf8>]
DEBUG: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: Installed command modules ['acr', 'acs', 'advisor', 'ams', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'serviceb
@lindhe
lindhe / user_list_debug.log
Last active August 28, 2019 10:43
Debug log of az devops user list --debug
DEBUG: Command arguments: ['devops', 'user', 'list', '--debug']
DEBUG: Event: Cli.PreExecute []
DEBUG: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f550fadfd90>, <function OutputProducer.on_global_arguments at 0x7f550f618b70>, <function CLIQuery.on_global_arguments at 0x7f550f642bf8>]
DEBUG: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: Installed command modules ['acr', 'acs', 'advisor', 'ams', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus'
@lindhe
lindhe / config.js
Created February 6, 2019 19:45
teleirc config
var config = {};
module.exports = config;
/////////////////////
// General config //
/////////////////////
// verbosity of console output
// possible options from most to least verbose:
// silly, debug, verbose, info, warn, error
@lindhe
lindhe / weeknumber.gs
Last active January 5, 2019 21:03
Prints Week number from date in Google Sheets
function printWeek() {
var settings = SpreadsheetApp.getActive().getSheetByName('settings');
var sheet = SpreadsheetApp.getActive().getSheetByName('test');
const DATE = 0;
const WEEK = 1;
const START_ROW = 2; // First row of data to process
// Fetch settings:
var config = settings.getRange(2,1,10,2).getValues(); // change range dependign on need
var numRows = config[0][1]; // Number of rows to process
if (typeof(numRows) !== 'number') {
@lindhe
lindhe / dateHelpers.gs
Last active January 5, 2019 21:02
Google Scripts form email helper functions
// -*- coding: utf-8 -*-
// vim: syntax=javascript tabstop=2
function nothing() {
// Triggers don't like files with no named function.
Logger.log("Nothing happened.\n");
};
Date.prototype.getWeekNumber = function() {
// http://stackoverflow.com/questions/6117814/get-week-of-year-in-javascript-like-in-php
@lindhe
lindhe / ErgoDox-EZ-Svorak-A1.kbd.json
Last active November 17, 2018 19:54
ErgoDox EZ Svorak A1
[
{
"name": "ErgoDox EZ Svorak A1",
"author": "Andreas Lindhé",
"switchMount": "cherry",
"switchBrand": "gateron",
"switchType": "KS-3-Green"
},
[
{
@lindhe
lindhe / keybase.md
Created March 17, 2018 10:41
My keybase.io proof

Keybase proof

I hereby claim:

  • I am lindhe on github.
  • I am lindhe (https://keybase.io/lindhe) on keybase.
  • I have a public key whose fingerprint is 4EEE CFA0 147F 7121 5C72 CF2E 34C1 4B69 96D5 B89E

To claim this, I am signing this object:

@lindhe
lindhe / email.sh
Created December 21, 2017 18:17
Send an email via cli
echo "message" | mail -s "Subject line" email@example.com
@lindhe
lindhe / dark-ritch-text-fastmail.css
Created August 2, 2017 22:00
Override ritch text white background on Fastmiail (Stylish Userstyle CSS)
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.fastmail.com") {
.v-Message-body--html {
border-color: transparent !important;
background-color: transparent !important;
}
.v-Message-body--html p {
color: #fff !important;
}