Skip to content

Instantly share code, notes, and snippets.

View fabianmossberg's full-sized avatar
🏡
Hello world!

Fabian Mossberg fabianmossberg

🏡
Hello world!
View GitHub Profile

Klarna Checkout

Svea Checkout

Keybase proof

I hereby claim:

  • I am fabianmossberg on github.
  • I am fabianmossberg (https://keybase.io/fabianmossberg) on keybase.
  • I have a public key whose fingerprint is F2FF E205 2D63 597F 313A B8E8 7F80 5ED2 EF4D 3F42

To claim this, I am signing this object:

@fabianmossberg
fabianmossberg / make_npmjs_suggest_pnpm.js
Last active July 4, 2021 10:32
Make npmjs.com suggest pnpm as installer instead of npm
// ==UserScript==
// @name Make npmjs.org suggest pnpm.
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Making npmjs use pnpm in the suggested code.
// @author Fabian Mossberg
// @match https://www.npmjs.com/
// @icon https://pnpm.io/img/pnpm-no-name-with-frame.svg
// @grant none
// @since 0.2 - Adding `.shell` as a selector.
@fabianmossberg
fabianmossberg / gitclean.sh
Created June 17, 2021 08:54 — forked from rokibhasansagar/gitclean.sh
Bash script to remove all revisions from github or gist repository.
#!/bin/bash
#
# By Zibri (2019)
# Modified by @rokibhasansagar
#
# Usage: gitclean git-repo-url
#
gitclean ()
{
git clone "$1" workDir && {
@fabianmossberg
fabianmossberg / functions.php
Created March 2, 2021 15:29 — forked from maddisondesigns/functions.php
WooCommerce Custom Fields for Simple & Variable Products
/*
* Add our Custom Fields to simple products
*/
function mytheme_woo_add_custom_fields() {
global $woocommerce, $post;
echo '<div class="options_group">';
// Text Field
Bing Webmaster Tools
https://www.bing.com/toolbox/webmaster free
Browseo
http://www.browseo.net/ free
Google Analytics
https://www.google.com/analytics/ free