Skip to content

Instantly share code, notes, and snippets.

View simonwep's full-sized avatar
🇪🇺

Simon simonwep

🇪🇺
View GitHub Profile
@simonwep
simonwep / docker-wide-purge.sh
Created August 3, 2019 12:40
Stops all docker container, removes all container and images
# Stop Running containers
docker stop $(docker ps -a -q)
# Remove container and images
docker rm $(docker ps -a -q)
docker image rm $(docker image ls -a -q)
# See if everything got removed
docker image ls
docker container ls
@simonwep
simonwep / duckduckgo-hide-ads.tapermonkey.js
Last active January 15, 2020 15:58
Hides duckduckgo ads
// ==UserScript==
// @name DuckDuckNoAds
// @version 1.0
// @namespace http://tampermonkey.net/
// @description Hides duckduckgo ads
// @match https://duckduckgo.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
@simonwep
simonwep / blockadblock-blocker.tapermonkey.js
Last active September 30, 2023 14:32
Blocks BlockAdBlock scripts
// ==UserScript==
// @name BlockAdblock Blocker
// @version 1.0
// @namespace http://tampermonkey.net/
// @description Blocks block-adblock
// @match *://**/*
// @grant none
// @run-at document-start
// ==/UserScript==
@simonwep
simonwep / github-auto-repo-confirm.tapermonkey.js
Last active January 15, 2020 15:58
Automatically inserts the repo-name in the security tab
// ==UserScript==
// @name GitHub auto confirm
// @version 1.0
// @namespace http://tampermonkey.net/
// @description Automatically inserts your repo name in dialogs
// @match https://*.github.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
@simonwep
simonwep / deploy-github-pages.sh
Created December 27, 2019 15:21
Builds your app and moves all production files to the gh-pages branch
#!/bin/bash
BRANCH="gh-pages"
echo "[DGP] Deploying to github-pages (branch $BRANCH)..."
# Check if there are current changes
if [[ "$(git status --porcelain --untracked-files=no)" ]]; then
echo "[DPG] Please undo your current changes."
exit
fi
@simonwep
simonwep / github-contribution-hints.tapermonkey.js
Last active January 15, 2020 15:58
Enhanced contribution info
// ==UserScript==
// @name GitHub contribution hints
// @version 1.0
// @namespace http://tampermonkey.net/
// @description A few more infos about your contribs on the front page
// @match https://*.github.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
@simonwep
simonwep / clozemaster-enhanced.tapermonkey.js
Last active December 30, 2021 17:30
Adds a few features to clozemaster.com to practice even faster
// ==UserScript==
// @name Closemaster enhanced
// @namespace http://tampermonkey.net/
// @version 4.1.2
// @description Adds a few features to clozemaster.com to practice even faster
// @author You
// @match https://*.clozemaster.com/*
// @grant none
// @run-at document-start
// @downloadURL https://gist.githubusercontent.com/Simonwep/9341a5881f6b89973305d9f3291d94fa/raw
@simonwep
simonwep / deploy-gh-pages.sh
Created May 17, 2020 17:20
Deploy a nodejs project to gh-pages
#!/bin/bash
BRANCH="gh-pages"
echo "[DGP] Deploying to github-pages (branch $BRANCH)..."
# Check if there are current changes
if [[ "$(git status --porcelain --untracked-files=no)" ]]; then
echo "[DPG] Please undo your current changes."
exit
fi
@simonwep
simonwep / github-style-fix.js
Last active July 17, 2020 06:56
Fixes large-screen style issues on github.com
// ==UserScript==
// @name GitHub Style Fixes
// @version 1.2.0
// @namespace http://tampermonkey.net/
// @description The new github design has issues, this can be used to fix them.
// @match https://*.github.com/*
// @grant none
// @run-at document-end
// @downloadURL https://gist.githubusercontent.com/Simonwep/a3926348cb45cc510382ca5cb10f364e/raw
// @updateURL https://gist.githubusercontent.com/Simonwep/a3926348cb45cc510382ca5cb10f364e/raw
@simonwep
simonwep / ts-deep-entity-select.ts
Last active February 2, 2021 07:02
Helper types to resolve selectables
interface User {
id: number;
userName: string;
fullName: string;
}
interface Comment {
id: number;
body: string;
author: User;