Skip to content

Instantly share code, notes, and snippets.

View mudassaralichouhan's full-sized avatar
:octocat:
It’s not a bug; it’s an undocumented feature.

Mudassar Ali mudassaralichouhan

:octocat:
It’s not a bug; it’s an undocumented feature.
View GitHub Profile
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
echo "Resetting trial period for $product"
echo "removing evaluation key..."
rm -rf ~/.config/$product*/eval
# Above path not working on latest version. Fixed below
rm -rf ~/.config/JetBrains/$product*/eval
echo "removing all evlsprt properties in options.xml..."
@mudassaralichouhan
mudassaralichouhan / detecting-image-404.html
Created November 2, 2022 18:13
Detecting an image 404 in Javascript
<img src="{{ $vendor->image }}" onerror="ImgError(this)">
<script type="text/javascript">
function ImgError(source){
source.src = 'http://bbb.test/assets/images/placeholder.png';
source.onerror = "";
return true;
}
</script>