Skip to content

Instantly share code, notes, and snippets.

@farhan4648gul
farhan4648gul / reset.sh
Created June 13, 2022 08:40 — forked from tmsperera/reset.sh
Reset jetbrains intellij idea 2020 30-day evaluation period
# linux
rm -rf ~/.config/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/.config/JetBrains/IntelliJIdea*/options/other.xml ~/.java/.userPrefs/jetbrains/idea
# mac os
rm ~/Library/Application\ Support/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/Library/Application\ Support/JetBrains/IntelliJIdea*/options/other.xml ~/Library/Preferences/jetbrains.idea.* ~/Library/Preferences/com.apple.java.util.prefs.plist
for product in PhpStorm WebStorm DataGrip IntelliJIdea CLion PyCharm GoLand RubyMine; do
echo "Resetting evaluation period for $product..."
rm ~/Library/Application\ Support/JetBrains/$product*/eval/*.evaluation.key
rm ~/Library/Application\ Support/JetBrains/$product*/options/other.xml
done
rm ~/Library/Preferences/jetbrains.*
for product in PhpStorm WebStorm DataGrip IntelliJIdea CLion PyCharm GoLand RubyMine; do
echo "Resetting trial evaluation for $product..."
rm -f ~/.config/JetBrains/$product*/eval/*.evaluation.key
rm -f ~/.config/JetBrains/$product*/options/other.xml
done
rm -rf ~/.java/.userPrefs/jetbrains
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@farhan4648gul
farhan4648gul / Makefile
Last active August 29, 2015 14:26 — forked from naholyr/Makefile
browserify-friendly Makefile
# Main entry point
SOURCE = src/app.js
# The dependencies (other than node_modules/**)
LIBS = $(shell ls src/lib/*.js src/components/*.js)
# The target
TARGET = build/app.js
# Compilation flags
@farhan4648gul
farhan4648gul / gist:c73656ed62e0286bc48e
Last active August 29, 2015 14:25 — forked from devinsays/gist:884d6abe92857a329d99
Options Framework Top Level Options
function add_custom_options_page() {
$menu = $this->menu_settings();
switch( $menu['mode'] ) {
case 'menu':
// http://codex.wordpress.org/Function_Reference/add_menu_page
$this->options_screen = add_menu_page(
$menu['page_title'],
cd $ANDROID_BUILD_TOP/packages/apps/Music
mm
.DS_Store
WEB-INF