-
Go to ublock settings and select the "Filters" tab
-
In the box, copy the following filter rule in:
@@||google-analytics.com^
-
Click "Apply changes"
-
You're done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
convert_path="C:/Program Files/ImageMagick/convert.exe" | |
target_path="." | |
target_ext="png" | |
echo "Warning, this will overwrite the current images." | |
read -r -p "Do you want to continue? [y/N] " response | |
response=${response,,} # tolower |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir | Rename-Item -NewName { $_.name -replace "orig", "repl" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <atlstr.h> | |
#include <cstdlib> | |
#define NOTUSED(var) (void)(var) | |
#define FLAG_STR "--help" | |
int CALLBACK WinMain( | |
_In_ HINSTANCE hInstance, | |
_In_ HINSTANCE hPrevInstance, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Build client | |
RunUAT BuildCookRun -project="full_path.uproject"^ | |
-noP4 -platform=Win64^ | |
-clientconfig=Development -serverconfig=Development^ | |
-cook -allmaps -build -stage^ | |
-pak -archive -archivedirectory="Output Directory" | |
:: Cook client | |
RunUAT BuildCookRun -project="full_project_path_and_project_name".uproject^ | |
-noP4 -platform=Win64^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This was put here by Drew Silcock on 16th July 2015 in an attempt to fix | |
# Wi-Fi issues on Ellen's Samsung laptop. It should be placed under | |
# `/etc/pm/sleep.d/`. | |
case "${1}" in | |
resume|thaw) | |
service network-manager stop | |
killall wpa_supplicant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sed -i '/Group\]\|Desktop Entry/a StartupWMClass=Google-chrome-stable' /usr/share/applications/google-chrome.desktop && \ | |
rm ~/.cache/docky/docky.desktop.*.cache && \ | |
killall docky && \ | |
docky &> /dev/null && \ | |
disown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You only need to change these top two lines | |
BASE=your-main-file | |
DEP=your-dependencies.tex | |
SRC=$(BASE).tex | |
PDF=$(BASE).pdf | |
LATEXMK=latexmk -pdf -pdflatex="pdflatex --shell-escape %O %S" | |
LATEXMKCONT=latexmk -pvc -pdf -pdflatex="pdflatex --shell-escape --interaction=nonstopmode %O %S" | |
TMP=$(BASE).pdfsync *~ *.tmp *.bbl *.blg *.aux *.end *.fls *.log *.out *.fdb_latexmk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% New definition of square root: | |
% it renames \sqrt as \oldsqrt | |
\let\oldsqrt\sqrt | |
% it defines the new \sqrt in terms of the old one | |
\def\sqrt{\mathpalette\DHLhksqrt} | |
\def\DHLhksqrt#1#2{% | |
\setbox0=\hbox{$#1\oldsqrt{#2\,}$}\dimen0=\ht0 | |
\advance\dimen0-0.2\ht0 | |
\setbox2=\hbox{\vrule height\ht0 depth -\dimen0}% | |
{\box0\lower0.4pt\box2}} |