Skip to content

Instantly share code, notes, and snippets.

View goetzc's full-sized avatar
🕉️

Götz goetzc

🕉️
View GitHub Profile
@StackTrac3
StackTrac3 / startpage.com-minimalistic.userscript.js
Last active May 13, 2021 16:40
(ES5 Compat) Greasemonkey Startpage Minimalistic/ Styling with config example
// ==UserScript==
// @name Startpage Options
// @grant GM_style.add
// @match *://startpage.com/*
// @match *://www.startpage.com/*
// @run-at document-begin
// ==/UserScript==
// Updated for May 2021 startpage element selector changes
@rojnwa
rojnwa / fix_codium.py
Created August 2, 2020 00:50
Reverts to the old marketplace in VSCodium
import json
file_path = "/usr/share/vscodium-bin/resources/app/product.json"
with open(file_path, "r") as f:
config = json.load(f)
config["extensionsGallery"]["serviceUrl"] = "https://marketplace.visualstudio.com/_apis/public/gallery"
config["extensionsGallery"]["cacheUrl"] = "https://vscode.blob.core.windows.net/gallery/index"
config["extensionsGallery"]["itemUrl"] = "https://marketplace.visualstudio.com/items"
@tanaikech
tanaikech / submit.md
Last active October 14, 2023 10:53
Highlighting Row and Column of Selected Cell using Google Apps Script

Highlighting Row and Column of Selected Cell using Google Apps Script

This is a sample script for highlighting the row and column of the selected cell using Google Apps Script. For this, the OnSelectionChange event trigger is used.

Demo

Sample script

@BookGin
BookGin / firefox-unregister-all-service-workers.js
Last active July 12, 2023 16:10
Unregister all service workers in Firefox.
# navigate to about:debugging#workers first
for (let k of document.getElementsByClassName("unregister-link")) k.click()
for (let k of document.getElementsByClassName("qa-unregister-button")) k.click()
@wosc
wosc / Vagrantfile
Created December 18, 2018 19:52
Build unison-2.51.2 deb, compatible with the MacOS binary release
Vagrant.configure("2") do |config|
config.vm.define "default" do |default|
default.vm.hostname = "unisonbuild"
default.vm.provider "lxc"
default.vm.box = "zeitonline/bionic64-lxc"
# default.vm.box = "bento/ubuntu-18.04"
end
end
@nesk
nesk / metadata.sql
Created June 25, 2018 16:13
Android pre-populated database (android_metadata table)
CREATE TABLE android_metadata (locale TEXT);
INSERT INTO android_metadata VALUES ("en_US");
@sgreben
sgreben / apk flags.md
Created April 13, 2018 13:09
apk flags

apk

apk-tools 2.8.2, compiled for x86_64.

usage: apk COMMAND [-h|--help] [-p|--root DIR] [-X|--repository REPO] [-q|--quiet] [-v|--verbose] [-i|--interactive] [-V|--version] [-f|--force]
           [--force-binary-stdout] [--force-broken-world] [--force-non-repository] [--force-old-apk] [--force-overwrite] [--force-refresh] [-U|--update-cache]
           [--progress] [--progress-fd FD] [--no-progress] [--purge] [--allow-untrusted] [--wait TIME] [--keys-dir KEYSDIR] [--repositories-file REPOFILE]
           [--no-network] [--no-cache] [--cache-dir CACHEDIR] [--arch ARCH] [--print-arch] [ARGS]...
@landonb
landonb / Vagrantfile
Last active April 28, 2022 16:02
Windows Vagrantfile example
Vagrant.configure("2") do |config|
# Other box urls: https://www.bram.us/2014/09/24/modern-ie-vagrant-boxes
config.vm.box = "modern.ie/win7-ie11"
config.vm.box_url = 'http://aka.ms/vagrant-win7-ie11'
# big timeout since windows boot is very slow
config.vm.boot_timeout = 500
# Port forward WinRM (Windows Remote Management) and RDP
#!/bin/sh
# default commands for osx to make it nicer to work with
##########################
# General UI?UX settings #
##########################
# Set hostname (hex of MVB9APPS)
sudo scutil --set ComputerName "0x4d56423941505053"
sudo scutil --set HostName "0x4d56423941505053"