Skip to content

Instantly share code, notes, and snippets.

View karlmayer's full-sized avatar
🎯
Focusing

Karl Mayer karlmayer

🎯
Focusing
View GitHub Profile
/* Copyright (c) 2017-2020 FIRST. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted (subject to the limitations in the disclaimer below) provided that
* the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this
@karlmayer
karlmayer / chrome-search-engine-export-import.js
Created January 5, 2022 15:47
Chrome browser search engine export & import function
// export search engines
// from https://superuser.com/a/1626575
// visit chrome://settings/searchEngines, run in Developer Tools (F12)
(function exportSEs() {
// auxiliary function to download a file with the exported data
function downloadData(filename, data) {
const file = new File([data], { type: 'text/json' });
const elem = document.createElement('a');
elem.href = URL.createObjectURL(file);
elem.download = filename;
@karlmayer
karlmayer / edge-search-engine-export-import.js
Last active October 25, 2023 18:27
Edge browser search engine export & import function
// export search engines
// based on https://superuser.com/a/1626575
// visit edge://settings/searchEngines, run in Developer Tools (F12)
(function exportSEs() {
// auxiliary function to download a file with the exported data
function downloadData(filename, data) {
const file = new File([data], { type: 'text/json' });
const elem = document.createElement('a');
elem.href = URL.createObjectURL(file);
elem.download = filename;
@karlmayer
karlmayer / keybase.md
Created June 11, 2020 20:06
keybase.md

Keybase proof

I hereby claim:

  • I am karlmayer on github.
  • I am karlmayer (https://keybase.io/karlmayer) on keybase.
  • I have a public key whose fingerprint is 16BC C07C 8D7B 8219 2696 C3EE 4377 C83E FC4F 9D96

To claim this, I am signing this object: