Skip to content

Instantly share code, notes, and snippets.

View lindhe's full-sized avatar
🦥

Andreas Lindhé lindhe

🦥
View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 / 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 / kubeapps_icon_error.log
Created April 17, 2020 14:09
Log of curl to problematic icon in Kubeapps
$ curl -vvv https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/microsoft/209/negative-squared-latin-capital-letter-b_1f171.png --output - > /dev/null
* Expire in 0 ms for 6 (transfer 0x55a5970caf50)
* Expire in 1 ms for 1 (transfer 0x55a5970caf50)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Expire in 0 ms for 1 (transfer 0x55a5970caf50)
* Expire in 1 ms for 1 (transfer 0x55a5970caf50)
* Expire in 0 ms for 1 (transfer 0x55a5970caf50)
* Expire in 0 ms for 1 (transfer 0x55a5970caf50)
* Expire in 1 ms for 1 (transfer 0x55a5970caf50)
@lindhe
lindhe / patch.md
Last active September 13, 2021 08:03
Guide to git patches

Guide to sending Git repos and patches

$ git bundle create /tmp/foo-all --all (http://stackoverflow.com/a/2545784/893211)

Andreas Lindhé, [03.03.17 20:08]

  1. Ladda ned repo.git filen.
  2. git clone repo.git git_is_cool
  3. Redan detta är coolt. Jag skickade just en komprimerad variant av ett git-repo, och du klonade från det repot.
  4. Ladda ned patch.diff filen.
@lindhe
lindhe / Vimium configuration
Last active January 16, 2022 11:39
This are my current Vimium maps
unmapAll
map ? showHelp
# Scrolling:
map j scrollDown
map k scrollUp
map gg scrollToTop
map G scrollToBottom
map gl scrollToLeft