https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/
Make sure the following options are off:
Disable pre-fetching
| #!/bin/sh | |
| # @author literallylara | |
| # USE AT YOUR OWN RISK! | |
| # Inspired by https://gist.github.com/guitarrapc/2623623a0e1bc7fe86b5cf56e0c70d88 | |
| set -e # Exit on error | |
| set -u # Treat unset variables as an error | |
| MAX_DEPTH=-1 |
| #!/bin/sh | |
| query="$1" | |
| debug="$2" | |
| if [ -z "$query" ]; then | |
| echo "Usage: $(basename "$0") <query> [debug]" | |
| exit 1 | |
| fi |
| Texture2D shaderTexture; | |
| SamplerState samplerState; | |
| cbuffer PixelShaderSettings | |
| { | |
| float Time; | |
| float Scale; | |
| float2 Resolution; | |
| float4 Background; | |
| }; |
https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/
Make sure the following options are off:
Disable pre-fetchingNOTE: I no longer use VMware products, and on good authority this trick no longer works (see comments below).
Facts: VMware Player on Ubuntu 18.04 LTS with the standard Gnome desktop running an AMD WX-2100 graphics card. Both glxinfo and glxgears show 3d acceleration is enabled and working on the host. In addition to VMware Player, the host is also running the qemu-kvm/libvirtd stack from Ubuntu's official repositories. My use case for 3d accelerated graphics in a Windows guest is to occasionally play a Windows-only game.
Issue: Player barks this warning during installation of... anything.
Solution: This
| // ==UserScript== | |
| // @name Activate all Itch.io Bundle downloads | |
| // @version 1 | |
| // @include https://itch.io/bundle/download/* | |
| // @include https://*.itch.io/* | |
| // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js | |
| // @grant none | |
| // ==/UserScript== | |
| $(document).ready(function() { |
| #!/bin/bash | |
| wget https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz | |
| sudo tar xvzf postman-linux-x64.tar.gz -C /opt | |
| sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
| cat << EOF > ~/.local/share/applications/postman2.desktop | |
| [Desktop Entry] | |
| Name=Postman | |
| GenericName=API Client |
With the addition of ES modules, there's now no fewer than 24 ways to load your JS code: (inline|not inline) x (defer|no defer) x (async|no async) x (type=text/javascript | type=module | nomodule) -- and each of them is subtly different.
This document is a comparison of various ways the <script> tags in HTML are processed depending on the attributes set.
If you ever wondered when to use inline <script async type="module"> and when <script nomodule defer src="...">, you're in the good place!
Note that this article is about <script>s inserted in the HTML; the behavior of <script>s inserted at runtime is slightly different - see Deep dive into the murky waters of script loading by Jake Archibald (2013)
| #!/usr/bin/env python3 | |
| import sys, os, errno | |
| def mkdir_p(path): | |
| try: | |
| os.makedirs(path) | |
| except OSError as exc: | |
| if exc.errno == errno.EEXIST and os.path.isdir(path): | |
| pass |
This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)